PyGeo: a dynamic geometry toolkit

zLineFromPoints

line of the complex plane through the given 2 complex point arguments

constructors:
zLineFromPoints (zpoint1,zpoint2 )
zLine (zpoint1,zpoint2 )

inherits

_zLine

Methods defined in zLineFromPoints

f __init__(self, p1, p2) ...

Methods defined in _zLine

f findSelf(self) ...

f transform(self, mat, h_circle) ...

transforms the Hermitian matrix defining the line by the given Mobius transformation matrix

f to_uSphere(self, uCircle) ...

sets the given ucircle to the projection of the line to the Riemann sphere

f getDirection(self) ...

the normalized direction vector of the line

f getAngle(self) ...

the angle of the line with the real axis

Methods defined in Element

f __iter__(self) ...

make all objects iterable, returning "self" in the simplest instance

f __len__(self) ...

length of the iterable assocaited with the object

f update(self) ...

method that is called on change events, calling reoutines to find current position based on dependecies, current visibility status, etc.

f rmatrix(self) ...

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.

f _allreal(self) ...

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

f setshow(self) ...

check for change in visibiliy status and toggle visibility as necessary, reset change flag to 0 on effectuating change in visiblity

f _togglenull(self) ...

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.

f init(self) ...

method to be overridden for objects needing an supplementary initiliazation routine after the call to __init___

f reset(self) ...

Routine to return Element to intial position. Default is to run update routine

f reset_trace(self) ...

method to be overridden to erase loci of objects that are traceable

f reset_trace_curves(self) ...

method to be overridden to erase curves traced by point objects

Methods defined in zdrawLine

f _redraw(self) ...

send current position of line frame's axis and position based on the line's current defining Hermitian matrix

f setlabel(self) ...

set position of line's lab, if any

f draw(self) ...

for consistency in iterating Element's rendering objects, all elements rendering information is in a list called self.rend. In the case of zLines, it is a single element list containing a cvisual curve object

f povout(self, buf) ...

export the scene's lines to PovRay SDL

Attributes

a __opts__

['color',
 'initcolor',
 'trace',
 'level',
 'texture',
 'extend',
 'povout',
 'label',
 'append',
 'export',
 'tracewidth',
 'tracecolor',
 'maxtrace',
 'mintrace',
 'fontsize',
 'fontcolor',
 'fontXofffset',
 'fontYofffset',
 'tracecurve',
 'style',
 'linewidth',
 'label_ratio',
 'show_normal']

a __doc_hints__

{'args': ['zpoint1,zpoint2'], 'factory': 'zLine'}

See the source for more information.