14 #ifndef _QtViewWidget_H_
15 #define _QtViewWidget_H_
43 int toCanvasX (
double dx )
const;
46 int toCanvasY (
double dy )
const;
54 #if QT_VERSION < 0x040000
57 void transformAndFill ( QPolygon & array,
59 const std::vector < double > & x,
60 const std::vector < double > & y,
61 int (QtViewWidget::* xfunc ) (
double )
const,
62 int (QtViewWidget::* yfunc ) (
double )
const );
66 void drawMethod (
const std::vector< double > & x,
67 const std::vector< double > & y,
77 void drawViewMethod (
const std::vector< double > & x,
78 const std::vector< double > & y,
89 QtViewWidget (
QWidget * parent = 0,
90 const char * name = 0,
91 Qt::WFlags wflags = 0 );
94 virtual ~QtViewWidget ();
105 virtual QSize sizeHint ()
const;
119 virtual void setGeometry (
int x,
int y,
int w,
int h );
124 virtual void setGeometry (
const QRect & );
126 virtual Rect getDrawRect ()
const;
129 void setDrawRect (
const QRect & rect );
132 virtual void setDrawRect (
float x,
float y,
float width,
float height );
139 int toViewX (
double datX )
const;
142 int toViewY (
double datY )
const;
144 virtual void fillPickedPoint (
double x,
double y,
145 std::vector < double > & picked )
const;
147 virtual void setDoubleBuffering(
unsigned dblbuf);
159 #endif // _QtViewWidget_H_