Editor API
UnigineEditor public API
|
This class is used to represent any user's selection action. More...
Public Member Functions | |
SelectionAction (Selector *s) | |
Creates a new selection action for the specified selector. More... | |
void | apply () override |
Applies the selection action. More... | |
void | undo () override |
Reverts the selection action. More... | |
void | redo () override |
Redoes the previously undone selection action (reverses the undo method). More... | |
bool | modifiesWorld () const override |
Indicates whether the action brings any changes to the scene. Selection actions change nothing and shouldn't set world‘s "dirty state", so 'false’ is returned. 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 undo system will delete invalid action for good. More... | |
Static Public Member Functions | |
static void | applySelection (Selector *selector) |
Applies a new selection defined by the specified selector. More... | |
static void | refreshSelection (bool expand=false) |
Refreshes the current selection. More... | |
This class is used to represent any user's selection action.
|
explicit |
Creates a new selection action for the specified selector.
s | Selector defining a new selection. |
|
overridevirtual |
Applies the selection action.
Implements UnigineEditor::Action.
|
static |
Applies a new selection defined by the specified selector.
selector | New selection to be applied. |
|
inlineoverridevirtual |
Indicates whether the action brings any changes to the scene. Selection actions change nothing and shouldn't set world‘s "dirty state", so 'false’ is returned.
Reimplemented from UnigineEditor::Action.
|
inlineoverridevirtual |
Redoes the previously undone selection action (reverses the undo method).
Implements UnigineEditor::Action.
|
static |
Refreshes the current selection.
expand | Set true to expand the hierarchy after refreshing selection; false. |
|
overridevirtual |
Reverts the selection action.
Implements UnigineEditor::Action.
|
overridevirtual |
This method allows action to do some internal cleanup. Return value indicates whether the action is still sane. Whenever it returns false undo system will delete invalid action for good.
Reimplemented from UnigineEditor::Action.