CValueSupplierGuiComp.h
Go to the documentation of this file.
1 #ifndef iqtipr_CValueSupplierGuiComp_included
2 #define iqtipr_CValueSupplierGuiComp_included
3 
4 
5 // ACF includes
7 #include <imod/IObserver.h>
8 #include <imod/TModelWrap.h>
10 #include <i2d/CCircle.h>
11 #include <iipr/IFeaturesProvider.h>
12 #include <iqtgui/IGuiObject.h>
14 
16 
17 #include <iqtipr/iqtipr.h>
18 
19 #include <GeneratedFiles/iqtipr/ui_CValueSupplierGuiComp.h>
20 
21 
22 namespace iqtipr
23 {
24 
25 
26 class CValueSupplierGuiComp: public iqtinsp::TSupplierGuiCompBase<Ui::CValueSupplierGuiComp>
27 {
28  Q_OBJECT
29 
30 public:
32 
33  I_BEGIN_COMPONENT(CValueSupplierGuiComp);
34  I_ASSIGN(m_intermediateResultsGuiCompPtr, "IntermediateResultsGui", "GUI integrated in group 'Intermediate Results'", false, "IntermediateResultsGui");
35  I_END_COMPONENT;
36 
38 
39 protected Q_SLOTS:
40  void on_TestButton_clicked();
43 
44 protected:
45  // reimplemented (iqtinsp::TSupplierGuiCompBase)
46  virtual QWidget* GetParamsWidget() const;
47  virtual void OnSupplierParamsChanged();
48 
49  // reimplemented (iqt2d::TViewExtenderCompBase)
50  virtual void CreateShapes(int sceneId, Shapes& result);
51 
52  // reimplemented (iqtgui::TGuiObserverWrap)
53  virtual void OnGuiModelAttached();
54  virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet);
55 
56  // reimplemented (iqtgui::IGuiObject)
57  virtual void OnGuiCreated();
58  virtual void OnGuiDestroyed();
59  virtual void OnGuiHidden();
60 
61  // reimplemented (icomp::IComponentBase)
62  virtual void OnComponentDestroyed();
63 
64 private:
65  I_REF(iqtgui::IGuiObject, m_intermediateResultsGuiCompPtr);
66 
69  FoundCircleModel m_foundCircleModel;
70  FoundLineModel m_foundLineModel;
71 
72  bool m_isResultVisible;
73 };
74 
75 
76 } // namespace iqtipr
77 
78 
79 #endif // !iqtipr_CValueSupplierGuiComp_included
80 
81 
virtual void OnGuiModelAttached()
virtual void OnComponentDestroyed()
virtual void CreateShapes(int sceneId, Shapes &result)
virtual QWidget * GetParamsWidget() const
Get parameters widget object.
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet)
virtual void OnSupplierParamsChanged()
Method will be called every time if the parameter set of the supplier has been changed.
iqtinsp::TSupplierGuiCompBase< Ui::CValueSupplierGuiComp > BaseClass

© 2007-2017 Witold Gantzke and Kirill Lepskiy