CEdgeLinesSupplierEditorComp.h
Go to the documentation of this file.
1 #ifndef iedgegui_CEdgeLinesSupplierEditorComp_included
2 #define iedgegui_CEdgeLinesSupplierEditorComp_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
16 #include <iqtipr/iqtipr.h>
17 
18 #include <GeneratedFiles/iedgegui/ui_CEdgeLinesSupplierEditorComp.h>
19 
20 
21 
22 namespace iedgegui
23 {
24 
25 
26 class CEdgeLinesSupplierEditorComp: public iqtinsp::TSupplierGuiCompBase<Ui::CEdgeLinesSupplierEditorComp>
27 {
28  Q_OBJECT
29 
30 public:
32 
33  I_BEGIN_COMPONENT(CEdgeLinesSupplierEditorComp);
34  I_ASSIGN(m_resultsSaverCompPtr, "ResultsSaver", "Saves found edge lines", false, "ResultsSaver");
35  I_ASSIGN(m_contoursColorSchemaCompPtr, "EdgeLineColorSchema", "Defines colors for edge lines on view", false, "EdgeLineColorSchema");
36  I_END_COMPONENT;
37 
39 
40 protected:
41  // reimplemented (iqtinsp::TSupplierGuiCompBase)
42  virtual QWidget* GetParamsWidget() const;
43  virtual void OnSupplierParamsChanged();
44 
45  // reimplemented (iqt2d::TViewExtenderCompBase)
46  virtual void CreateShapes(int sceneId, Shapes& result);
47 
48  // reimplemented (iqtgui::TGuiObserverWrap)
49  virtual void OnGuiModelAttached();
50  virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet);
51 
52  // reimplemented (iqtgui::IGuiObject)
53  virtual void OnGuiCreated();
54  virtual void OnGuiHidden();
55 
56  // reimplemented (imod::IObserver)
57  virtual void AfterUpdate(imod::IModel* modelPtr, const istd::IChangeable::ChangeSet& changeSet);
58 
59 protected Q_SLOTS:
64 
65 private:
66  I_REF(ifile::IFilePersistence, m_resultsSaverCompPtr);
67  I_REF(iview::IColorSchema, m_contoursColorSchemaCompPtr);
68 
70 
71  iview::CColorSchema m_edgesColorSchema;
72 };
73 
74 
75 }//namespace iedgegui
76 
77 
78 #endif // !iedgegui_CEdgeLinesSupplierEditorComp_included
79 
80 
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet)
iqtinsp::TSupplierGuiCompBase< Ui::CEdgeLinesSupplierEditorComp > BaseClass
virtual void AfterUpdate(imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet)
virtual QWidget * GetParamsWidget() const
Get parameters widget object.
virtual void CreateShapes(int sceneId, Shapes &result)
virtual void OnSupplierParamsChanged()
Method will be called every time if the parameter set of the supplier has been changed.

© 2007-2017 Witold Gantzke and Kirill Lepskiy