19 #if QT_VERSION < 0x040000
40 #if QT_VERSION < 0x040000
70 int toCanvasX (
double dx )
const;
73 int toCanvasY (
double dy )
const;
81 #if QT_VERSION < 0x040000
84 void transformAndFill ( QPolygon & array,
86 const std::vector < double > & x,
87 const std::vector < double > & y,
88 int (
QtView::* xfunc ) (
double )
const,
89 int (
QtView::* yfunc ) (
double )
const );
97 void drawWithPixmap (
QPainter & painter );
100 void drawMethod (
const std::vector< double > & x,
101 const std::vector< double > & y,
111 void drawViewMethod (
const std::vector< double > & x,
112 const std::vector< double > & y,
121 void ensureOffScrSize (
int osw,
int osh );
143 virtual void drawShape (
QPainter & );
157 virtual void setShowCrossHairs (
bool flag );
161 virtual Rect getDrawRect ()
const;
167 void updateDrawRect ();
170 void setDrawRect (
const QRect & rect );
173 void setDrawRect (
Rect & rect );
176 virtual void setDrawRect (
float x,
float y,
float width,
float height );
179 int toViewX (
double datX )
const;
182 int toViewY (
double datY )
const;
185 virtual void fillPickedPoint (
double x,
double y,
186 std::vector < double > & picked )
const;
190 virtual void setPageWidth(
int upage_w );
193 bool isTextView()
const;
Part of an implementation of the Observable-Observer pattern based on the example in the GOF Patterns...
hippodraw::QtViewImp class interface
#define MDL_QTHIPPOPLOT_API
bool m_filled
A flag indicating if the buffer pixmap has been filled.
QPixmap m_pixmap
A QPixmap used for buffer the plot.
The class of derived from ViewBase for drawing to the screen and PostScript generation using Qt toolk...
The base class for the PlotterBase hierarchy.
Class representing a rectangle.
The class of derived from ViewBase and QCanvasRectangle for drawing on a QCanvas. ...
bool m_crosshairs
A flag indicating if cross-hairs should be drawn.
bool m_is_drawing
A flag set true when drawing has stared.