Uranium
Application Framework
|
Operation that translates, rotates and scales a node all at once. More...
Public Member Functions | |
def | __init__ |
Creates the transform operation. More... | |
def | undo |
Undoes the transformation, restoring the node to the old state. More... | |
def | redo |
Re-applies the transformation after it has been undone. More... | |
def | mergeWith |
Merges this operation with another TransformOperation. More... | |
def | __repr__ |
Returns a programmer-readable representation of this operation. More... | |
![]() | |
def | __init__ |
def | undo |
Undo the operation. More... | |
def | redo |
Redo the operation. More... | |
def | mergeWith |
Perform operation merging. More... | |
def | push |
Push the operation onto the stack. More... | |
Operation that translates, rotates and scales a node all at once.
def UM.Operations.SetTransformOperation.SetTransformOperation.__init__ | ( | self, | |
node, | |||
translation = None , |
|||
orientation = None , |
|||
scale = None , |
|||
shear = None , |
|||
mirror = None |
|||
) |
Creates the transform operation.
Careful! No real input checking is done by this function. If you'd provide other transformations than respectively translation, orientation and scale in place for the translation, orientation and scale matrices, it could get confused.
node | The scene node to transform. |
translation | A translation matrix to move the node with. |
orientation | An orientation matrix to rotate the node with. |
scale | A scaling matrix to resize the node with. |
def UM.Operations.SetTransformOperation.SetTransformOperation.__repr__ | ( | self | ) |
Returns a programmer-readable representation of this operation.
A programmer-readable representation of this operation.
def UM.Operations.SetTransformOperation.SetTransformOperation.mergeWith | ( | self, | |
other | |||
) |
Merges this operation with another TransformOperation.
This prevents the user from having to undo multiple operations if they were not his operations.
You should ONLY merge this operation with an older operation. It is NOT symmetric.
other | The older operation with which to merge this operation. |
def UM.Operations.SetTransformOperation.SetTransformOperation.redo | ( | self | ) |
Re-applies the transformation after it has been undone.
def UM.Operations.SetTransformOperation.SetTransformOperation.undo | ( | self | ) |
Undoes the transformation, restoring the node to the old state.