pyfeyn2.render.pyx.deco.LineLabel
- class pyfeyn2.render.pyx.deco.LineLabel(line, text, pos=0.5, displace=0.3, angle=0, size=<pyx.text.size object>, halign=<pyx.text.halign object>, valign=None)[source]
Bases:
Label
Label for Feynman diagram lines
- __init__(line, text, pos=0.5, displace=0.3, angle=0, size=<pyx.text.size object>, halign=<pyx.text.halign object>, valign=None)[source]
Constructor.
Methods
__init__
(line, text[, pos, displace, angle, ...])Constructor.
draw
(canvas)Draw this label on the supplied canvas.
getDepth
()Return the depth at which this instance lives.
getLine
()Get the associated line.
getPath
()Return the path of this instance.
Return the visible path of this instance.
Check if this instance is visible.
setDepth
(depth)Set the depth at which this instance lives.
setLine
(line)Set the associated line.
- getDepth()
Return the depth at which this instance lives.
- getPath()
Return the path of this instance.
- getVisiblePath()
Return the visible path of this instance.
- isVisible()
Check if this instance is visible.
- setDepth(depth)
Set the depth at which this instance lives.