CEdgeLinesSupplierGuiComp.h
Go to the documentation of this file.
1 #ifndef iedgegui_CEdgeLinesSupplierGuiComp_included
2 #define iedgegui_CEdgeLinesSupplierGuiComp_included
3 
4 
5 // ACF includes
6 #include "imod/IObserver.h"
7 #include "imod/TModelWrap.h"
10 #include "iqtgui/IGuiObject.h"
12 
13 // ACF-Solutions includes
17 #include "iqtipr/iqtipr.h"
18 
19 #include "GeneratedFiles/iedgegui/ui_CEdgeLinesSupplierGuiComp.h"
20 
21 
22 
23 namespace iedgegui
24 {
25 
26 
27 class CEdgeLinesSupplierGuiComp: public iqtinsp::TSupplierGuiCompBase<Ui::CEdgeLinesSupplierGuiComp>
28 {
29  Q_OBJECT
30 
31 public:
33 
34  I_BEGIN_COMPONENT(CEdgeLinesSupplierGuiComp);
35  I_ASSIGN(m_contoursColorSchemaCompPtr, "ContourColorSchema", "Color schema for contour visualization", false, "ContourColorSchema");
36  I_ASSIGN(m_intermediateResultsGuiCompPtr, "IntermediateResultsGui", "GUI integrated in group 'Intermediate Results'", false, "IntermediateResultsGui");
37  I_END_COMPONENT;
38 
40 
41 protected Q_SLOTS:
42  void on_TestButton_clicked();
45 
46 protected:
47  // reimplemented (iqtinsp::TSupplierGuiCompBase)
48  virtual QWidget* GetParamsWidget() const;
49  virtual void OnSupplierParamsChanged();
50 
51  // reimplemented (iqt2d::TViewExtenderCompBase)
52  virtual void CreateShapes(int sceneId, Shapes& result);
53 
54  // reimplemented (iqtgui::TGuiObserverWrap)
55  virtual void OnGuiModelAttached();
56  virtual void UpdateGui(int updateFlags = 0);
57 
58  // reimplemented (iqtgui::IGuiObject)
59  virtual void OnGuiCreated();
60  virtual void OnGuiDestroyed();
61  virtual void OnGuiHidden();
62 
63  // reimplemented (imod::IObserver)
64  virtual void AfterUpdate(imod::IModel* modelPtr, int updateFlags, istd::IPolymorphic* updateParamsPtr);
65 
66 private:
67  I_REF(iview::IColorSchema, m_contoursColorSchemaCompPtr);
68  I_REF(iqtgui::IGuiObject, m_intermediateResultsGuiCompPtr);
69 
71 
72  iview::CColorSchema m_edgesColorSchema;
73 };
74 
75 }//namespace iedgegui
76 
77 
78 
79 #endif // !iedgegui_CEdgeLinesSupplierGuiComp_included
80 
81 
virtual QWidget * GetParamsWidget() const
Get parameters widget object.
virtual void OnSupplierParamsChanged()
Method will be called every time if the parameter set of the supplier has been changed.
virtual void UpdateGui(int updateFlags=0)
iqtinsp::TSupplierGuiCompBase< Ui::CEdgeLinesSupplierGuiComp > BaseClass
virtual void CreateShapes(int sceneId, Shapes &result)
virtual void AfterUpdate(imod::IModel *modelPtr, int updateFlags, istd::IPolymorphic *updateParamsPtr)

© 2007-2011 Witold Gantzke and Kirill Lepskiy