pdk.PropertyManagers.ComponentPropertyManager (pdk.PropertyManagers.PropertyManager )
_Primitive
ManyPointsPrimitive
Box
Polygon
SinglePointPrimitive
Text
_Symbol
CircleSymbol
SquareSymbol
TriangleSymbol
TwoPointsPrimitive
Arrow
Line
__builtin__.dict (__builtin__.object )
_SymbolTypeRegistry
class _Primitive (pdk.PropertyManagers.ComponentPropertyManager )
Purpose: abstract base class for elementary drawing object in 3D space
Detail: can be transformed, and can plot itself into a PIDDLE
canvas (ignoring Z coordinate when doing so).
By convention, all primitives receive the coordinates that
define their position in space as positional arguments to their
constructor; consequently, derived classes have to provide
customized methods to configure that position.
Method resolution order:
_Primitive
pdk.PropertyManagers.ComponentPropertyManager
pdk.PropertyManagers.PropertyManager
__builtin__.object
Methods defined here:
__getstate__ (self)
fine-tunes the copying behavior for this object: copies share the
properties (via the base class method), but maintain their own point
arrays)
__init__ (self, points, **initPropertyD)
__setstate__ (self, argT)
draw (self, canvas)
getPoint (self, index)
get the index th point.
getPoints (self)
get the point array.
projectTo2D (self)
do the final projection from extended 3D coordinates to 2D coordinates.
setPoint (self, index, p)
set the index`th point to `p .
setPoints (self, pointT)
update the points array with the points in pointT .
transform3x3 (self, matrix)
transform our control points by the given 3x3 transformation matrix.
transform4x4 (self, matrix)
transform our control points by the given 4x4 transformation matrix.