00001 #ifndef QDRIVER_H_
00002 #define QDRIVER_H_
00003 #include "ucdriver.h"
00004
00005 #ifndef QDISPLAYDIALOG_H_
00006 class QDisplayDialog;
00007 class QPicture;
00008 class QPen;
00009 class QFont;
00010 class QPainter;
00011 class QBrush;
00012 class QFontMetrics;
00013 class QApplication;
00014 #endif
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 class Qdriver : public UCdriver
00036 {
00037 public :
00038
00039 Qdriver();
00040 ~Qdriver();
00041
00042
00043
00044 public :
00045
00046 virtual void lines(double *x, double *y, long npoints, int dash_pattern,
00047 unsigned user_pattern, double width, int color, double *rgb);
00048
00049 virtual void line(double x1, double y1, double x2, double y2, int dash_pattern,
00050 unsigned user_pattern, double width, int color, double *rgb);
00051
00052 virtual void point(double x, double y, char p, char *font, double size,
00053 int color, double *rgb);
00054 virtual void points(double *X, double *Y, long np, char p, char *font,
00055 double size, int color, double *rgb);
00056
00057 virtual void text(double x, double y, char *s, char *font, double size,
00058 double rotation, double horiz_just, double vert_just,
00059 int color, double *rgb);
00060
00061 virtual void region(double *X, double *Y, long npoints, double *RGB);
00062
00063 virtual void frame();
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075 void setImageOutputQuality(int quality);
00076
00077 protected :
00078
00079 void setMaxLogicalCoordinate(long maxCoord);
00080
00081 void setPenDashAndColor(int dash_pattern,
00082 unsigned user_pattern, int color, double *rgb);
00083
00084 void setBrushColor(int color, double *rgb);
00085
00086 void setFont(char* font, double size);
00087
00088 long maxLogicalCoordinate;
00089
00090 QDisplayDialog* qDisplayDialog;
00091
00092 QPicture* graphicsMetaData;
00093 QPainter* qPainter;
00094 QPen* qPen;
00095 QFont* qFont;
00096 QBrush* qBrush;
00097 QFontMetrics* qFontMetrics;
00098 };
00099
00100 #endif