Editor API
UnigineEditor public API
|
#include <Selection.h>
Signals | |
void | changed () |
This signal is emitted when the current selection has changed. More... | |
Static Public Member Functions | |
static Selection * | instance () |
Returns the instance of the Selection class. This method is used to subscribe to the changed signal. More... | |
static void | clear () |
Clears the current selection. If current selection was not empty the changed signal is emitted. More... | |
static Selector * | getSelector () |
Returns the current selection. More... | |
static void | setSelector (Selector *selector) |
Sets the specified selection as the current one. If current selection has changed the changed signal is emitted. More... | |
static Selector * | copySelector () |
Copies the current selection. Current selection obtained via the getSelector() method is not managed by the user, so it can change at any time. You can use this method to store a copy of the current selection in order to perform undo/redo operations. More... | |
static SelectorNodes * | getSelectorNodes () |
Tries to filter out nodes from the current selection as a nodes selector (SelectorType). The result shall combine only selected nodes (if any). More... | |
static SelectorGUIDs * | getSelectorRuntimes () |
Tries to filter out runtimes from the current selection as a runtimes selector (SelectorType). The result shall combine only selected runtimes (if any). More... | |
static SelectorGUIDs * | getSelectorMaterials () |
Tries to filter out materials from the current selection as a materials selector (SelectorType). The result shall combine only selected materials (if any). More... | |
static SelectorGUIDs * | getSelectorProperties () |
Tries to filter out properties from the current selection as a properties selector (SelectorType). The result shall combine only selected properties (if any). More... | |
static SelectorNodes * | copySelectorNodes () |
Copies all currently selected nodes to a separate list. More... | |
static SelectorGUIDs * | copySelectorRuntimes () |
Copies all runtimes for all currently selected nodes to a separate list. More... | |
static SelectorGUIDs * | copySelectorMaterials () |
Copies all currently selected materials to a separate list. More... | |
static SelectorGUIDs * | copySelectorProperties () |
Copies all currently selected properties to a separate list. More... | |
Friends | |
class | Editor::Presenter |
|
signal |
This signal is emitted when the current selection has changed.
|
static |
Clears the current selection. If current selection was not empty the changed signal is emitted.
|
static |
Copies the current selection. Current selection obtained via the getSelector() method is not managed by the user, so it can change at any time. You can use this method to store a copy of the current selection in order to perform undo/redo operations.
|
static |
Copies all currently selected materials to a separate list.
|
static |
Copies all currently selected nodes to a separate list.
|
static |
Copies all currently selected properties to a separate list.
|
static |
Copies all runtimes for all currently selected nodes to a separate list.
|
static |
Returns the current selection.
|
static |
Tries to filter out materials from the current selection as a materials selector (SelectorType). The result shall combine only selected materials (if any).
|
static |
Tries to filter out nodes from the current selection as a nodes selector (SelectorType). The result shall combine only selected nodes (if any).
|
static |
Tries to filter out properties from the current selection as a properties selector (SelectorType). The result shall combine only selected properties (if any).
|
static |
Tries to filter out runtimes from the current selection as a runtimes selector (SelectorType). The result shall combine only selected runtimes (if any).
|
static |
Returns the instance of the Selection class. This method is used to subscribe to the changed signal.
Example:
|
static |
Sets the specified selection as the current one. If current selection has changed the changed signal is emitted.
|
friend |