Qt Painter. More...

#include <qrpainter.h>

Inheritance diagram for QRPainter:
[legend]
Collaboration diagram for QRPainter:
[legend]

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
deviceDevice 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
x1First X coordinate.
y1First Y coordinate.
x2Second X coordinate.
y2Second 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
pt1First point.
pt2Second point.