7 //#define SCREEN_ZOOM (1.0 / 4.0)
9 // Forward declarations
14 Painter(QPainter * p = 0);
17 void SetRenderHint(int);
18 void SetBrush(QBrush);
21 void DrawAngledText(Vector, double, QString, double);
22 void DrawArc(Vector, double, double, double);
23 void DrawEllipse(Vector, double, double);
24 void DrawHandle(Vector);
25 void DrawArrowHandle(Vector, double);
26 void DrawLine(int, int, int, int);
27 void DrawLine(Vector, Vector);
28 void DrawPoint(int, int);
29 void DrawRoundedRect(QRectF, double, double);
30 void DrawPaddedRect(QRectF);
31 void DrawRect(QRectF);
32 void DrawText(QRectF, int, QString);
33 void DrawArrowhead(Vector, Vector, double);
34 void DrawCrosshair(Vector);
35 void DrawInformativeText(QString);
38 static Vector CartesianToQtCoords(Vector);
39 static Vector QtToCartesianCoords(Vector);
43 static Vector origin; // The window origin, not location of the origin
44 static double zoom; // Window zoom factor
45 static Vector screenSize; // Width & height of the window we're drawing on
51 #endif // __PAINTER_H__