Editor API
UnigineEditor public API
|
Selector for GUIDs-based items (materials, properties, runtimes). An item of this type is associated with a file referred to via a GUID. More...
#include <Selector.h>
Public Member Functions | |
SelectorGUIDs (int type, Unigine::Vector< Unigine::UGUID > guids) | |
Creates a SelectorGUIDs of the specified type (materials, properties, runtimes) using the specified list of GUIDs. More... | |
~SelectorGUIDs () override | |
int | type () const override |
Returns the current selector type. More... | |
bool | equal (const Selector *selector) const override |
Checks whether the selector is equal to the specified target selector. More... | |
SelectorGUIDs * | clone () const override |
Clones the selector. More... | |
Unigine::Vector< Unigine::UGUID > | guids () const |
Returns the list of GUIDs for all selected items. More... | |
bool | contains (const Unigine::UGUID &guid) const |
Checks whether the SelectorGUIDs contains the specified GUID. More... | |
bool | empty () const |
Checks whether the SelectorGUIDs is empty (no GUID-s are currently selected). More... | |
Public Member Functions inherited from Editor::Selector | |
Selector () | |
virtual | ~Selector () |
Static Public Member Functions | |
static SelectorGUIDs * | createRuntimesSelector (Unigine::Vector< Unigine::UGUID > guids) |
Creates a runtimes selector using the specified list of GUIDs. More... | |
static SelectorGUIDs * | createMaterialsSelector (Unigine::Vector< Unigine::UGUID > guids) |
Creates a materials selector using the specified list of GUIDs. More... | |
static SelectorGUIDs * | createPropertiesSelector (Unigine::Vector< Unigine::UGUID > guids) |
Creates a properties selector using the specified list of GUIDs. More... | |
Selector for GUIDs-based items (materials, properties, runtimes). An item of this type is associated with a file referred to via a GUID.
Editor::SelectorGUIDs::SelectorGUIDs | ( | int | type, |
Unigine::Vector< Unigine::UGUID > | guids | ||
) |
Creates a SelectorGUIDs of the specified type (materials, properties, runtimes) using the specified list of GUIDs.
type | The type of the selector to be created: one of the SelectorType enum values. |
guids | The list of GUIDs of items to be added to the new selector. |
|
override |
|
overridevirtual |
bool Editor::SelectorGUIDs::contains | ( | const Unigine::UGUID & | guid | ) | const |
Checks whether the SelectorGUIDs contains the specified GUID.
|
static |
Creates a materials selector using the specified list of GUIDs.
guids | The list of GUIDs of materials. |
|
static |
Creates a properties selector using the specified list of GUIDs.
guids | The list of GUIDs of properties. |
|
static |
Creates a runtimes selector using the specified list of GUIDs.
guids | The list of GUIDs of runtimes. |
bool Editor::SelectorGUIDs::empty | ( | ) | const |
Checks whether the SelectorGUIDs is empty (no GUID-s are currently selected).
|
overridevirtual |
Checks whether the selector is equal to the specified target selector.
selector | Target selector. |
Implements Editor::Selector.
Unigine::Vector<Unigine::UGUID> Editor::SelectorGUIDs::guids | ( | ) | const |
Returns the list of GUIDs for all selected items.
|
overridevirtual |
Returns the current selector type.
Implements Editor::Selector.