Uranium
Application Framework
|
Container object for the scene graph. More...
Public Member Functions | |
def | __init__ (self) |
def | setIgnoreSceneChanges (self, ignore_scene_changes) |
def | acquireLock (self) |
Acquire the global scene lock. More... | |
def | releaseLock (self) |
Release the global scene lock. More... | |
def | getSceneLock (self) |
Gets the global scene lock. More... | |
def | getRoot (self) |
Get the root node of the scene. More... | |
def | setRoot (self, node) |
Change the root node of the scene. | |
def | getActiveCamera (self) |
Get the camera that should be used for rendering. More... | |
def | getAllCameras (self) |
def | setActiveCamera (self, name) |
Set the camera that should be used for rendering. More... | |
def | findObject (self, object_id) |
Find an object by id. More... | |
Static Public Attributes | |
rootChanged = Signal() | |
sceneChanged = Signal() | |
Signal. More... | |
Container object for the scene graph.
The main purpose of this class is to provide the root SceneNode.
def UM.Scene.Scene.Scene.acquireLock | ( | self | ) |
Acquire the global scene lock.
This will prevent any read or write actions on the scene from other threads, assuming those threads also properly acquire the lock. Most notably, this prevents the rendering thread from rendering the scene while it is changing. Deprecated, use getSceneLock() instead.
def UM.Scene.Scene.Scene.findObject | ( | self, | |
object_id | |||
) |
Find an object by id.
object_id | The id of the object to search for, as returned by the python id() method. |
def UM.Scene.Scene.Scene.getActiveCamera | ( | self | ) |
Get the camera that should be used for rendering.
def UM.Scene.Scene.Scene.getRoot | ( | self | ) |
Get the root node of the scene.
def UM.Scene.Scene.Scene.getSceneLock | ( | self | ) |
Gets the global scene lock.
Use this lock to prevent any read or write actions on the scene from other threads, assuming those threads also properly acquire the lock. Most notably, this prevents the rendering thread from rendering the scene while it is changing.
def UM.Scene.Scene.Scene.releaseLock | ( | self | ) |
Release the global scene lock.
Deprecated, use getSceneLock() instead.
def UM.Scene.Scene.Scene.setActiveCamera | ( | self, | |
name | |||
) |
Set the camera that should be used for rendering.
name | The name of the camera to use. |
|
static |
Signal.
Emitted whenever something in the scene changes.
object | The object that triggered the change. |