_PointArray
an array of points with a defined geometric relationship
inherits
Element , drawPointArray
defining instance attributes
points: the positioned points of the array
Methods defined in _PointArray
intialize attributes, with keywords arguments or defaults
override of Element __iter__ to return the points of the array
override of Element __len__ to return the number of points of the array
transform the points of the array by the given 4x4 matrix
Methods defined in Element
method that is called on change events, calling reoutines to find current
position based on dependecies, current visibility status, etc.
the function called to recalculate an objects postion at a change event,
to be overridden in subclasses
each object has a 4x4 matrix associated with it, representing the object's axis of
rotation and translation from the origin. Needed for the implementation of the
Projection class. Set to the identity matrix by default.
test whether any Elements on which there is a dependency
have become 'null', i.e. not calculatable - .e.g, imaginary when
working within real space
check for change in visibiliy status and toggle
visibility as necessary, reset change flag to 0 on
effectuating change in visiblity
toggle the 'null' flag, indicating whether the current postion of the
object's position is visible - e.g. is real when working in real space
f
_setnull(self, to_null=True)
...
set object and the objects dependant on it to 'null' when
its position cannot be made visible- e.g. imaginary when working in real
space.
Routine to return Element to intial position.
Default is to run update routine
method to be overridden to erase loci of objects that are traceable
method to be overridden to erase curves traced by point objects
Methods defined in drawPointArray
after redrawing the points, if the _PointArray's drawcruve attribute
is set to True, send current positions of points to the cvisual curve object
the points of the array have been initialized on creation in the _PointArray init method -
here we intialize a curve to be traced by the array if that drawcurve attribute is True
export the scene's pointarrays to PovRay SDL and, if the drawcurve attribute is set to
true, the curve etched by the loci of the array of points
Attributes
['color',
'initcolor',
'trace',
'level',
'texture',
'extend',
'povout',
'label',
'append',
'export',
'pointsize',
'density',
'drawcurve',
'linewidth',
'drawpoints',
'style']
See
the source
for more information.