Home | Trees | Index | Help |
|
---|
Package mmLib :: Module Viewer :: Class GLViewer |
|
object
--+ |GLObject
--+ | GLViewer
Method Summary | |
---|---|
__init__(self)
| |
Called by GLObject.__init__ to install properties. | |
Append a GLDrawList. | |
Adds the visualization for a mmLib.Structure.Structure object to the GLViewer. | |
Return the R,G,B triplit of the background color. | |
Orient the structure based on a moment-of-intertia like tensor centered at the centroid of the structure. | |
Adjust near/far clipping planes. | |
Called once to initalize the GL scene before drawing. | |
This method is called by GLViewer children to trigger a redraw in the toolkit embedding the GLViewer object. | |
Remove a GLDrawList. | |
Render scene using all drivers. | |
Render the scent once with the argument driver. | |
Called to set the size of the OpenGL window this class is drawing on. | |
Translate in the XY plane. | |
Implements a virtual trackball. | |
glv_update_cb(self,
updates,
actions)
| |
Adjust zoom levels. | |
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. | |
The GLObject removes itself from its parent. | |
Removes the child GLObject. | |
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 | |
---|---|
Inherited from GLObject | |
GLPropertyDefault |
PropertyDefault = <mmLib.Viewer.GLPropertyDefault object...
|
Method Details |
---|
glo_install_properties(self)Called by GLObject.__init__ to install properties.
|
glv_add_draw_list(self, draw_list)Append a GLDrawList. |
glv_add_struct(self, struct)Adds the visualization for a mmLib.Structure.Structure object to the GLViewer. It returns the GLStructure object created to visualize the Structure object. |
glv_background_color_rgbf(self)Return the R,G,B triplit of the background color. |
glv_calc_struct_orientation(self, struct)Orient the structure based on a moment-of-intertia like tensor centered at the centroid of the structure. |
glv_clip(self, near, far)Adjust near/far clipping planes. |
glv_init(self)Called once to initalize the GL scene before drawing. |
glv_redraw(self)This method is called by GLViewer children to trigger a redraw in the toolkit embedding the GLViewer object. It needs to be re-implemented when subclassed to call the tookit's widget redraw method. |
glv_remove_draw_list(self, draw_list)Remove a GLDrawList. |
glv_render(self)Render scene using all drivers. |
glv_render_one(self, driver)Render the scent once with the argument driver. |
glv_resize(self, width, height)Called to set the size of the OpenGL window this class is drawing on. |
glv_straif(self, x, y)Translate in the XY plane. |
glv_trackball(self, x1, y1, x2, y2)Implements a virtual trackball. |
glv_zoom(self, z)Adjust zoom levels. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Apr 23 22:08:39 2006 | http://epydoc.sf.net |