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