Vuo
0.4.3
|
An undoable action for replacing one node with another.
Public Member Functions | |
VuoCommandReplaceNode (VuoRendererNode *oldNode, VuoRendererNode *newNode, VuoEditorComposition *composition, string commandDescription="Replace Node") | |
Creates a command for replacing a node within a composition. | |
int | id () const |
Returns the ID of this command. | |
void | undo () |
Restores the original node and its connected cables. | |
void | redo () |
Replaces the oldNode with the newNode , re-wiring any connected cables to connect to ports of the same name belonging to the new node. | |