CShapeStatusInfoComp.h
Go to the documentation of this file.
1 #ifndef iview_CShapeStatusInfoComp_included
2 #define iview_CShapeStatusInfoComp_included
3 
4 
5 // ACF includes
6 #include <icomp/CComponentBase.h>
7 
9 
10 
11 namespace iview
12 {
13 
14 
19 {
20 public:
22  I_BEGIN_COMPONENT(CShapeStatusInfoComp);
23  I_REGISTER_INTERFACE(IShapeStatusInfo);
24  I_END_COMPONENT;
25 
27 
28  // reimplemented (iview::IShapeStatusInfo)
29  virtual i2d::CVector2d GetLogicalPosition() const;
30  virtual void SetLogicalPosition(const i2d::CVector2d& logicalPosition);
31  virtual i2d::CVector2d GetPixelPosition() const;
32  virtual void SetPixelPosition(const i2d::CVector2d& pixelPosition);
33  virtual QString GetInfoText() const;
34  virtual void SetInfoText(const QString& infoText);
35 
36 private:
37  i2d::CVector2d m_logicalPosition;
38  i2d::CVector2d m_pixelPosition;
39  QString m_infoText;
40 };
41 
42 
43 } // namespace iview
44 
45 
46 #endif // !iview_CShapeStatusInfoComp_included
47 
48 
virtual void SetInfoText(const QString &infoText)
Set information text for the current position.
Base class for component implementation.
Standard implementation of IShapeStatusInfo interface.
Definition of position or mathematical vector on 2D plane.
Definition: CVector2d.h:28
virtual void SetLogicalPosition(const i2d::CVector2d &logicalPosition)
virtual void SetPixelPosition(const i2d::CVector2d &pixelPosition)
Interface for access local bitmap information.
virtual i2d::CVector2d GetPixelPosition() const
icomp::CComponentBase BaseClass
virtual QString GetInfoText() const
Get logical position on the bitmap.
virtual i2d::CVector2d GetLogicalPosition() const

© 2007-2017 Witold Gantzke and Kirill Lepskiy