CProjectionShape.h
Go to the documentation of this file.
1 #ifndef iqtipr_CProjectionShape_included
2 #define iqtipr_CProjectionShape_included
3 
4 
5 // Qt includes
6 #include <QtGui/QPainterPath>
7 #include <QtGui/QTransform>
8 
9 // ACF includes
10 #include "iview/CShapeBase.h"
11 
12 // ACF-Solutions includes
13 #include "imeas/IDataSequence.h"
14 
15 #include "iqtipr/iqtipr.h"
16 
17 
18 namespace iqtipr
19 {
20 
21 
23 {
24 public:
26 
28 
29  // reimplemented (iview::IVisualizable)
30  virtual void Draw(QPainter& drawContext) const;
31 
32  // reimplemented (iview::CShapeBase)
33  virtual i2d::CRect CalcBoundingBox() const;
34 
35  // reimplemented (imod::IObserver)
36  virtual void AfterUpdate(imod::IModel* modelPtr, int updateFlags, istd::IPolymorphic* updateParamsPtr);
37 
38 protected:
39  void UpdateFigure() const;
40 
41 private:
42  i2d::CLine2d m_projectionLine;
43 
44  mutable QPainterPath m_path;
45  mutable QTransform m_transform;
46 };
47 
48 
49 } // namespace iqtipr
50 
51 
52 #endif // !iqtipr_CProjectionShape_included
53 
54 
void UpdateFigure() const
virtual void Draw(QPainter &drawContext) const
virtual void AfterUpdate(imod::IModel *modelPtr, int updateFlags, istd::IPolymorphic *updateParamsPtr)
iview::CShapeBase BaseClass
virtual i2d::CRect CalcBoundingBox() const

© 2007-2011 Witold Gantzke and Kirill Lepskiy