Uranium
Application Framework
|
Operation that adds a new node to the scene. More...
Public Member Functions | |
def | __init__ |
Creates the scene node operation. More... | |
def | undo (self) |
Reverses the operation of adding a scene node. More... | |
def | redo (self) |
Re-applies this operation after it has been undone. More... | |
![]() | |
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... | |
Operation that adds a new node to the scene.
def UM.Operations.AddSceneNodeOperation.AddSceneNodeOperation.__init__ | ( | self, | |
node | |||
) |
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.
node | The node to add to the scene. |
parent | The parent of the new node. |
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.