Uranium
Application Framework
Loading...
Searching...
No Matches
UM.Operations.ToBuildPlateOperation.ToBuildPlateOperation Class Reference
Inheritance diagram for UM.Operations.ToBuildPlateOperation.ToBuildPlateOperation:
UM.Operations.Operation.Operation

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 push (self)
 

Protected Attributes

 _node
 
 _old_transformation
 
- Protected Attributes inherited from UM.Operations.Operation.Operation
 _timestamp
 
 _always_merge
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__()

UM.Operations.ToBuildPlateOperation.ToBuildPlateOperation.__init__ ( self,
node )
Initialises this ToBuildPlateOperation.

:param node: The node to translate.

Reimplemented from UM.Operations.Operation.Operation.

Member Function Documentation

◆ __repr__()

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

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

◆ mergeWith()

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.

◆ redo()

UM.Operations.ToBuildPlateOperation.ToBuildPlateOperation.redo ( self)
(Re-)Applies the ToBuildPlateOperation.

Reimplemented from UM.Operations.Operation.Operation.

◆ undo()

UM.Operations.ToBuildPlateOperation.ToBuildPlateOperation.undo ( self)
Undoes the ToBuildPlateOperation, restoring the old transformation.

Reimplemented from UM.Operations.Operation.Operation.


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