ACF $AcfVersion:0$
CStarShape.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 <QtGui/QPainter>
7
8// ACF includes
9#include <i2d/CPosition2d.h>
11#include <iview/CPinShape.h>
12
13
14namespace iview
15{
16
17
18class CStarShape : public CPinShape
19{
20public:
23
24 // reimplemented (iview::IVisualizable)
25 virtual void Draw(QPainter& drawContext) const override;
26
27protected:
28 // reimplemented (iview::CShapeBase)
29 virtual i2d::CRect CalcBoundingBox() const override;
30};
31
32
33} // namespace iview
34
35
36
Simple rectangle with integer bounds.
Definition CRect.h:22
virtual i2d::CRect CalcBoundingBox() const override
Calculate bounding box.
CInteractiveShapeBase ShapeBaseClass
Definition CStarShape.h:22
CPinShape BaseClass
Definition CStarShape.h:21
virtual void Draw(QPainter &drawContext) const override
Draw this shape using draw context.
In this library is defined 2D view concept and standard visualisation objects.