ACF $AcfVersion:0$
CImageViewComp.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QScopedPointer>
7
8// ACF includes
10#include <i2d/ICalibration2d.h>
14#include <iview/CImageShape.h>
16
17
18namespace iqt2d
19{
20
21
27 public iqtgui::TGuiObserverWrap<CViewProviderGuiComp, iview::CImageShape>
28{
29public:
31
32 I_BEGIN_COMPONENT(CImageViewComp);
33 I_REGISTER_INTERFACE(imod::IObserver);
34 I_REGISTER_INTERFACE(imod::IModelEditor);
35 I_END_COMPONENT;
36
37protected:
38 // reimplemented (iqtgui::TGuiObserverWrap)
39 virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet) override;
40
41 // reimplemented (iqtui::CGuiComponentBase)
42 virtual void OnGuiModelAttached() override;
43 virtual void OnGuiModelDetached() override;
44
45private:
47};
48
49
50} // namespace iqt2d
51
52
Common interface for an model editor.
Common interface for all classes implementing the Observer functionality in the Model/Observer design...
Definition IObserver.h:156
Show observed bitmap on the 2D-console.
virtual void OnGuiModelDetached() override
Called when model is detached or GUI is destroyed.
virtual void OnGuiModelAttached() override
Called when model is attached and GUI is created.
iqtgui::TGuiObserverWrap< CViewProviderGuiComp, iview::CImageShape > BaseClass
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
Do update of the GUI to reflect the state of model.
Join functionality of iqtgui::IGuiObject interface and imod::IObserver.
Set of change flags (its IDs).
Definition IChangeable.h:36
Unique ownership smart pointer for interface types.
This package contains Qt based implementations for 2D graphic objects.