pdk.Plot.Graphs
index
pdk/Plot/Graphs.py

Graph classes for the plotting package of pdk.

Based on graphite, which was written by Joseph and Michelle Strout in 1999.

FOG 08/2000

 
Modules
            
stringformat
 
Classes
            
_Graph(pdk.PropertyManagers.ComponentPropertyManager, pdk.Plot.Components.Component)
FileGraph
WindowGraph
pdk.Plot.Auxilliary._Scale4x4
pdk.Plot.Auxilliary._Translate4x4
 
class FileGraph(_Graph)
       
  
Method resolution order:
FileGraph
_Graph
pdk.PropertyManagers.ComponentPropertyManager
pdk.Plot.Components.Component
pdk.PropertyManagers.PropertyManager
__builtin__.object

Methods defined here:
__init__(self, **initPropertyD)
draw(self)

Data and non-method functions defined here:
PROPERTIES = {'filename': <pdk.Properties.StringProperty instance>, 'outputformat': <pdk.Properties.EnumProperty instance>}
 
class WindowGraph(_Graph)
       
  
Method resolution order:
WindowGraph
_Graph
pdk.PropertyManagers.ComponentPropertyManager
pdk.Plot.Components.Component
pdk.PropertyManagers.PropertyManager
__builtin__.object

Data and non-method functions defined here:
PROPERTIES = {'windowtitle': <pdk.Properties.StringProperty instance>}
 
class _Scale4x4
     
Purpose:4x4 scaling matrix

 
   Methods defined here:
__call__(self, sx, sy, sz, copy=0)
returns a scaling matrix with scaling factors sx, sy, and sz in X, Y, and Z direction, respectively. Do not keep a reference to the scaling matrix unless you set the copy flag.

Data and non-method functions defined here:
M = array([[ 0., 0., 0., 0.], [ 0., 0., ...0., 0., 0., 0.], [ 0., 0., 0., 1.]])
 
class _Translate4x4
     
Purpose:4x4 translation matrix

 
   Methods defined here:
__call__(self, tx, ty, tz, copy=0)
returns a translation matrix with translation offsets tx, ty, and tz in X, Y, and Z direction, respectively. Do not keep a reference to the translation matrix unless you set the copy flag.

Data and non-method functions defined here:
M = array([[ 1., 0., 0., 0.], [ 0., 1., ...0., 0., 1., 0.], [ 0., 0., 0., 1.]])
 
Functions
            
array(...)
array(sequence, typecode=None, copy=1, savespace=0) will return a new array formed from the given (potentially nested) sequence with type given by typecode. If no typecode is given, then the type will be determined as the minimum type required to hold the objects in sequence. If copy is zero and sequence is already an array, a reference will be returned. If savespace is nonzero, the new array will maintain its precision in operations.
 
Data
             AUTO = 'AUTO'
AXES = [0, 1, 2]
BLB = 7
BLF = 3
BOTTOM = 'BOTTOM'
BRB = 4
BRF = 0
CENTER = 'CENTER'
DASHED = 'DASHED'
HORIZONTAL = 1
LEFT = 'LEFT'
LINEAR = 1
MAX = 1
MIN = 0
RIGHT = 'RIGHT'
SOLID = 'SOLID'
TLB = 6
TLF = 2
TOP = 'TOP'
TRB = 5
TRF = 1
UNSPECIFIED = -1
VERTICAL = 0
X = 0
Y = 1
Z = 2
scale_4x4 = instance of _Scale4x4
translate_4x4 = instance of _Translate4x4