Ocular Engine
SceneTreeItem.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_SCENE_TREE_ITEM__H__
19 #define __H__OCULAR_EDITOR_SCENE_TREE_ITEM__H__
20 
21 #include <QtWidgets/qtreewidget.h>
22 #include <UUID.hpp>
23 
24 //------------------------------------------------------------------------------------------
25 
30 namespace Ocular
31 {
32  namespace Core
33  {
34  class SceneObject;
35  }
36 
41  namespace Editor
42  {
43  class SceneTree;
44 
49  class SceneTreeItem : public QTreeWidgetItem
50  {
51  public:
52 
59  SceneTreeItem(SceneTree* parent, Core::SceneObject* object);
60 
68 
72  virtual ~SceneTreeItem();
73 
74  //------------------------------------------------------------
75 
76  void update(bool recursive = true);
77 
82 
86  Core::UUID const& getUUID() const;
87 
88  protected:
89 
93  void buildItem();
94 
95  //------------------------------------------------------------
96 
97  Core::SceneObject* m_Object;
98  Core::UUID m_ObjectUUID;
99 
100  private:
101  };
102  }
106 }
111 //------------------------------------------------------------------------------------------
112 
113 #endif
Core::SceneObject * getObject() const
Definition: SceneTreeItem.cpp:101
virtual ~SceneTreeItem()
Definition: SceneTreeItem.cpp:52
Definition: SceneTreeItem.hpp:49
Core::UUID const & getUUID() const
Definition: SceneTreeItem.cpp:106
void buildItem()
Definition: SceneTreeItem.cpp:115
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
SceneTreeItem(SceneTree *parent, Core::SceneObject *object)
Definition: SceneTreeItem.cpp:38
Definition: SceneObject.hpp:93
Definition: UUID.hpp:45
Definition: SceneTree.hpp:44