Qt Painter. More...
#include <qrpainter.h>
Inheritance diagram for QRPainter:
Collaboration diagram for QRPainter:
Public Member Functions | |
QRPainter (void) | |
QRPainter (QPaintDevice *device) | |
void | drawManhattan (int x1, int y1, int x2, int y2) |
void | drawManhattan (const QPoint &pt1, const QPoint &pt2) |
Detailed Description
Qt Painter.
The QRPainter provides a class to paint for Qt. In fact, it proposes a set convenient methods to mix R and Qt.
Constructor & Destructor Documentation
QRPainter | ( | void | ) |
Constructor.
QRPainter | ( | QPaintDevice * | device | ) |
Constructor
- Parameters
-
device Device where the paint must be done.
Member Function Documentation
void drawManhattan | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
Draw the "Manhattan distance" between two points. Basically, the middle point is computed and acts as intermediate point.
- Parameters
-
x1 First X coordinate. y1 First Y coordinate. x2 Second X coordinate. y2 Second Y coordinate.
void drawManhattan | ( | const QPoint & | pt1, |
const QPoint & | pt2 | ||
) |
Draw the "Manhattan distance" between two points. Basically, the middle point is computed and acts as intermediate point.
- Parameters
-
pt1 First point. pt2 Second point.