Uranium
Application Framework
|
Public Member Functions | |
def | __init__ (self, node, rotation, rotate_around_point=Vector(0, 0, 0)) |
def | undo (self) |
def | redo (self) |
def | mergeWith (self, other) |
def | __repr__ (self) |
![]() | |
None | __init__ (self) |
None | push (self) |
Operation that rotates a scene node.
def UM.Operations.RotateOperation.RotateOperation.__init__ | ( | self, | |
node, | |||
rotation, | |||
rotate_around_point = Vector(0, 0, 0) |
|||
) |
Initialises the operation. :param node: The node to rotate. :param rotation: A transformation quaternion that rotates a space. This rotation is applied on the node. :param kwargs: Key-word arguments, including: - rotate_around_point: A point around which to rotate the node.
def UM.Operations.RotateOperation.RotateOperation.__repr__ | ( | self | ) |
Returns a programmer-readable representation of this operation. :return: A programmer-readable representation of this operation.
def UM.Operations.RotateOperation.RotateOperation.mergeWith | ( | self, | |
other | |||
) |
Merges this operation with another RotateOperation. 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. :param other: The older RotateOperation to merge this with. :return: A combination of the two rotate operations.
Reimplemented from UM.Operations.Operation.Operation.
def UM.Operations.RotateOperation.RotateOperation.redo | ( | self | ) |
Redoes the rotation, rotating the node again.
Reimplemented from UM.Operations.Operation.Operation.
def UM.Operations.RotateOperation.RotateOperation.undo | ( | self | ) |
Undoes the rotation, rotating the node back.
Reimplemented from UM.Operations.Operation.Operation.