Editor API
UnigineEditor public API
Editor::SelectorGUIDs Class Reference

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>

Inheritance diagram for Editor::SelectorGUIDs:
Editor::Selector

Public Member Functions

 SelectorGUIDs (int type, QVector< 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...
 
SelectorGUIDsclone () const override
 Clones the selector. More...
 
QVector< Unigine::UGUID > guids () const
 Returns the list of GUIDs for all selected items. More...
 
- Public Member Functions inherited from Editor::Selector
 Selector ()
 
virtual ~Selector ()
 

Static Public Member Functions

static SelectorGUIDscreateRuntimesSelector (QVector< Unigine::UGUID > guids)
 Creates a runtimes selector using the specified list of GUIDs. More...
 
static SelectorGUIDscreateMaterialsSelector (QVector< Unigine::UGUID > guids)
 Creates a materials selector using the specified list of GUIDs. More...
 
static SelectorGUIDscreatePropertiesSelector (QVector< Unigine::UGUID > guids)
 Creates a properties selector using the specified list of GUIDs. More...
 

Detailed Description

Selector for GUIDs-based items (materials, properties, runtimes). An item of this type is associated with a file referred to via a GUID.

Constructor & Destructor Documentation

◆ SelectorGUIDs()

Editor::SelectorGUIDs::SelectorGUIDs ( int  type,
QVector< Unigine::UGUID >  guids 
)

Creates a SelectorGUIDs of the specified type (materials, properties, runtimes) using the specified list of GUIDs.

Parameters
typeThe type of the selector to be created: one of the SelectorType enum values.
guidsThe list of GUIDs of items to be added to the new selector.
Returns
Selector of the specified type containing items with the specified GUIDs.

◆ ~SelectorGUIDs()

Editor::SelectorGUIDs::~SelectorGUIDs ( )
override

Member Function Documentation

◆ clone()

SelectorGUIDs* Editor::SelectorGUIDs::clone ( ) const
overridevirtual

Clones the selector.

Returns
Clone of the current selector.

Implements Editor::Selector.

◆ createMaterialsSelector()

static SelectorGUIDs* Editor::SelectorGUIDs::createMaterialsSelector ( QVector< Unigine::UGUID >  guids)
static

Creates a materials selector using the specified list of GUIDs.

Parameters
guidsThe list of GUIDs of materials.
Returns
SelectorGUIDs containing materials with the specified GUIDs.

◆ createPropertiesSelector()

static SelectorGUIDs* Editor::SelectorGUIDs::createPropertiesSelector ( QVector< Unigine::UGUID >  guids)
static

Creates a properties selector using the specified list of GUIDs.

Parameters
guidsThe list of GUIDs of properties.
Returns
SelectorGUIDs containing properties with the specified GUIDs.

◆ createRuntimesSelector()

static SelectorGUIDs* Editor::SelectorGUIDs::createRuntimesSelector ( QVector< Unigine::UGUID >  guids)
static

Creates a runtimes selector using the specified list of GUIDs.

Parameters
guidsThe list of GUIDs of runtimes.
Returns
SelectorGUIDs containing runtimes with the specified GUIDs.

◆ equal()

bool Editor::SelectorGUIDs::equal ( const Selector selector) const
overridevirtual

Checks whether the selector is equal to the specified target selector.

Parameters
selectorTarget selector.
Returns
true if selectors are equal; otherwise, false.

Implements Editor::Selector.

◆ guids()

QVector<Unigine::UGUID> Editor::SelectorGUIDs::guids ( ) const

Returns the list of GUIDs for all selected items.

Returns
Vector containing GUIDs for all selected items.

◆ type()

int Editor::SelectorGUIDs::type ( ) const
overridevirtual

Returns the current selector type.

Returns
Current selector type: one of the SelectorType enum values.

Implements Editor::Selector.