ICF 3.0.5.47
Technical documentation of ICF Libraries
CLineProjectionSupplierGuiComp.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#ifndef iqtipr_CLineProjectionSupplierGuiComp_included
7#define iqtipr_CLineProjectionSupplierGuiComp_included
8
9
10// ICF includes
12#include <imod/IObserver.h>
13#include <imod/TModelWrap.h>
14#include <i2d/CPosition2d.h>
15#include <istdgui/IGuiObject.h>
19
21
22#include <iiprgui/iiprgui.h>
23
24#include <GeneratedFiles/iiprgui/ui_CLineProjectionSupplierGuiComp.h>
25
26
27namespace iiprgui
28{
29
30
31class CLineProjectionSupplierGuiComp: public iinspgui::TSupplierGuiCompBase<Ui::CLineProjectionSupplierGuiComp>
32{
33 Q_OBJECT
34
35public:
37
38 I_BEGIN_COMPONENT(CLineProjectionSupplierGuiComp);
39 I_ASSIGN(m_projectionObserverCompPtr, "ProjectionObserver", "Observer for the generated line projection", true, "ProjectionObserver");
40 I_ASSIGN_TO(m_projectionObserverGuiCompPtr, m_projectionObserverCompPtr, true);
41 I_END_COMPONENT;
42
43protected Q_SLOTS:
47
48protected:
49 // reimplemented (iinspgui::TSupplierGuiCompBase)
50 QWidget* GetParamsWidget() const override;
51
52 // reimplemented (i2dgui::TViewExtenderCompBase)
53 void CreateShapes(int sceneId, Shapes& result) override;
54
55 // reimplemented (istdgui::TGuiObserverWrap)
56 void OnGuiModelAttached() override;
57 void UpdateGui(const istd::IChangeable::ChangeSet& changeSet) override;
58
59 // reimplemented (istdgui::IGuiObject)
60 void OnGuiCreated() override;
61 void OnGuiDestroyed() override;
62
63private:
65
66 I_REF(imod::IObserver, m_projectionObserverCompPtr);
67 I_REF(istdgui::IGuiObject, m_projectionObserverGuiCompPtr);
68};
69
70
71} // namespace iiprgui
72
73
74#endif // !iqtipr_CLineProjectionSupplierGuiComp_included
75
76
void OnGuiCreated() override
Called just after GUI is initialized.
void OnGuiDestroyed() override
Called just before GUI is released.
void CreateShapes(int sceneId, Shapes &result) override
QWidget * GetParamsWidget() const override
void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
iinspgui::TSupplierGuiCompBase< Ui::CLineProjectionSupplierGuiComp > BaseClass
Common interface for all classes implementing the Observer functionality in the Model/Observer design...
Definition IObserver.h:30
This model wrapper provides a simple connection between a concrete istd::IChangeable implementation a...
Definition TModelWrap.h:28
Set of change flags (its IDs).
Definition IChangeable.h:38
Common interface for GUI objects using in component context.
Definition IGuiObject.h:27
This package contains Qt based implementations of image processing components.

© Witold Gantzke and Kirill Lepskiy