ICF 3.1.1.10
Technical documentation of ICF Libraries
CPerspectiveCalibEditorComp.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// ICF includes
13#include <GeneratedFiles/icalibgui/ui_CPerspectiveCalibEditorComp.h>
14
15
16namespace icalibgui
17{
18
19
21 public istdgui::TDesignerGuiObserverCompBase<Ui::CPerspectiveCalibEditorComp, icalib::CPerspectiveCalibration2d>,
23{
24 Q_OBJECT
25
26public:
28
29 I_BEGIN_COMPONENT(CPerspectiveCalibEditorComp);
30 I_ASSIGN(m_calibProviderCompPtr, "CalibrationProvider", "Optional calibration provider for calibrate button", false, "CalibrationProvider");
31 I_ASSIGN_TO(m_calibProviderModelCompPtr, m_calibProviderCompPtr, false);
32 I_END_COMPONENT;
33
34protected:
36
37 // reimplemented (istdgui::TGuiObserverWrap)
38 void UpdateModel() const override;
39 void UpdateGui(const istd::IChangeable::ChangeSet& changeSet) override;
40
41 // reimplemented (istdgui::CGuiComponentBase)
42 void OnGuiCreated() override;
43 void OnGuiDestroyed() override;
44
45 // reimplemented (istdgui::CGuiComponentBase)
46 void OnModelChanged(int modelId, const istd::IChangeable::ChangeSet& changeSet) override;
47
48protected Q_SLOTS:
50 void OnParamsChanged(double value);
51
52private:
53 I_REF(i2d::ICalibration2dProvider, m_calibProviderCompPtr);
54 I_REF(imod::IModel, m_calibProviderModelCompPtr);
55};
56
57
58} // namespace icalibgui
59
60
Common interface for an object, which delivers a 2D-calibration.
void OnGuiCreated() override
Called just after GUI is initialized.
void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
void OnGuiDestroyed() override
Called just before GUI is released.
istdgui::TDesignerGuiObserverCompBase< Ui::CPerspectiveCalibEditorComp, icalib::CPerspectiveCalibration2d > BaseClass
void OnModelChanged(int modelId, const istd::IChangeable::ChangeSet &changeSet) override
Called when some model observed by dispatcher will be changed.
Generic implementation of a data model changes notifier.
Common interface for model objects, that supports Model/Observer design pattern.
Definition IModel.h:29
Set of change flags (its IDs).
Definition IChangeable.h:38
Base class for all Qt GUI components.
Contains implementations of GUI components related to 2D calibration.

© Witold Gantzke and Kirill Lepskiy