CScaleCalibrationEditorComp.h
Go to the documentation of this file.
1 #ifndef iqtcam_CScaleCalibrationEditorComp_included
2 #define iqtcam_CScaleCalibrationEditorComp_included
3 
4 
5 // Qt includes
6 #include<QtCore/QtGlobal>
7 #if QT_VERSION >= 0x050000
8 #include <QtWidgets/QFrame>
9 #include <QtWidgets/QGroupBox>
10 #else
11 #include <QtGui/QFrame>
12 #include <QtGui/QGroupBox>
13 #endif
14 
15 // ACF includes
17 #include <iqtgui/IDialog.h>
18 
19 // ACF-Solutions includes
20 #include <iipr/IFeaturesProvider.h>
21 
22 #include <GeneratedFiles/iqtcam/ui_CScaleCalibrationEditorComp.h>
23 
24 
25 namespace iqtcam
26 {
27 
28 
29 class CScaleCalibrationEditorComp: public iqtgui::TDesignerGuiObserverCompBase<Ui::CScaleCalibrationEditorComp, imeas::INumericValue>
30 {
31  Q_OBJECT
32 public:
34 
35  I_BEGIN_COMPONENT(CScaleCalibrationEditorComp);
36  I_ASSIGN(m_circleProviderCompPtr, "CircleProvider", "External circle provider providing radius used for scale calibration\nThe provider must provide a numeric value of type VTI_RADIUS", false, "CircleProvider");
37  I_ASSIGN(m_calibrationDialogCompPtr, "CalibrationDialog", "Dialog supporting parameterization of the circle finder used for image resolution calculation", false, "CalibrationDialog");
38  I_REGISTER_INTERFACE(imod::IModelEditor);
39  I_END_COMPONENT;
40 
41 protected:
42  // reimplemented (iqtgui::TGuiObserverWrap)
43  virtual void UpdateModel() const;
44  virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet);
45 
46  // reimplemented (iqtgui::CGuiComponentBase)
47  virtual void OnGuiCreated();
48 
49 private Q_SLOTS:
50  void OnValueChanged(double);
51  void on_CalibrateButton_clicked();
52  void on_NominalRadiusSpinBox_valueChanged(double d);
53 
54 private:
55  I_REF(iipr::IFeaturesProvider, m_circleProviderCompPtr);
56  I_REF(iqtgui::IDialog, m_calibrationDialogCompPtr);
57 };
58 
59 
60 } // namespace iqtcam
61 
62 
63 #endif // !iqtcam_CScaleCalibrationEditorComp_included
64 
65 
iqtgui::TDesignerGuiObserverCompBase< Ui::CScaleCalibrationEditorComp, imeas::INumericValue > BaseClass
Container allowing access to features.
virtual void UpdateModel() const
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet)

© 2007-2017 Witold Gantzke and Kirill Lepskiy