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.
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.
def UM.Operations.GravityOperation.GravityOperation.redo |
( |
|
self | ) |
|
(Re-)Applies the gravity operation.
def UM.Operations.GravityOperation.GravityOperation.undo |
( |
|
self | ) |
|
Undoes the gravity operation, restoring the old transformation.
The documentation for this class was generated from the following file:
- UM/Operations/GravityOperation.py