openalea.core.world package#
Submodules#
openalea.core.world.world module#
- class openalea.core.world.world.World(*args, **kw)[source]#
Bases:
VPLScene,AbstractListenerContain objects of the world.
- When world changes, several events can be notified to listeners:
world_object_changed(world, changes)
world_object_replaced(world, key, old_object, new_object)
world_object_added(world, key, new_object)
world_object_removed(world, old_object)
A generic “world_changed” event is also notified for all previous changes.
Warning
currently only world_changed event is implemented
- add(data, name=None, **kwargs)[source]#
- Parameters:
transform (-) – method used to convert object before representing it
_repr_* (-) – define method used to convert object to a specific format (html, vtk, …)
- class openalea.core.world.world.WorldObject(name, data, **kwargs)[source]#
Bases:
ObservedObject of the world.
- WorldObject contains :
name : world object identifier
data : the object itself
attributes : list of (name, Interface, value)
- WorldObject provides meta-information like …
origin
time required to compute object
visibility in scene
date when object has been added to scene
- property attributes#
- property data#
- property name#
- notify_listeners(event=None)[source]#
Send a notification to all listeners
- Parameters:
event – an object to pass to the notify function
- property obj#
- property silent#