CSurfaceViewComp.h
Go to the documentation of this file.
1 #ifndef iqwt3d_CSurfaceViewComp_included
2 #define iqwt3d_CSurfaceViewComp_included
3 
4 
5 // ACF includes
7 
9 
12 
13 #include "GeneratedFiles/iqwt3d/ui_CSurfaceViewComp.h"
14 
15 
16 namespace Qwt3D
17 {
18  class SurfacePlot;
19 }
20 
21 
22 namespace iqwt3d
23 {
24 
25 
30  Ui::CSurfaceViewComp,
31  imath::ISampledFunction2d>,
32  virtual public ibase::ICommandsProvider
33 {
34  Q_OBJECT
35 
36 public:
38  Ui::CSurfaceViewComp,
40 
41  enum{
42  GI_QWT3D = 177
43  };
44 
45  I_BEGIN_COMPONENT(CSurfaceViewComp);
46  I_REGISTER_INTERFACE(ibase::ICommandsProvider);
47  I_ASSIGN(m_enableLightingAttrPtr, "EnableLighting", "Enable lighting for the scene", false, true);
48  I_ASSIGN(m_enableOrthoAttrPtr, "EnableOrtho", "EnableOrtho", false, true);
49  I_ASSIGN(m_enableAutoScaleAttrPtr, "EnableAutoScale", "Enable auto scaling of scene axes", false, true);
50  I_ASSIGN(m_enableMeshAttrPtr, "EnableMesh", "Enable mesh view for the scene", false, true);
51  I_ASSIGN(m_enableShaderAttrPtr, "EnableShader", "Enable shader", false, true);
52  I_ASSIGN(m_enableLegendAttrPtr, "EnableLegend", "Enable and show the color legend", false, true);
53  I_END_COMPONENT;
54 
56  // reimplemenented (iqtgui::TGuiObserverWrap)
57  virtual void UpdateGui(int updateFlags = 0);
58 
59  // reimplemented (ibase::ICommandsProvider)
60  virtual const ibase::IHierarchicalCommand* GetCommands() const;
61 
62 protected:
63  virtual void SetupLighting();
64 
65  // reimplemented (iqtgui::CGuiComponentBase)
66  virtual void OnGuiCreated();
67 
68 protected Q_SLOTS:
69  void OnParamsChanged(double value);
70  void OnToggleAutoScale(bool value);
71  void OnToggleShader(bool value);
72  void OnMeshEnabled(bool isMeshEnabled);
73  void OnShowColorLegend(bool showColorLegend);
74 
75 private:
76  I_ATTR(bool, m_enableLightingAttrPtr);
77  I_ATTR(bool, m_enableOrthoAttrPtr);
78  I_ATTR(bool, m_enableAutoScaleAttrPtr);
79  I_ATTR(bool, m_enableMeshAttrPtr);
80  I_ATTR(bool, m_enableShaderAttrPtr);
81  I_ATTR(bool, m_enableLegendAttrPtr);
82 
83  Qwt3D::SurfacePlot* m_surfacePlotPtr;
84 
85  iqtgui::CHierarchicalCommand m_rootCommand;
86  iqtgui::CHierarchicalCommand m_plotCommands;
87  iqtgui::CHierarchicalCommand m_enableLightingCommand;
88  iqtgui::CHierarchicalCommand m_enableOrthoCommand;
89  iqtgui::CHierarchicalCommand m_enableAutoScaleCommand;
90  iqtgui::CHierarchicalCommand m_enableMeshCommand;
91  iqtgui::CHierarchicalCommand m_enableShaderCommand;
92  iqtgui::CHierarchicalCommand m_enableLegendCommand;
93 };
94 
95 
96 } // namespace iqwt3d
97 
98 
99 #endif // !iqwt3d_CSurfaceViewComp_included
100 
101 
void OnShowColorLegend(bool showColorLegend)
virtual void UpdateGui(int updateFlags=0)
virtual const ibase::IHierarchicalCommand * GetCommands() const
virtual void OnGuiCreated()
iqtgui::TDesignerGuiObserverCompBase< Ui::CSurfaceViewComp, imath::ISampledFunction2d > BaseClass
void OnParamsChanged(double value)
void OnToggleShader(bool value)
void OnMeshEnabled(bool isMeshEnabled)
3D-View based on Qwt3D library.
virtual void SetupLighting()
void OnToggleAutoScale(bool value)

© 2007-2011 Witold Gantzke and Kirill Lepskiy