pyfeyn2.render.pyx.deco.ParallelArrow

class pyfeyn2.render.pyx.deco.ParallelArrow(line, pos=0.5, displace=0.3, length=<pyx.unit.length object>, size=<pyx.unit.length object>, angle=45, constriction=0.8, sense=1, curved=False, stems=1, stemsep=0.03)[source]

Bases: Visible

Arrow running parallel to a line, for momenta, helicities etc.

__init__(line, pos=0.5, displace=0.3, length=<pyx.unit.length object>, size=<pyx.unit.length object>, angle=45, constriction=0.8, sense=1, curved=False, stems=1, stemsep=0.03)[source]

Constructor.

Methods

__init__(line[, pos, displace, length, ...])

Constructor.

draw(canvas)

Draw this arrow on the supplied canvas.

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.

draw(canvas)[source]

Draw this arrow on the supplied canvas.

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.