QtGroupView.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _QtGroupView_H_
15 #define _QtGroupView_H_
16 
17 #ifdef _MSC_VER
18 # pragma warning(disable:4250) // inherits via dominance
19 #endif
20 
21 #include "graphics/GroupViewBase.h"
22 #include "QtView.h"
23 #include "QtViewImp.h"
24 
25 #if QT_VERSION < 0x040000
26 #include <qcanvas.h>
27 #else
28 #include <q3canvas.h>
29 #endif
30 
31 namespace hippodraw {
32 
44 #if QT_VERSION < 0x040000
46 #else
47 class MDL_QTHIPPOPLOT_API QtGroupView :public GroupViewBase, public QtViewImp, public Q3CanvasRectangle
48 #endif
49 
50 {
51 
52  private:
53 
57 
60  std::vector < double > m_position;
61 
63  int toCanvasX ( double dx ) const;
64 
66  int toCanvasY ( double dy ) const;
67 
68  public:
69 
71  QtGroupView ( );
72 
74  QtGroupView ( const std::vector < ViewBase * > & inViews );
75 
77  //QtGroupView ( const QtGroupView & );
78 
80  virtual ~QtGroupView ();
81 
83  void setDrawRect ( float x, float y, float w, float h );
84 
86  void setDrawRect ( const QRect & rect );
87 
89  virtual Rect getDrawRect () const;
90 
92  virtual void draw ( QPainter & );
93 
97  virtual void moveBy ( double dx, double dy );
98 
99 
101  int toViewX ( double datX ) const;
102 
104  int toViewY ( double datY ) const;
105 
106  virtual void fillPickedPoint ( double x, double y,
107  std::vector < double > & picked ) const;
108 
110  void setPositions();
111 };
112 
113 } // namespace hippodraw
114 
115 #endif // _QtGroupView_H_

Generated for HippoDraw Class Library by doxygen