This class renders a list of GLDrawList (or subclasses of) onto the
given glcontext and gldrawable objects. The glcontext and gldrawable
must be created by the underling GUI toolkit, or perhaps the GLUT
libraries. This class is completely platform and tookit independent once
it is passed the glcontext and gldrawable. The design of this class and
the associated GLDrawList classes incorporates some basic OpenGL drawing
optimizations. The GLDrawList objects are drawn and compiled into OpenGL
draw lists, and have their own transformation/rotation operators WRT the
GLViewer origin, allowing each GLDrawList to be redrawn very quickly as
long as it moves as a rigid body.
|
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
glv_add_draw_list(self,
draw_list)
Append a GLDrawList. |
source code
|
|
|
glv_remove_draw_list(self,
draw_list)
Remove a GLDrawList. |
source code
|
|
|
glv_calc_struct_orientation(self,
struct)
Orient the structure based on a moment-of-intertia like tensor
centered at the centroid of the structure. |
source code
|
|
|
|
|
glv_redraw(self)
This method is called by GLViewer children to trigger a redraw in the
toolkit embedding the GLViewer object. |
source code
|
|
|
glv_init(self)
Called once to initalize the GL scene before drawing. |
source code
|
|
|
glv_resize(self,
width,
height)
Called to set the size of the OpenGL window this class is drawing on. |
source code
|
|
|
glv_clip(self,
near,
far)
Adjust near/far clipping planes. |
source code
|
|
|
|
|
glv_straif(self,
x,
y)
Translate in the XY plane. |
source code
|
|
|
glv_trackball(self,
x1,
y1,
x2,
y2)
Implements a virtual trackball. |
source code
|
|
|
glv_background_color_rgbf(self)
Return the R,G,B triplit of the background color. |
source code
|
|
|
glv_render(self)
Render scene using all drivers. |
source code
|
|
|
glv_render_one(self,
driver)
Render the scent once with the argument driver. |
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 ,
glo_remove_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__
|