openalea.core.scene package#
Submodules#
openalea.core.scene.vplscene module#
- class openalea.core.scene.vplscene.VPLScene(*args, **kw)[source]#
Bases:
OrderedDict,ObservedScene for OALab. Singleton.
This class inherit from ordered dict. This scene also inherits from Observed, especially to know when Scene has changed. (Notify listeners with world_changed event)
- 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
- popitem(last=True)[source]#
Remove and return a (key, value) pair from the dictionary.
Pairs are returned in LIFO order if last is true or FIFO order if false.