COrientedCircleShape.h
Go to the documentation of this file.
1 #ifndef iview_COrientedCircleShape_included
2 #define iview_COrientedCircleShape_included
3 
4 
5 // ACF includes
6 #include <iview/CCircleShape.h>
7 
8 
9 namespace iview
10 {
11 
12 
14 {
15 public:
17 
19 
20  // reimplemented (iview::CCircleShape)
21  virtual void Draw(QPainter& drawContext) const;
22 
23 protected:
24  // reimplemented (imod::IObserver)
25  virtual bool OnModelAttached(imod::IModel* modelPtr, istd::IChangeable::ChangeSet& changeMask);
26 
27  // reimplemented (iview::CCircleShape)
28  virtual i2d::CRect CalcBoundingBox() const;
29 };
30 
31 
32 } // namespace iview
33 
34 
35 #endif // !iview_COrientedCircleShape_included
36 
37 
Simple rectangle with integer bounds.
Definition: CRect.h:21
virtual i2d::CRect CalcBoundingBox() const
Calculate bounding box.
virtual void Draw(QPainter &drawContext) const
Draw this shape using draw context.
Common interface for model objects, that supports Model/Observer design pattern.
Definition: IModel.h:23
Set of change flags (its IDs).
Definition: IChangeable.h:30
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.

© 2007-2017 Witold Gantzke and Kirill Lepskiy