Uranium
Application Framework
 All Classes Namespaces Files Functions Variables Pages
UM.Operations.RotateOperation.RotateOperation Class Reference

Operation that rotates a scene node. More...

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

Public Member Functions

def __init__
 Initialises the operation. More...
 
def undo
 Undoes the rotation, rotating the node back. More...
 
def redo
 Redoes the rotation, rotating the node again. More...
 
def mergeWith
 Merges this operation with another RotateOperation. More...
 
def __repr__
 Returns a programmer-readable representation of this operation. More...
 
- Public Member Functions inherited from UM.Operations.Operation.Operation
def __init__
 
def undo
 Undo the operation. More...
 
def redo
 Redo the operation. More...
 
def mergeWith
 Perform operation merging. More...
 
def push
 Push the operation onto the stack. More...
 

Detailed Description

Operation that rotates a scene node.

Constructor & Destructor Documentation

def UM.Operations.RotateOperation.RotateOperation.__init__ (   self,
  node,
  rotation,
  rotate_around_point = Vector(0, 0 
)

Initialises the operation.

Parameters
nodeThe node to rotate.
rotationA transformation matrix that rotates a space. This rotation is applied on the node.
kwargsKey-word arguments, including:
  • rotate_around_point: A point around which to rotate the node.

Member Function Documentation

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

Returns a programmer-readable representation of this operation.

Returns
A programmer-readable representation of this operation.
def UM.Operations.RotateOperation.RotateOperation.mergeWith (   self,
  other 
)

Merges this operation with another RotateOperation.

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 RotateOperation to merge this with.
Returns
A combination of the two rotate operations.
def UM.Operations.RotateOperation.RotateOperation.redo (   self)

Redoes the rotation, rotating the node again.

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

Undoes the rotation, rotating the node back.


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