Uranium
Application Framework
UM.Operations.GravityOperation.GravityOperation Class Reference
Inheritance diagram for UM.Operations.GravityOperation.GravityOperation:
UM.Operations.Operation.Operation

Public Member Functions

def __init__ (self, node)
 
def undo (self)
 
def redo (self)
 
def mergeWith (self, other)
 
def __repr__ (self)
 
- Public Member Functions inherited from UM.Operations.Operation.Operation
None __init__ (self)
 
None undo (self)
 
None redo (self)
 
def mergeWith (self, other)
 
None push (self)
 

Detailed Description

An operation that moves a scene node down to 0 on the y-axis.

Constructor & Destructor Documentation

◆ __init__()

def UM.Operations.GravityOperation.GravityOperation.__init__ (   self,
  node 
)
Initialises this GravityOperation.

:param node: The node to translate.

Reimplemented from UM.Operations.Operation.Operation.

Member Function Documentation

◆ __repr__()

def UM.Operations.GravityOperation.GravityOperation.__repr__ (   self)
Returns a programmer-readable representation of this operation.

:return: A programmer-readable representation of this operation.

◆ mergeWith()

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.

◆ redo()

def UM.Operations.GravityOperation.GravityOperation.redo (   self)
(Re-)Applies the gravity operation.

Reimplemented from UM.Operations.Operation.Operation.

◆ undo()

def UM.Operations.GravityOperation.GravityOperation.undo (   self)
Undoes the gravity operation, restoring the old transformation.

Reimplemented from UM.Operations.Operation.Operation.


The documentation for this class was generated from the following file: