ACF $AcfVersion:0$
CPolypointShape.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 <iview/CShapeBase.h>
6
7
8namespace iview
9{
10
11
13{
14public:
16
18
19 bool IsSmallTickersMode() const;
20 void SetSmallTickersMode(bool state = true);
21
22 // reimplemented (iview::IShape)
23 virtual void Draw(QPainter& drawContext) const override;
24
25 // reimplemented (imod::IObserver)
26 virtual bool OnModelAttached(imod::IModel* modelPtr, istd::IChangeable::ChangeSet& changeMask) override;
27
28protected:
29 // reimplemented (iview::CShapeBase)
30 virtual i2d::CRect CalcBoundingBox() const override;
31
33};
34
35
36} // namespace iview
37
38
39
40
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 bool OnModelAttached(imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask) override
Callback invoked when an observable model is about to be attached to this observer.
void SetSmallTickersMode(bool state=true)
virtual void Draw(QPainter &drawContext) const override
Draw this shape using draw context.
virtual i2d::CRect CalcBoundingBox() const override
Calculate bounding box.
bool IsSmallTickersMode() const
In this library is defined 2D view concept and standard visualisation objects.