eradiate.scenes.core.InstanceSceneElement¶
- class eradiate.scenes.core.InstanceSceneElement(id=None)[source]¶
Bases:
SceneElement,ABCAbstract base class for scene elements which represent a node in the Mitsuba scene graph, but can only be expanded to a Mitsuba object.
- Parameters:
id (
str, optional) – Identifier of the current scene element.- Fields:
- traverse(callback)[source]¶
Traverse this scene element and collect kernel dictionary template and parameter update map contributions.
- Parameters:
callback (
SceneTraversal) – Callback data structure storing the collected data.
- update()¶
Enforce internal state consistency. This method should be called when fields are modified. It is automatically called as a post-init step.
- abstract property instance¶
Mitsuba object which is represented by this scene element.
- Returns:
- property params¶
- Returns:
dict[str,SceneParameter] orNone– A dictionary mapping parameter paths, consisting of dot-separated strings, to a corresponding update protocol.
See also