ConicPolar
line polar to the given point with respect to the given conic
constructors:
-
ConicPolar
(conic,point,<chord=(boolean)>
)
-
Line
(conic,point,<chord=(boolean)>
)
conditions:
point and conic are coplanar
if chord = True,point exterior to conic
else:
None;None
Methods defined in ConicPolar
Methods defined in _Line
transform the point attributes defining the line by the given
4x4 transformation matrix
the length of the segment of the line connecting the p1 and p2 attributes
the square of the length of the segment of the line connecting the p1
and p2 attributes
unit vector of the line direction
point on line connecting it to the vector normal to the line
returns the normal and direction defining the line
Methods defined in Element
make all objects iterable, returning "self" in the simplest instance
length of the iterable assocaited with the object
method that is called on change events, calling reoutines to find current
position based on dependecies, current visibility status, etc.
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.
method to be overridden for objects needing an supplementary initiliazation routine after
the call to __init___
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 drawLine
send current position of defining points in scene to render object,
and render line or line segment, in accordance with attribute setting
extend the drawing of the line to the given point if it is exterior to
the segment connecting the line's point attributes
set position of line's lab, if any
for consistency in iterating Element's rendering objects, all elements
rendering information is in a list called self.rend. In the case of Lines,
it is a single element list containing a cvisual curve object
export the scene's lines to PovRay SDL
Attributes
['color',
'initcolor',
'trace',
'level',
'texture',
'extend',
'povout',
'label',
'append',
'export',
'chord']
{'args': ['conic,point,<chord=(boolean)>'],
'conditions': ['point and conic are coplanar',
'if chord = True,point exterior to conic'],
'factory': 'Line',
'otherwise': 'None;None'}
See
the source
for more information.