openalea.oalab.scene package¶
Submodules¶
openalea.oalab.scene.view3d module¶
- class openalea.oalab.scene.view3d.Viewer(session, controller, parent=None)[source]¶
Bases: openalea.grapheditor.observer.AbstractListener, openalea.oalab.scene.view3d.view3D
Widget of 3D Viewer to show the scene.
- mainMenu()[source]¶
Returns: Name of menu tab to automatically set current when current widget begin current.
- class openalea.oalab.scene.view3d.view3D(parent=None, scene=None, statefilename='.temp_scene.xml', shareWidget=None)[source]¶
Bases: PyQGLViewer.QGLViewer
This class is used to create and manipulate a 3 dimensions scene. This scene is based on QGLViewer. For the moment, we have only one view of this scene.
- addToScene(obj)[source]¶
Add a new object in existing scene
Parameters: obj – object to add in the scene
openalea.oalab.scene.vplscene module¶
- class openalea.oalab.scene.vplscene.VPLScene(*args, **kwds)[source]¶
Bases: collections.OrderedDict, openalea.grapheditor.observer.Observed
Scene for OALab. Singleton.
This class inherit from ordered dict. But when the dict is modified, self.signaler emit a qt signal (arg=self). This is really usefull to realize automatic updates of viewer!
- add(name='unnamed object', obj='None')[source]¶
Add a new object in the scene.
Parameters: - name – name of the object to add in the scene
- obj – object to add
- block()[source]¶
Block sent of signals. Useful to add many objects in the scene without refresh the viewer
- instance = None¶