|
Uranium
Application Framework
|
Container object for the scene graph. More...
Public Member Functions | |
| def | __init__ (self) |
| def | setIgnoreSceneChanges |
| def | getSceneLock (self) |
| def | getRoot (self) |
| Get the root node of the scene. More... | |
| def | setRoot |
| 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 |
| Set the camera that should be used for rendering. More... | |
| def | findObject |
| Find an object by id. More... | |
| def | findCamera |
| def | addWatchedFile |
| Add a file to be watched for changes. More... | |
| def | removeWatchedFile |
| Remove a file so that it will no longer be watched for changes. More... | |
Static Public Attributes | |
| tuple | rootChanged = Signal() |
| tuple | sceneChanged = Signal() |
| Signal that is emitted whenever something in the scene changes. More... | |
Container object for the scene graph.
The main purpose of this class is to provide the root SceneNode.
| def UM.Scene.Scene.Scene.addWatchedFile | ( | self, | |
| file_path | |||
| ) |
Add a file to be watched for changes.
| file_path | The path to the file that must be watched. |
| 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, | |
| Optional, | |||
| Camera | |||
| ) |
Get the camera that should be used for rendering.
| def UM.Scene.Scene.Scene.getRoot | ( | self, | |
| SceneNode | |||
| ) |
Get the root node of the scene.
| def UM.Scene.Scene.Scene.removeWatchedFile | ( | self, | |
| file_path | |||
| ) |
Remove a file so that it will no longer be watched for changes.
| file_path | The path to the file that must no longer be watched. |
| 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 that is emitted whenever something in the scene changes.
| object | The object that triggered the change. |