Ocular Engine
RenderableDisplay.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_RENDERABLE_DISPLAY__H__
19 #define __H__OCULAR_EDITOR_RENDERABLE_DISPLAY__H__
20 
21 #include "Widgets/Properties/PropertiesDisplayBox.hpp"
22 
23 //------------------------------------------------------------------------------------------
24 
29 namespace Ocular
30 {
35  namespace Editor
36  {
41  {
42  public:
43 
44  RenderableDisplay(std::string const& displayName = "Renderable", QWidget* parent = nullptr);
45  virtual ~RenderableDisplay();
46 
47  //------------------------------------------------------------
48 
49  virtual void setObject(Core::SceneObject* object) override;
50  virtual void updateProperties() override;
51 
52  protected:
53 
54  virtual void buildProperties();
55  virtual void removeProperties();
56 
57  //------------------------------------------------------------
58 
59  Core::ARenderable* m_Renderable;
60 
61  private:
62 
63  std::vector<PropertyWidget*> m_Properties;
64  };
65  }
69 }
74 //------------------------------------------------------------------------------------------
75 
76 #endif
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: SceneObject.hpp:93
Definition: ARenderable.hpp:53
Definition: PropertiesDisplayBox.hpp:46
Definition: RenderableDisplay.hpp:40