pyfeyn is hosted by Hepforge, IPPP Durham

Package pyfeyn :: Module lines :: Class Gluon
[hide private]
[frames] | no frames]

Class Gluon




A line with a cycloid deformation

Instance Methods [hide private]
  __init__(self, point1, point2)
  set3D(self, is3D=True, skipsize=pyx.unit.length(0.04), parity=0)
Make this line display in '3D'.
  invert(self)
Flip the line decoration around the line.
  getFrequency(self)
Get the rate of occurence of the coil decoration.
  setFrequency(self, freq)
Set the rate of occurence of the coil decoration.
  getAmplitude(self)
Get the radius of the coil decoration.
  setAmplitude(self, amplitude)
Set the radius of the coil decoration.
  setExtraCycles(self, extras)
Add some extra (possibly negative) oscillations to the coil decoration.
  getDeformedPath(self)
Get the path modified by the coil warping.
  draw(self, canvas)
Draw the line on the supplied canvas.

Inherited from DecoratedLine: getNumHalfCycles

Inherited from Line: addArrow, addLabel, addParallelArrow, addStyle, addStyles, arcThru, bend, fracpoint, getPath, getStyles, getVisiblePath, removeArrows, removeLabels, setArrows, setStyles, straighten

Inherited from utils.Visible: __cmp__, getDepth, isVisible, setDepth


Method Details [hide private]

__init__(self, point1, point2)
(Constructor)

 
None
Overrides: Line.__init__

set3D(self, is3D=True, skipsize=pyx.unit.length(0.04), parity=0)

 
Make this line display in '3D'.
Overrides: Line.set3D
(inherited documentation)

invert(self)

 
Flip the line decoration around the line.
Overrides: DecoratedLine.invert

getFrequency(self)

 
Get the rate of occurence of the coil decoration.

setFrequency(self, freq)

 
Set the rate of occurence of the coil decoration.

getAmplitude(self)

 
Get the radius of the coil decoration.

setAmplitude(self, amplitude)

 
Set the radius of the coil decoration.

setExtraCycles(self, extras)

 
Add some extra (possibly negative) oscillations to the coil decoration.

getDeformedPath(self)

 
Get the path modified by the coil warping.
Overrides: DecoratedLine.getDeformedPath

draw(self, canvas)

 
Draw the line on the supplied canvas.
Overrides: Line.draw