ICF 3.0.5.47
Technical documentation of ICF Libraries
COrientedCircleShape.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef iview_COrientedCircleShape_included
7#define iview_COrientedCircleShape_included
8
9
10// ICF includes
11#include <iview/CCircleShape.h>
12
13
14namespace iview
15{
16
17
19{
20public:
22
24
25 // reimplemented (iview::CCircleShape)
26 virtual void Draw(QPainter& drawContext) const;
27
28protected:
29 // reimplemented (imod::IObserver)
30 virtual bool OnModelAttached(imod::IModel* modelPtr, istd::IChangeable::ChangeSet& changeMask);
31
32 // reimplemented (iview::CCircleShape)
33 virtual i2d::CRect CalcBoundingBox() const;
34};
35
36
37} // namespace iview
38
39
40#endif // !iview_COrientedCircleShape_included
41
42
Simple rectangle with integer bounds.
Definition CRect.h:26
Common interface for model objects, that supports Model/Observer design pattern.
Definition IModel.h:29
Set of change flags (its IDs).
Definition IChangeable.h:38
virtual bool OnModelAttached(imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask)
This call back function will be called, if an observable object is about to be attached.
virtual void Draw(QPainter &drawContext) const
Draw this shape using draw context.
virtual i2d::CRect CalcBoundingBox() const
Calculate bounding box.
In this library is defined 2D view concept and standard visualisation objects.

© Witold Gantzke and Kirill Lepskiy