7 #include <EditorGlobal.h> 8 #include <UnigineNode.h> 21 class SelectorGUIDsPrivate;
22 class SelectorNodesPrivate;
23 class IndexListPrivate;
55 virtual int type()
const = 0;
58 virtual bool equal(
const Selector *selector)
const = 0;
61 virtual Selector *clone ()
const = 0;
75 static SelectorGUIDs *createRuntimesSelector (QVector<Unigine::UGUID> guids);
79 static SelectorGUIDs *createMaterialsSelector (QVector<Unigine::UGUID> guids);
83 static SelectorGUIDs *createPropertiesSelector(QVector<Unigine::UGUID> guids);
94 int type()
const override;
98 bool equal(
const Selector *selector)
const override;
105 QVector<Unigine::UGUID> guids()
const;
108 ::Editor::Internal::SelectorGUIDsPrivate *d;
122 static SelectorNodes *createObjectsSelector(
const QVector<Unigine::NodePtr> &nodes);
143 virtual int type()
const = 0;
159 explicit SelectorNodes(
const QVector<Unigine::NodePtr> &nodes);
164 int type()
const override;
168 bool equal(
const Selector *selector)
const override;
175 QVector<Unigine::NodePtr> getNodes()
const;
185 void extend(
const Unigine::NodePtr &node);
188 void extend(
const QVector<Unigine::NodePtr> &nodes);
192 void extend(
const Unigine::NodePtr &node,
SubItemList *subs);
196 void exclude(
const Unigine::NodePtr &node);
199 void exclude(
const QVector<Unigine::NodePtr> &nodes);
209 bool contains(
const Unigine::NodePtr &node)
const;
218 SubItemList *getSubItemList(
const Unigine::NodePtr &node)
const;
226 IndexList *getIndexList(
int node_id)
const;
234 IndexList *getIndexList(
const Unigine::NodePtr &node)
const;
257 void setNeedExpand(
bool value);
259 bool isNeedExpand()
const;
262 ::Editor::Internal::SelectorNodesPrivate *d;
290 int type()
const override;
294 bool equal(SubItemList *other)
const override;
297 void merge(SubItemList *other)
override;
335 ::Editor::Internal::IndexListPrivate *d;
Materials selector.
Definition: Selector.h:36
Definition: Selector.h:48
Beginning of the range of user-defined types. Types are referred to as SELECTOR_USER+0,...
Definition: Selector.h:42
Definition: Selector.h:12
Selector for GUIDs-based items (materials, properties, runtimes). An item of this type is associated ...
Definition: Selector.h:69
SubObjectType
Type of selectable subobjects for various types of nodes.
Definition: Constants.h:37
Properties selector.
Definition: Selector.h:38
SelectorType
Selector type, defines the type of selected entities. The first 256 types are reserved by UNIGINE,...
Definition: Selector.h:31
This class represents a list of selected subitems of a selected node. When an object is selected,...
Definition: Selector.h:137
Nodes selector.
Definition: Selector.h:34
SubType
Subitem type. The first 256 types are reserved by UNIGINE, user subitem types start from USER + i (25...
Definition: Selector.h:125
This class represents a list of indices of selected subitems of a selected node. When an object is se...
Definition: Selector.h:269
This class is used to manage selected nodes along with their subobjects (such as surfaces,...
Definition: Selector.h:117
Runtimes selector.
Definition: Selector.h:40