Home | Trees | Index | Help |
|
---|
Package mmLib :: Module Viewer :: Class GLDrawList |
|
object
--+ |GLObject
--+ | GLDrawList
GLAtomList
,
GLAxes
,
GLStructure
,
GLTLSChain
,
GLTLSGroup
,
GLUnitCell
Method Summary | |
---|---|
__init__(self,
**args)
| |
Implement in subclass to draw somthing. | |
Compiles a draw method. | |
Deletes the compiled draw list in the current driver. | |
gldl_draw_method_delete_compiled_all_drivers(self)
| |
Returns the draw metod of the given name or None if not found. | |
Installs a draw method to compile and render a OpenGL draw listlist. | |
Implement in subclass to draw transparent objects. | |
Returns the root GLViewer object. | |
Override in children to install draw methods for a GLDrawList. | |
When implemented as a iterator in a subclass, each time yield is invoked the GLDrawList and all its decendants will be rendered from whatever OpenGL coordinate system is set in the iterator. | |
Similar to gldl_iter_multidraw_all, but only this GLDrawList is rendered. | |
Pop the roatated/translated position. | |
Returns the property value as a RGBF triplet. | |
Rotate and translate to the correct position for drawing. | |
Triggers a redraw of the GLViewer | |
Compile or force a recompile of this object's gl_draw list, and render the scene. | |
Render all draw methods. | |
Properties update callback. | |
Called by GLObject.__init__ to install properties. | |
Override GLObject's remove to also delete the compiled OpenGL draw lists. | |
Override GLObject's remove to also delete the compiled OpenGL draw lists. | |
Inherited from GLObject | |
| |
Adds a new property to the GLObject. | |
Adds a function which is called whenever property values change. | |
Adds a child GLObject to the end of the GLObject's child list. | |
Counts all decendant GLObjects. | |
Returns the child GLObject matching the given gl_object_id. | |
Returns the object at the given path, or None if the object does not exist. | |
Returns the number of children (degree). | |
Returns the depth, the root composite is depth 0. | |
Returns the parent GLStructure object, or None if the GLObject is not a child of a GLStructure. | |
Returns the tree-path to the GLObject as a list of its integer indexes. | |
Returns the lowest common ancesotry of self and argument composite. | |
Returns the parent GLObject. | |
Returns a list of the parent GLObjects back to the root. | |
Returns the tree-path to the composite as a list of its parent composites. | |
Returns the properties ID of this object. | |
Return the property description dictionary for the given property name. | |
Returns the root GLObject. | |
This is a special form of update which propagates all linked values, not just the changed ones. | |
Returns true if self composite is a decent of argument GLObject. | |
Iterate immediate children. | |
Preorder Traversal for GLObject composite. | |
Iterates over all property descriptions. | |
Link the value of the GLObject's property to the value of a child property. | |
Returns the GLObject name. | |
Adds a child GLObject to the beginning of the GLObject's child list. | |
Removes the update callback. | |
Sets the GLObject name. | |
Set the property name for this GLObject. | |
Update property values and trigger update callbacks. | |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
list |
gldl_color_list = ['White', 'Black', 'Blue', 'Green', 'M...
|
Inherited from GLObject | |
GLPropertyDefault |
PropertyDefault = <mmLib.Viewer.GLPropertyDefault object...
|
Method Details |
---|
gldl_draw(self)Implement in subclass to draw somthing. |
gldl_draw_method_compile(self, draw_method)Compiles a draw method. |
gldl_draw_method_delete_compiled(self, draw_method)Deletes the compiled draw list in the current driver. |
gldl_draw_method_get(self, draw_method_name)Returns the draw metod of the given name or None if not found. |
gldl_draw_method_install(self, draw_method)Installs a draw method to compile and render a OpenGL draw listlist. keys: name: text description of the method func: the method to invoke to render the draw list tranparent: True if the draw list is drawing transparent private values: gl_draw_list_id: OpenGL Drawlist ID |
gldl_draw_transparent(self)Implement in subclass to draw transparent objects. |
gldl_get_glviewer(self)Returns the root GLViewer object. |
gldl_install_draw_methods(self)Override in children to install draw methods for a GLDrawList. |
gldl_iter_multidraw_all(self)When implemented as a iterator in a subclass, each time yield is invoked the GLDrawList and all its decendants will be rendered from whatever OpenGL coordinate system is set in the iterator. |
gldl_iter_multidraw_self(self)Similar to gldl_iter_multidraw_all, but only this GLDrawList is rendered. The decendant GLDrawLists are rendered normally. |
gldl_pop_matrix(self)Pop the roatated/translated position. |
gldl_property_color_rgbf(self, prop_name)Returns the property value as a RGBF triplet. |
gldl_push_matrix(self)Rotate and translate to the correct position for drawing. |
gldl_redraw(self)Triggers a redraw of the GLViewer |
gldl_render(self, driver, transparent=False)Compile or force a recompile of this object's gl_draw list, and render the scene. Rendering the scene can be bypassed if this method is called with render = False. |
gldl_render_draw_methods(self, transparent)Render all draw methods. |
gldl_update_cb(self, updates, actions)Properties update callback. |
glo_install_properties(self)Called by GLObject.__init__ to install properties.
|
glo_remove(self)Override GLObject's remove to also delete the compiled OpenGL draw lists.
|
glo_remove_child(self, child)Override GLObject's remove to also delete the compiled OpenGL draw lists.
|
Class Variable Details |
---|
gldl_color_list
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Apr 23 22:08:40 2006 | http://epydoc.sf.net |