Editor API
UnigineEditor public API
|
This class is used to represent any user's action removing nodes. More...
#include <Actions.h>
Public Member Functions | |
RemoveNodesAction (const Unigine::NodePtr &node) | |
Creates a new remove action for the specified node. More... | |
RemoveNodesAction (const QVector< Unigine::NodePtr > &nodes) | |
Creates a new remove action for the specified node. More... | |
~RemoveNodesAction () override | |
void | apply () override |
Applies the remove nodes action. More... | |
void | undo () override |
Reverts the remove nodes action. More... | |
void | redo () override |
Redoes the previously undone remove nodes action (reverses the undo method). More... | |
bool | validate () override |
This method allows action to do some internal cleanup. Return value indicates whether the action is still sane. Whenever it returns false asset system will delete invalid action for good. More... | |
QVector< Unigine::NodePtr > | getNodes () const |
Public Member Functions inherited from Editor::Action | |
Action () | |
virtual | ~Action () |
virtual bool | modifiesWorld () const |
Indicates whether the action brings any changes to the scene. Actions like selection, for example, change nothing and shouldn't set world‘s "dirty state". For such actions this method would return 'false’. More... | |
This class is used to represent any user's action removing nodes.
|
explicit |
Creates a new remove action for the specified node.
node | Node to be removed. |
|
explicit |
Creates a new remove action for the specified node.
nodes | Nodes to be removed. |
|
override |
|
overridevirtual |
Applies the remove nodes action.
Implements Editor::Action.
QVector<Unigine::NodePtr> Editor::RemoveNodesAction::getNodes | ( | ) | const |
|
inlineoverridevirtual |
Redoes the previously undone remove nodes action (reverses the undo method).
Implements Editor::Action.
|
overridevirtual |
Reverts the remove nodes action.
Implements Editor::Action.
|
overridevirtual |
This method allows action to do some internal cleanup. Return value indicates whether the action is still sane. Whenever it returns false asset system will delete invalid action for good.
Reimplemented from Editor::Action.