Editor API
UnigineEditor public API
|
This class is used to represent any user's selection action. More...
#include <Actions.h>
Public Member Functions | |
SelectionAction (Selector *s) | |
Creates a new selection action for the specified selector. More... | |
~SelectionAction () override | |
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 asset system will delete invalid action for good. More... | |
Public Member Functions inherited from Editor::Action | |
Action () | |
virtual | ~Action () |
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... | |
Public Attributes | |
SelectionActionPrivate * | d |
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. |
|
override |
|
overridevirtual |
Applies the selection action.
Implements Editor::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 Editor::Action.
|
inlineoverridevirtual |
Redoes the previously undone selection action (reverses the undo method).
Implements Editor::Action.
|
static |
Refreshes the current selection.
expand | Set true to expand the hierarchy after refreshing selection; false. |
|
overridevirtual |
Reverts the selection 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.
SelectionActionPrivate* Editor::SelectionAction::d |