Uranium
Application Framework
|
Operation that scales a scene node, uniformly or non-uniformly. More...
Public Member Functions | |
def | __init__ (self, node, scale, set_scale=False, add_scale=False, relative_scale=False, scale_around_point=Vector(0, 0, 0), snap=False) |
Initialises the scale operation. More... | |
def | undo (self) |
Undo the scale operation. More... | |
def | redo (self) |
Redo the scale operation. More... | |
def | mergeWith (self, other) |
Merge this operation with another scale operation. More... | |
def | __repr__ (self) |
Returns a programmer-readable representation of this operation. More... | |
![]() | |
def | __init__ (self) |
def | undo (self) |
Undo the operation. More... | |
def | redo (self) |
Redo the operation. More... | |
def | mergeWith (self, other) |
Perform operation merging. More... | |
def | push (self) |
Push the operation onto the stack. More... | |
Operation that scales a scene node, uniformly or non-uniformly.
def UM.Operations.ScaleOperation.ScaleOperation.__init__ | ( | self, | |
node, | |||
scale, | |||
set_scale = False , |
|||
add_scale = False , |
|||
relative_scale = False , |
|||
scale_around_point = Vector(0, 0, 0) , |
|||
snap = False |
|||
) |
Initialises the scale operation.
node | The scene node to scale. |
scale | A matrix to scale the node with. This matrix should only be non-zero on the diagonal. |
set_scale | Whether to simply replace the old scale with the new one (True) or modify the old scale (False). |
add_scale | Whether to add to the old scale (True) or multiply with it (False). |
relative_scale | Whether to multiply the scale relative to the current scale (True) or simply multiply it with a constant (False). |
scale_around_point | All coordinates are moved away from or towards this point. |
snap | Whether to use snap scaling (True) or not (False). |
def UM.Operations.ScaleOperation.ScaleOperation.__repr__ | ( | self | ) |
Returns a programmer-readable representation of this operation.
def UM.Operations.ScaleOperation.ScaleOperation.mergeWith | ( | self, | |
other | |||
) |
Merge this operation with another scale operation.
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 scale operation to merge this operation with. |
def UM.Operations.ScaleOperation.ScaleOperation.redo | ( | self | ) |
Redo the scale operation.
def UM.Operations.ScaleOperation.ScaleOperation.undo | ( | self | ) |
Undo the scale operation.