Uranium
Application Framework
|
A tool handle is a object in the scene that gives queues for what the tool it is 'paired' with can do. More...
Public Member Functions | |
def | __init__ |
def | getLineMesh |
def | setLineMesh |
def | getSolidMesh |
def | setSolidMesh |
def | getSelectionMesh |
def | setSelectionMesh |
def | getMaterial |
def | render |
def | setActiveAxis |
def | isAxis |
def | buildMesh |
![]() | |
def | __init__ |
Construct a scene node. More... | |
def | __deepcopy__ |
def | setCenterPosition |
Set the center position of this node. More... | |
def | getParent |
Get the parent of this node. More... | |
def | getMirror |
def | setMirror |
def | getBoundingBoxMesh |
Get the MeshData of the bounding box. More... | |
def | calculateBoundingBoxMesh |
(re)Calculate the bounding box mesh. More... | |
def | addDecorator |
Add a SceneNodeDecorator to this SceneNode. More... | |
def | getDecorators |
Get all SceneNodeDecorators that decorate this SceneNode. More... | |
def | getDecorator |
Get SceneNodeDecorators by type. More... | |
def | removeDecorators |
Remove all decorators. | |
def | removeDecorator |
Remove decorator by type. More... | |
def | callDecoration |
Call a decoration of this SceneNode. More... | |
def | hasDecoration |
Does this SceneNode have a certain Decoration (as defined by a Decorator) More... | |
def | getName |
def | setName |
def | getDepth |
How many nodes is this node removed from the root? More... | |
def | setParent |
Set the parent of this object. More... | |
def | isVisible |
Get the visibility of this node. More... | |
def | setVisible |
Set the visibility of this SceneNode. More... | |
def | getMeshData |
Get the (original) mesh data from the scene node/object. More... | |
def | getMeshDataTransformed |
Get the transformed mesh data from the scene node/object, based on the transformation of scene nodes wrt root. More... | |
def | getMeshDataTransformedVertices |
Get the transformed vertices from this scene node/object, based on the transformation of scene nodes wrt root. More... | |
def | getMeshDataTransformedNormals |
Get the transformed normals from this scene node/object, based on the transformation of scene nodes wrt root. More... | |
def | setMeshData |
Set the mesh of this node/object. More... | |
def | addChild |
Add a child to this node and set it's parent as this node. More... | |
def | removeChild |
remove a single child More... | |
def | removeAllChildren |
Removes all children and its children's children. More... | |
def | getChildren |
Get the list of direct children. More... | |
def | hasChildren |
def | getAllChildren |
Get list of all children (including it's children children children etc.) More... | |
def | getWorldTransformation |
Computes and returns the transformation from world to local space. More... | |
def | getLocalTransformation |
Returns the local transformation with respect to its parent. More... | |
def | setTransformation |
def | getOrientation |
Get the local orientation value. More... | |
def | getWorldOrientation |
def | rotate |
Rotate the scene object (and thus its children) by given amount. More... | |
def | setOrientation |
Set the local orientation of this scene node. More... | |
def | getScale |
Get the local scaling value. More... | |
def | getWorldScale |
def | scale |
Scale the scene object (and thus its children) by given amount. More... | |
def | setScale |
Set the local scale value. More... | |
def | getPosition |
Get the local position. More... | |
def | getWorldPosition |
Get the position of this scene node relative to the world. More... | |
def | translate |
Translate the scene object (and thus its children) by given amount. More... | |
def | setPosition |
Set the local position value. More... | |
def | lookAt |
Rotate this scene node in such a way that it is looking at target. More... | |
def | render |
Can be overridden by child nodes if they need to perform special rendering. More... | |
def | isEnabled |
Get whether this SceneNode is enabled, that is, it can be modified in any way. More... | |
def | setEnabled |
Set whether this SceneNode is enabled. More... | |
def | isSelectable |
Get whether this SceneNode can be selected. More... | |
def | setSelectable |
Set whether this SceneNode can be selected. More... | |
def | getBoundingBox |
Get the bounding box of this node and its children. More... | |
def | setCalculateBoundingBox |
Set whether or not to calculate the bounding box for this node. More... | |
def | getShear |
def | getSetting |
def | setSetting |
def | __str__ |
String output for debugging. More... | |
Static Public Attributes | |
int | NoAxis = 1 |
int | XAxis = 2 |
int | YAxis = 3 |
int | ZAxis = 4 |
int | AllAxis = 5 |
tuple | DisabledSelectionColor = Color(0.5, 0.5, 0.5, 1.0) |
tuple | XAxisSelectionColor = Color(1.0, 0.0, 0.0, 1.0) |
tuple | YAxisSelectionColor = Color(0.0, 0.0, 1.0, 1.0) |
tuple | ZAxisSelectionColor = Color(0.0, 1.0, 0.0, 1.0) |
tuple | AllAxisSelectionColor = Color(1.0, 1.0, 1.0, 1.0) |
![]() | |
tuple | decoratorsChanged = Signal() |
Signal for when a SceneNodeDecorator is added / removed. More... | |
tuple | parentChanged = Signal() |
Emitted whenever the parent changes. More... | |
tuple | meshDataChanged = Signal() |
Emitted whenever the attached mesh data object changes. More... | |
tuple | childrenChanged = Signal() |
Emitted whenever the list of children of this object or any child object changes. More... | |
tuple | transformationChanged = Signal() |
Signal. More... | |
tuple | boundingBoxChanged = Signal() |
A tool handle is a object in the scene that gives queues for what the tool it is 'paired' with can do.
ToolHandles are used for translation, rotation & scale handles. They can also be used as actual objects to interact with (in the case of translation, pressing one arrow of the toolhandle locks the translation in that direction)