CCenterPinShape.h
Go to the documentation of this file.
1 #ifndef iview_CCenterPinShape_included
2 #define iview_CCenterPinShape_included
3 
4 
5 #include <i2d/CVector2d.h>
6 #include <i2d/CPosition2d.h>
7 
9 #include <iview/CPinShape.h>
10 
11 
12 namespace iview
13 {
14 
15 
17 {
18 public:
21 
23 
24  // reimplemented (iview::IVisualizable)
25  virtual void Draw(QPainter& drawContext) const;
26 
27  // reimplemented (iview::IMouseActionObserver)
28  virtual bool OnMouseButton(istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag);
29  virtual bool OnMouseMove(istd::CIndex2d position);
30 
31 protected:
32  // reimplemented (iview::CShapeBase)
33  virtual i2d::CRect CalcBoundingBox() const;
34 };
35 
36 
37 } // namespace iview
38 
39 
40 #endif // !iview_CPinShape_included
41 
42 
virtual bool OnMouseButton(istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag)
It is called, when mouse button is pushed down or up on this object.
virtual void Draw(QPainter &drawContext) const
Draw this shape using draw context.
virtual i2d::CRect CalcBoundingBox() const
Calculate bounding box.
Simple rectangle with integer bounds.
Definition: CRect.h:21
Index implementation for addressing elements in 2D-space.
Definition: CIndex2d.h:20
virtual bool OnMouseMove(istd::CIndex2d position)
It is called, when mouse is moved.
CInteractiveShapeBase ShapeBaseClass

© 2007-2017 Witold Gantzke and Kirill Lepskiy