Editor API
UnigineEditor public API
NewSelection.h
1 // Copyright (C), UNIGINE. All rights reserved.
2 #pragma once
3 
4 #include <editor/EditorGlobal.h>
5 
6 #include <UnigineNode.h>
7 #include <UnigineMaterial.h>
8 #include <UnigineProperties.h>
9 #include <UnigineVector.h>
10 
11 
12 namespace Editor
13 {
14 
15 class EDITOR_API NewSelection final
16 {
17 public:
18  static void selectNode(const Unigine::NodePtr &node);
19  static void selectNodes(const Unigine::Vector<Unigine::NodePtr> &nodes);
20  static bool isSelectedNode();
21  static Unigine::NodePtr getSelectedNode();
22  static void getSelectedNodes(Unigine::Vector<Unigine::NodePtr> &nodes);
23 
24  static void selectAsset(const Unigine::UGUID &guid);
25  static void selectAssets(const Unigine::Vector<Unigine::UGUID> &guids);
26  static bool isSelectedAsset();
27  static Unigine::UGUID getSelectedAsset();
28  static void getSelectedAssets(Unigine::Vector<Unigine::UGUID> &guids);
29 
30  static void selectMaterial(const Unigine::MaterialPtr &material);
31  static void selectMaterials(const Unigine::Vector<Unigine::MaterialPtr> &materials);
32  static bool isSelectedMaterial();
33  static Unigine::MaterialPtr getSelectedMaterial();
34  static void getSelectedMaterials(Unigine::Vector<Unigine::MaterialPtr> &materials);
35 
36  static void selectProperty(const Unigine::PropertyPtr &node);
37  static void selectProperties(const Unigine::Vector<Unigine::PropertyPtr> &properties);
38  static bool isSelectedProperty();
39  static Unigine::PropertyPtr getSelectedProperty();
40  static void getSelectedProperties(Unigine::Vector<Unigine::PropertyPtr> &properties);
41 };
42 
43 } // namespace Editor
Definition: Actions.h:11
Definition: NewSelection.h:15