CPolypointShape.h
Go to the documentation of this file.
1 #ifndef iview_CPolypointShape_included
2 #define iview_CPolypointShape_included
3 
4 
5 #include <iview/CShapeBase.h>
6 
7 
8 namespace iview
9 {
10 
11 
13 {
14 public:
16 
18 
19  bool IsSmallTickersMode() const;
20  void SetSmallTickersMode(bool state = true);
21 
22  // reimplemented (iview::IShape)
23  virtual void Draw(QPainter& drawContext) const;
24 
25  // reimplemented (imod::IObserver)
26  virtual bool OnModelAttached(imod::IModel* modelPtr, istd::IChangeable::ChangeSet& changeMask);
27 
28 protected:
29  // reimplemented (iview::CShapeBase)
30  virtual i2d::CRect CalcBoundingBox() const;
31 
33 };
34 
35 
36 } // namespace iview
37 
38 
39 #endif // !iview_CPolypointShape_included
40 
41 
bool IsSmallTickersMode() const
Simple rectangle with integer bounds.
Definition: CRect.h:21
virtual i2d::CRect CalcBoundingBox() const
Calculate bounding box.
void SetSmallTickersMode(bool state=true)
virtual void Draw(QPainter &drawContext) const
Draw this shape using draw context.
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.
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

© 2007-2017 Witold Gantzke and Kirill Lepskiy