X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fpainter.h;h=af591b8e0d59740513151dfe1c232b112ef20644;hb=84afe881653a02a16b19d4da37435b8701b1a826;hp=84e3e1477a5d90b98822f70dd6bff0173fc22fc9;hpb=bb8d0671717bac2c5350e34024273381be1d8175;p=architektonas diff --git a/src/painter.h b/src/painter.h index 84e3e14..af591b8 100644 --- a/src/painter.h +++ b/src/painter.h @@ -1,7 +1,7 @@ #ifndef __PAINTER_H__ #define __PAINTER_H__ -#include +#include #include "vector.h" //#define SCREEN_ZOOM (1.0 / 4.0) @@ -22,6 +22,8 @@ class Painter void DrawArc(Vector, double, double, double); void DrawEllipse(Vector, double, double); void DrawHandle(Vector); + void DrawArrowHandle(Vector, double); + void DrawArrowToLineHandle(Vector, double); void DrawLine(int, int, int, int); void DrawLine(Vector, Vector); void DrawPoint(int, int); @@ -30,6 +32,8 @@ class Painter void DrawRect(QRectF); void DrawText(QRectF, int, QString); void DrawArrowhead(Vector, Vector, double); + void DrawCrosshair(Vector); + void DrawInformativeText(QString); public: static Vector CartesianToQtCoords(Vector); @@ -37,9 +41,9 @@ class Painter public: // Class variables - static Vector origin; // The window origin, not location of the origin - static double zoom; // Window zoom factor - static Vector screenSize; // Width & height of the window we're drawing on +// static Vector origin; // The window origin, not location of the origin +// static double zoom; // Window zoom factor +// static Vector screenSize; // Width & height of the window we're drawing on private: QPainter * painter;