Uranium
Application Framework
|
Public Member Functions | |
__init__ (self, node) | |
undo (self) | |
redo (self) | |
mergeWith (self, other) | |
__repr__ (self) | |
Public Member Functions inherited from UM.Operations.Operation.Operation | |
None | __init__ (self) |
None | push (self) |
Protected Attributes | |
_node = node | |
_old_transformation = node.getLocalTransformation() | |
Protected Attributes inherited from UM.Operations.Operation.Operation | |
_timestamp = time.time() | |
bool | _always_merge = False |
An operation that moves a scene node down to 0 on the y-axis.
UM.Operations.GravityOperation.GravityOperation.__init__ | ( | self, | |
node ) |
Initialises this GravityOperation. :param node: The node to translate.
UM.Operations.GravityOperation.GravityOperation.__repr__ | ( | self | ) |
Returns a programmer-readable representation of this operation. :return: A programmer-readable representation of this operation.
UM.Operations.GravityOperation.GravityOperation.mergeWith | ( | self, | |
other ) |
Merges this operation with another gravity 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. :param other: The older gravity operation to merge this operation with.
Reimplemented from UM.Operations.Operation.Operation.
UM.Operations.GravityOperation.GravityOperation.redo | ( | self | ) |
(Re-)Applies the gravity operation.
Reimplemented from UM.Operations.Operation.Operation.
UM.Operations.GravityOperation.GravityOperation.undo | ( | self | ) |
Undoes the gravity operation, restoring the old transformation.
Reimplemented from UM.Operations.Operation.Operation.