Uranium
Application Framework
|
Public Member Functions | |
None | __init__ (self) |
None | setMetaDataEntry (self, str key, Any entry) |
def | clearMetaData (self) |
def | getMetaData (self) |
None | setIgnoreSceneChanges (self, bool ignore_scene_changes) |
threading.Lock | getSceneLock (self) |
"SceneNode" | getRoot (self) |
None | setRoot (self, "SceneNode" node) |
Optional[Camera] | getActiveCamera (self) |
List[Camera] | getAllCameras (self) |
None | setActiveCamera (self, str name) |
Optional["SceneNode"] | findObject (self, int object_id) |
Optional[Camera] | findCamera (self, str name) |
None | addWatchedFile (self, str file_path) |
None | removeWatchedFile (self, str file_path) |
Static Public Attributes | |
rootChanged = Signal() | |
sceneChanged = Signal() | |
Container object for the scene graph The main purpose of this class is to provide the root SceneNode.
None UM.Scene.Scene.Scene.addWatchedFile | ( | self, | |
str | file_path | ||
) |
Add a file to be watched for changes. :param file_path: The path to the file that must be watched.
Optional["SceneNode"] UM.Scene.Scene.Scene.findObject | ( | self, | |
int | object_id | ||
) |
Find an object by id. :param object_id: The id of the object to search for, as returned by the python id() method. :return: The object if found, or None if not.
Optional[Camera] UM.Scene.Scene.Scene.getActiveCamera | ( | self | ) |
Get the camera that should be used for rendering.
"SceneNode" UM.Scene.Scene.Scene.getRoot | ( | self | ) |
Get the root node of the scene.
None UM.Scene.Scene.Scene.removeWatchedFile | ( | self, | |
str | file_path | ||
) |
Remove a file so that it will no longer be watched for changes. :param file_path: The path to the file that must no longer be watched.
None UM.Scene.Scene.Scene.setActiveCamera | ( | self, | |
str | name | ||
) |
Set the camera that should be used for rendering. :param name: The name of the camera to use.
None UM.Scene.Scene.Scene.setRoot | ( | self, | |
"SceneNode" | node | ||
) |
Change the root node of the scene