Class to write a EPS file containing the asked diagram This class
follows the DrawDiagram Frameworks.
The main routine to draw a diagram is 'draw' which call 1) initialize:
setup things for the diagram (usually open a file) 2) convert_diagram :
Update the diagram in the correct format if needed 3) draw_diagram :
Perform diagram dependent operation 4) conclude : finish the
operation.
|
initialize(self)
Operation done before starting to create diagram specific EPS content
First open the file in write mode then write in it the header and the
library of particle type. |
source code
|
|
|
conclude(self)
Operation to perform when all code related to a specific diagram are
finish. |
source code
|
|
|
|
|
|
|
|
|
|
|
draw_dashed(self,
line)
ADD the EPS code for this Higgs line. |
source code
|
|
|
draw_wavy(self,
line,
opt=0,
type=' d ' )
ADD the EPS code for this photon line. |
source code
|
|
|
draw_curly(self,
line,
type='
' )
ADD the EPS code for this gluon line. |
source code
|
|
|
draw_scurly(self,
line)
ADD the EPS code for this gluino line. |
source code
|
|
|
draw_swavy(self,
line)
ADD the EPS code for this neutralino line. |
source code
|
|
|
draw_double(self,
line,
type=' r ' )
ADD the EPS code for this neutralino line. |
source code
|
|
|
put_diagram_number(self,
number=0)
ADD the comment 'diagram [number]' just below the diagram. |
source code
|
|
|
|
|
|
Inherited from core.drawing.DiagramDrawer :
__init__ ,
convert_diagram ,
draw ,
draw_diagram ,
draw_line
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|