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

Operation that adds a new node to the scene. More...

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

Public Member Functions

def __init__
 Creates the scene node operation. More...
 
def undo
 Reverses the operation of adding a scene node. More...
 
def redo
 Re-applies this operation after it has been undone. 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 adds a new node to the scene.

Constructor & Destructor Documentation

def UM.Operations.AddSceneNodeOperation.AddSceneNodeOperation.__init__ (   self,
  node,
  parent 
)

Creates the scene node operation.

This saves the node and its parent to be able to search for the node to remove the node if we want to undo, and to be able to re-do the adding of the node.

Parameters
nodeThe node to add to the scene.
parentThe parent of the new node.

Member Function Documentation

def UM.Operations.AddSceneNodeOperation.AddSceneNodeOperation.redo (   self)

Re-applies this operation after it has been undone.

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

Reverses the operation of adding a scene node.

This removes the scene node again.


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