This class is used to represent any user's selection action.
More...
#include <UnigineActions.h>
|
| 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...
|
|
This class is used to represent any user's selection action.
◆ SelectionAction()
UnigineEditor::SelectionAction::SelectionAction |
( |
Selector * |
s | ) |
|
|
explicit |
Creates a new selection action for the specified selector.
- Parameters
-
s | Selector defining a new selection. |
◆ apply()
void UnigineEditor::SelectionAction::apply |
( |
| ) |
|
|
overridevirtual |
◆ applySelection()
static void UnigineEditor::SelectionAction::applySelection |
( |
Selector * |
selector | ) |
|
|
static |
Applies a new selection defined by the specified selector.
- Parameters
-
selector | New selection to be applied. |
◆ modifiesWorld()
bool UnigineEditor::SelectionAction::modifiesWorld |
( |
| ) |
const |
|
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.
◆ redo()
void UnigineEditor::SelectionAction::redo |
( |
| ) |
|
|
inlineoverridevirtual |
Redoes the previously undone selection action (reverses the undo method).
Implements UnigineEditor::Action.
◆ refreshSelection()
static void UnigineEditor::SelectionAction::refreshSelection |
( |
bool |
expand = false | ) |
|
|
static |
Refreshes the current selection.
- Parameters
-
expand | Set true to expand the hierarchy after refreshing selection; false. |
◆ undo()
void UnigineEditor::SelectionAction::undo |
( |
| ) |
|
|
overridevirtual |
◆ validate()
bool UnigineEditor::SelectionAction::validate |
( |
| ) |
|
|
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.