Uranium
Application Framework
UM.Operations.SetTransformOperation.SetTransformOperation Class Reference

Operation that translates, rotates and scales a node all at once. More...

Inheritance diagram for UM.Operations.SetTransformOperation.SetTransformOperation:
UM.Operations.Operation.Operation

Public Member Functions

def __init__
 Creates the transform operation. More...
 
def undo (self)
 Undoes the transformation, restoring the node to the old state. More...
 
def redo (self)
 Re-applies the transformation after it has been undone. More...
 
def mergeWith (self, other)
 Merges this operation with another TransformOperation. More...
 
def __repr__ (self)
 Returns a programmer-readable representation of this operation. More...
 
- Public Member Functions inherited from UM.Operations.Operation.Operation
def __init__ (self)
 
def undo (self)
 Undo the operation. More...
 
def redo (self)
 Redo the operation. More...
 
def mergeWith (self, other)
 Perform operation merging. More...
 
def push (self)
 Push the operation onto the stack. More...
 

Detailed Description

Operation that translates, rotates and scales a node all at once.

Constructor & Destructor Documentation

def UM.Operations.SetTransformOperation.SetTransformOperation.__init__ (   self,
  node,
  translation = None,
  orientation = None,
  scale = None,
  shear = None,
  mirror = None 
)

Creates the transform operation.

Careful! No real input checking is done by this function. If you'd provide other transformations than respectively translation, orientation and scale in place for the translation, orientation and scale matrices, it could get confused.

Parameters
nodeThe scene node to transform.
translationA translation matrix to move the node with.
orientationAn orientation matrix to rotate the node with.
scaleA scaling matrix to resize the node with.

Member Function Documentation

def UM.Operations.SetTransformOperation.SetTransformOperation.__repr__ (   self)

Returns a programmer-readable representation of this operation.

A programmer-readable representation of this operation.

def UM.Operations.SetTransformOperation.SetTransformOperation.mergeWith (   self,
  other 
)

Merges this operation with another TransformOperation.

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.

Parameters
otherThe older operation with which to merge this operation.
Returns
A combination of the two operations, or False if the merge failed.
def UM.Operations.SetTransformOperation.SetTransformOperation.redo (   self)

Re-applies the transformation after it has been undone.

def UM.Operations.SetTransformOperation.SetTransformOperation.undo (   self)

Undoes the transformation, restoring the node to the old state.


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