Trees | Indices | Help |
|
---|
|
object --+ | Group
Class to group a bunch of primitives and draw them out. Example for non-Maestro objects: my_box1 = box.Box(...) my_box2 = box.Box(...) my_sphere = sphere.Sphere(...) my_group = box.Group() (or sphere.Group(), etc) my_group.add(my_box1) my_group.add(my_box2) my_group.add(my_sphere) # The following draw invocation would be in a separate # callback function registered with workspace_draw_function_add() my_group.draw()
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Constructor takes no arguments.
|
Return the number of primitives in this group. Note that each primitive type can have multiple instances registered and each of these is counted towards the total. |
Return the number of unique primitive types in this group. This differs from the standard length operation. That returns a count of all primitive instances. |
Invoke each item's drawing method The script should always call this method when the Workspace is drawn for every group it creates. To hide the group so that it does not get drawn, use hide() method. |
Do not draw objects belonging to this group. Will also modify Maestro's bounding rect to exclude these objects. |
Cancel effect of hide() method, and draw the objects belonging to this group. Will modify Maestro's bounding rect to exclude these objects. |
Clear up drawing instances. Arguments: item_type: Can be one of the following: None, Arrow, Box, etc. Note: - If item_type is None, all drawing instances will be removed; if item_type is not None, all drawing instances of the `item_type' class will be removed. - No effects if there is no drawing instances of the `item_type' class. |
Iterate over all the objects in this group. For each object that can handle a level change regenerate the object automatically. Support or lack thereof is determined by presence or lack of a handleOpenGLLevelChange() method. This is a private function and should not be called by users. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Aug 6 04:50:43 2015 | http://epydoc.sourceforge.net |