Package mmLib :: Module Viewer :: Class GLDrawList
[hide private]
[frames] | no frames]

Class GLDrawList

source code

object --+    
         |    
  GLObject --+
             |
            GLDrawList
Known Subclasses:

Fundamental OpenGL rigid entity.

Instance Methods [hide private]
 
__init__(self, **args)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
glo_remove_child(self, child)
Override GLObject's remove to also delete the compiled OpenGL draw lists.
source code
 
glo_remove(self)
Override GLObject's remove to also delete the compiled OpenGL draw lists.
source code
 
glo_install_properties(self)
Called by GLObject.__init__ to install properties.
source code
 
gldl_update_cb(self, updates, actions)
Properties update callback.
source code
 
gldl_redraw(self)
Triggers a redraw of the GLViewer
source code
 
gldl_get_glviewer(self)
Returns the root GLViewer object.
source code
 
gldl_property_color_rgbf(self, prop_name)
Returns the property value as a RGBF triplet.
source code
 
gldl_install_draw_methods(self)
Override in children to install draw methods for a GLDrawList.
source code
 
gldl_draw_method_install(self, draw_method)
Installs a draw method to compile and render a OpenGL draw listlist.
source code
 
gldl_draw_method_get(self, draw_method_name)
Returns the draw metod of the given name or None if not found.
source code
 
gldl_draw_method_compile(self, draw_method)
Compiles a draw method.
source code
 
gldl_draw_method_delete_compiled(self, draw_method)
Deletes the compiled draw list in the current driver.
source code
 
gldl_draw_method_delete_compiled_all_drivers(self) source code
 
gldl_push_matrix(self)
Rotate and translate to the correct position for drawing.
source code
 
gldl_pop_matrix(self)
Pop the roatated/translated position.
source code
 
gldl_render(self, driver, transparent=False)
Compile or force a recompile of this object's gl_draw list, and render the scene.
source code
 
gldl_render_draw_methods(self, transparent)
Render all draw methods.
source code
 
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.
source code
 
gldl_iter_multidraw_self(self)
Similar to gldl_iter_multidraw_all, but only this GLDrawList is rendered.
source code
 
gldl_draw(self)
Implement in subclass to draw somthing.
source code
 
gldl_draw_transparent(self)
Implement in subclass to draw transparent objects.
source code

Inherited from GLObject: glo_add_child, glo_add_property, glo_add_update_callback, glo_append_child, glo_count_descendants, glo_get_child, glo_get_child_path, glo_get_degree, glo_get_depth, glo_get_glstructure, glo_get_index_path, glo_get_lowest_common_ancestor, glo_get_parent, glo_get_parent_list, glo_get_path, glo_get_properties_id, glo_get_property_desc, glo_get_root, glo_init_properties, glo_is_descendant_of, glo_iter_children, glo_iter_preorder_traversal, glo_iter_property_desc, glo_link_child_property, glo_name, glo_prepend_child, glo_remove_update_callback, glo_set_name, glo_set_properties_id, glo_update_properties, glo_update_properties_path

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  gldl_color_list = ['White', 'Black', 'Blue', 'Green', 'Magenta...

Inherited from GLObject: PropertyDefault

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **args)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

glo_remove_child(self, child)

source code 

Override GLObject's remove to also delete the compiled OpenGL draw lists.

Overrides: GLObject.glo_remove_child

glo_remove(self)

source code 

Override GLObject's remove to also delete the compiled OpenGL draw lists.

Overrides: GLObject.glo_remove

glo_install_properties(self)

source code 

Called by GLObject.__init__ to install properties.

Overrides: GLObject.glo_install_properties
(inherited documentation)

gldl_draw_method_install(self, draw_method)

source code 
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_render(self, driver, transparent=False)

source code 

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_iter_multidraw_self(self)

source code 

Similar to gldl_iter_multidraw_all, but only this GLDrawList is rendered. The decendant GLDrawLists are rendered normally.


Class Variable Details [hide private]

gldl_color_list

Value:
['White',
 'Black',
 'Blue',
 'Green',
 'Magenta',
 'Red',
 'Cyan',
 'Yellow',
...