ACF $AcfVersion:0$
CCenterPinShape.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#include <i2d/CVector2d.h>
6#include <i2d/CPosition2d.h>
7
9#include <iview/CPinShape.h>
10
11
12namespace iview
13{
14
15
17{
18public:
21
23
24 // reimplemented (iview::IVisualizable)
25 virtual void Draw(QPainter& drawContext) const override;
26
27 // reimplemented (iview::IMouseActionObserver)
28 virtual bool OnMouseButton(istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag) override;
29 virtual bool OnMouseMove(istd::CIndex2d position) override;
30
31protected:
32 // reimplemented (iview::CShapeBase)
33 virtual i2d::CRect CalcBoundingBox() const override;
34};
35
36
37} // namespace iview
38
39
Simple rectangle with integer bounds.
Definition CRect.h:22
Index implementation for addressing elements in 2D-space.
Definition CIndex2d.h:21
virtual void Draw(QPainter &drawContext) const override
Draw this shape using draw context.
CInteractiveShapeBase ShapeBaseClass
virtual bool OnMouseButton(istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag) override
It is called, when mouse button is pushed down or up on this object.
virtual i2d::CRect CalcBoundingBox() const override
Calculate bounding box.
virtual bool OnMouseMove(istd::CIndex2d position) override
It is called, when mouse is moved.
In this library is defined 2D view concept and standard visualisation objects.