ACF $AcfVersion:0$
IViewEventObserver.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/QtGlobal>
7
8// ACF includes
9#include <istd/IPolymorphic.h>
10#include <imod/IModel.h>
11#include <iview/IShapeView.h>
12
13
14namespace iview
15{
16
17
22{
23public:
28 virtual bool OnSelectChange(const IShapeView& view, const istd::CIndex2d& position, const IInteractiveShape& shape, bool state) = 0;
29
34 virtual bool OnViewMouseButton(const IShapeView& view, const istd::CIndex2d& position, Qt::MouseButton buttonType, bool state, const IInteractiveShape* shapePtr) = 0;
35
40 virtual bool OnViewMouseMove(const IShapeView& view, const istd::CIndex2d& position) = 0;
41};
42
43
44
45} // namespace iview
46
47
48
49
50
51
Index implementation for addressing elements in 2D-space.
Definition CIndex2d.h:21
Base interface for all used interfaces and implementations.
Common interface for all display console shapes which can interacts with user.
Common interface for a general shape view implementations.
Definition IShapeView.h:30
Interface for external view event observer.
virtual bool OnViewMouseButton(const IShapeView &view, const istd::CIndex2d &position, Qt::MouseButton buttonType, bool state, const IInteractiveShape *shapePtr)=0
Event handler for mouse button click.
virtual bool OnViewMouseMove(const IShapeView &view, const istd::CIndex2d &position)=0
Event handler for mouse move event.
virtual bool OnSelectChange(const IShapeView &view, const istd::CIndex2d &position, const IInteractiveShape &shape, bool state)=0
Event handler for selection changes.
In this library is defined 2D view concept and standard visualisation objects.