ACF $AcfVersion:0$
COrientedCircleShape.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// ACF includes
7
8
9namespace iview
10{
11
12
14{
15public:
17
19
20 // reimplemented (iview::CCircleShape)
21 virtual void Draw(QPainter& drawContext) const override;
22
23protected:
24 // reimplemented (imod::IObserver)
25 virtual bool OnModelAttached(imod::IModel* modelPtr, istd::IChangeable::ChangeSet& changeMask) override;
26
27 // reimplemented (iview::CCircleShape)
28 virtual i2d::CRect CalcBoundingBox() const override;
29};
30
31
32} // namespace iview
33
34
35
36
Simple rectangle with integer bounds.
Definition CRect.h:22
Common interface for model objects, that supports Model/Observer design pattern.
Definition IModel.h:25
Set of change flags (its IDs).
Definition IChangeable.h:36
virtual void Draw(QPainter &drawContext) const override
Draw this shape using draw context.
virtual bool OnModelAttached(imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask) override
Callback invoked when an observable model is about to be attached to this observer.
virtual i2d::CRect CalcBoundingBox() const override
Calculate bounding box.
In this library is defined 2D view concept and standard visualisation objects.