Uranium
Application Framework
|
Public Member Functions | |
def | __init__ (self, node) |
def | undo (self) |
def | redo (self) |
def | mergeWith (self, other) |
def | __repr__ (self) |
![]() | |
None | __init__ (self) |
None | undo (self) |
None | redo (self) |
def | mergeWith (self, other) |
None | push (self) |
An operation that moves a scene node down to 0 on the y-axis.
def UM.Operations.GravityOperation.GravityOperation.__init__ | ( | self, | |
node | |||
) |
Initialises this GravityOperation. :param node: The node to translate.
Reimplemented from UM.Operations.Operation.Operation.
def UM.Operations.GravityOperation.GravityOperation.__repr__ | ( | self | ) |
Returns a programmer-readable representation of this operation. :return: A programmer-readable representation of this operation.
def 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.
def UM.Operations.GravityOperation.GravityOperation.redo | ( | self | ) |
(Re-)Applies the gravity operation.
Reimplemented from UM.Operations.Operation.Operation.
def UM.Operations.GravityOperation.GravityOperation.undo | ( | self | ) |
Undoes the gravity operation, restoring the old transformation.
Reimplemented from UM.Operations.Operation.Operation.