PARP Research Group Universidad de Murcia


QVPainter Class Reference

Inherits from QPainter to allow versatile drawing on a QVImageCanvas object. More...

#include <QVPainter>

List of all members.

Public Member Functions

void drawQVImage (QVGenericImage *image, bool adaptsize=TRUE, float low=0.0, float high=255.0)
 Draws a QVImage<T,n> of any type T and size n in the corresponding QVImageCanvas.
void drawTextUnscaled (const QPointF &position, const QString &text)
 Draws text in a given pixel position of the QVImageCanvas which does not scale with zooming.
void drawTextUnscaled (const QPoint &position, const QString &text)
 Draws text in a given pixel position of the QVImageCanvas which does not scale with zooming.
void drawTextUnscaled (const QRectF &rectangle, int flags, const QString &text, QRectF *boundingRect=0)
 Draws text in a given rectangle of the QVImageCanvas which does not scale with zooming.
void drawTextUnscaled (const QRect &rectangle, int flags, const QString &text, QRect *boundingRect=0)
 Draws text in a given rectangle of the QVImageCanvas which does not scale with zooming.
void drawTextUnscaled (int x, int y, const QString &text)
 Draws text in a given position of the QVImageCanvas which does not scale with zooming.
void drawTextUnscaled (int x, int y, int width, int height, int flags, const QString &text, QRect *boundingRect=0)
 Draws text in a given position of the QVImageCanvas which does not scale with zooming.
void drawTextUnscaled (const QRectF &rectangle, const QString &text, const QTextOption &option=QTextOption())
 Draws text in a QVImageCanvas which does not scale with zooming, using the specified option to control its positioning and orientation.

Detailed Description

Inherits from QPainter to allow versatile drawing on a QVImageCanvas object.

Nobody except internally the QVImageCanvas class should create or destroy QVPainters, so you do not need to construct this kind of objects. You will only need to use them through the QVImageCanvas::getQVPainter() method when subclassing QVImageCanvas (see documentation on this last class for coding examples).

Definition at line 50 of file qvcanvas.h.


Member Function Documentation

void QVPainter::drawQVImage ( QVGenericImage image,
bool  adaptsize = TRUE,
float  low = 0.0,
float  high = 255.0 
)

Draws a QVImage<T,n> of any type T and size n in the corresponding QVImageCanvas.

Draws a QVImage<T,n> of any type T and size n in the corresponding QVImageCanvas. The image is drawn according to its current ROI (position and size).

Parameters:
image QVImage to draw.
adaptsize If true, the QVImageArea is rescaled according to the image drawn.
low Float value which will correspond to darkest (black) colour.
high Float value which will correspond to brightest (white) colour.

Definition at line 55 of file qvcanvas.cpp.

void QVPainter::drawTextUnscaled ( const QPointF &  position,
const QString &  text 
)

Draws text in a given pixel position of the QVImageCanvas which does not scale with zooming.

See corresponding (scaled) method QPainter::drawText() for details on input parameters.

Definition at line 61 of file qvcanvas.cpp.

void QVPainter::drawTextUnscaled ( const QPoint &  position,
const QString &  text 
)

Draws text in a given pixel position of the QVImageCanvas which does not scale with zooming.

See corresponding (scaled) method QPainter::drawText() for details on input parameters.

Definition at line 70 of file qvcanvas.cpp.

void QVPainter::drawTextUnscaled ( const QRectF &  rectangle,
int  flags,
const QString &  text,
QRectF *  boundingRect = 0 
)

Draws text in a given rectangle of the QVImageCanvas which does not scale with zooming.

See corresponding (scaled) method QPainter::drawText() for details on input parameters.

Definition at line 79 of file qvcanvas.cpp.

void QVPainter::drawTextUnscaled ( const QRect &  rectangle,
int  flags,
const QString &  text,
QRect *  boundingRect = 0 
)

Draws text in a given rectangle of the QVImageCanvas which does not scale with zooming.

See corresponding (scaled) method QPainter::drawText() for details on input parameters.

Definition at line 93 of file qvcanvas.cpp.

void QVPainter::drawTextUnscaled ( int  x,
int  y,
const QString &  text 
)

Draws text in a given position of the QVImageCanvas which does not scale with zooming.

See corresponding (scaled) method QPainter::drawText() for details on input parameters.

Definition at line 107 of file qvcanvas.cpp.

void QVPainter::drawTextUnscaled ( int  x,
int  y,
int  width,
int  height,
int  flags,
const QString &  text,
QRect *  boundingRect = 0 
)

Draws text in a given position of the QVImageCanvas which does not scale with zooming.

See corresponding (scaled) method QPainter::drawText() for details on input parameters.

Definition at line 116 of file qvcanvas.cpp.

void QVPainter::drawTextUnscaled ( const QRectF &  rectangle,
const QString &  text,
const QTextOption &  option = QTextOption() 
)

Draws text in a QVImageCanvas which does not scale with zooming, using the specified option to control its positioning and orientation.

See corresponding (scaled) method QPainter::drawText() for details on input parameters.

Definition at line 130 of file qvcanvas.cpp.


The documentation for this class was generated from the following files:



QVision framework. PARP research group. Copyright © 2007, 2008, 2009, 2010, 2011.