![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Member Functions | |
| DtQtDrawer () | |
| virtual | ~DtQtDrawer () |
| virtual void | setPainter (QPainter *p) |
| virtual void | setLineColor (const QColor &color) |
| virtual int | setLineWidth (int w) |
| Returns old line width when setting. | |
| virtual void | setFillColor (const QColor &color) |
| virtual void | drawString (const DtDisplayPoint &pt, const char *pString) |
| virtual void | drawLine (const DtDisplayPoint &ptFrom, const DtDisplayPoint &ptTo) |
| virtual void | drawFilledPoly (int numVerts, DtDisplayPoint *points) |
| virtual void | drawRect (const DtDisplayPoint &upperLeft, const DtDisplayPoint &lowerRight) |
| virtual void | drawPixmap (const DtDisplayPoint &pt, const QPixmap &p, int transparencyLevel=0) |
| virtual void | drawImage (const DtDisplayPoint &pt, const QImage &p, bool blend=true, int transparencyLevel=0) |
| This call differs from drawPixmap in that if the supplied image contains an alpha mask, it will blend the image with the current background image using that mask. | |
| virtual void | clear () |
| erase with fillcolor | |
| virtual void | labelForHorizLine (const DtDisplayPoint &pt, const char *pString) |
| clientWnd() and setClientWnd() used to get/set the window which will be drawn upon call this before calling | |
| virtual void | labelForVertiLine (const DtDisplayPoint &pt, const char *pString) |
| virtual void | internalDrawImage (int x, int y, const QImage &image) |
| Because all Qt does internally is convert images to pixmaps before drawing, for very large images, this does not work. | |
| virtual void | setFont (const QFont &) |
| virtual const QFont & | font () const |
| virtual void | scale (double x, double y) |
| virtual void | translate (int x, int y) |
| virtual void | resetXForm () |
Static Public Member Functions | |
| static DtQtDrawer * | create () |
Protected Attributes | |
| QPainter * | myPainter |
| virtual DtQtDrawer::~DtQtDrawer | ( | ) | [virtual] |
| virtual void DtQtDrawer::setPainter | ( | QPainter * | p | ) | [virtual] |
| virtual void DtQtDrawer::setLineColor | ( | const QColor & | color | ) | [virtual] |
Implements DtPrimitiveDrawer.
| virtual int DtQtDrawer::setLineWidth | ( | int | w | ) | [virtual] |
Returns old line width when setting.
Implements DtPrimitiveDrawer.
| virtual void DtQtDrawer::setFillColor | ( | const QColor & | color | ) | [virtual] |
Implements DtPrimitiveDrawer.
| virtual void DtQtDrawer::drawString | ( | const DtDisplayPoint & | pt, |
| const char * | pString | ||
| ) | [virtual] |
Implements DtPrimitiveDrawer.
| virtual void DtQtDrawer::drawLine | ( | const DtDisplayPoint & | ptFrom, |
| const DtDisplayPoint & | ptTo | ||
| ) | [virtual] |
Implements DtPrimitiveDrawer.
| virtual void DtQtDrawer::drawFilledPoly | ( | int | numVerts, |
| DtDisplayPoint * | points | ||
| ) | [virtual] |
Implements DtPrimitiveDrawer.
| virtual void DtQtDrawer::drawRect | ( | const DtDisplayPoint & | upperLeft, |
| const DtDisplayPoint & | lowerRight | ||
| ) | [virtual] |
| virtual void DtQtDrawer::drawPixmap | ( | const DtDisplayPoint & | pt, |
| const QPixmap & | p, | ||
| int | transparencyLevel = 0 |
||
| ) | [virtual] |
Implements DtPrimitiveDrawer.
| virtual void DtQtDrawer::drawImage | ( | const DtDisplayPoint & | pt, |
| const QImage & | p, | ||
| bool | blend = true, |
||
| int | transparencyLevel = 0 |
||
| ) | [virtual] |
This call differs from drawPixmap in that if the supplied image contains an alpha mask, it will blend the image with the current background image using that mask.
If you do not need this type of blending, use the drawPixmap call to simply use the monochrome bitmap (if it exists).
Transparency level is set from 0 to 100. This will override any alpha channel or blend flag, as, if non-zero, will pick that as the percent of pixel to display (0 being opaque, 1 being completely transparent)
Implements DtPrimitiveDrawer.
| virtual void DtQtDrawer::clear | ( | ) | [virtual] |
erase with fillcolor
Implements DtPrimitiveDrawer.
| virtual void DtQtDrawer::labelForHorizLine | ( | const DtDisplayPoint & | pt, |
| const char * | pString | ||
| ) | [virtual] |
clientWnd() and setClientWnd() used to get/set the window which will be drawn upon call this before calling
Grid line stuff.
Implements DtPrimitiveDrawer.
| virtual void DtQtDrawer::labelForVertiLine | ( | const DtDisplayPoint & | pt, |
| const char * | pString | ||
| ) | [virtual] |
Implements DtPrimitiveDrawer.
| virtual void DtQtDrawer::internalDrawImage | ( | int | x, |
| int | y, | ||
| const QImage & | image | ||
| ) | [virtual] |
Because all Qt does internally is convert images to pixmaps before drawing, for very large images, this does not work.
Here will will pick and image size and draw "slices" of the image if the image is too large to draw
| static DtQtDrawer* DtQtDrawer::create | ( | ) | [static] |
| virtual void DtQtDrawer::setFont | ( | const QFont & | ) | [virtual] |
Implements DtPrimitiveDrawer.
| virtual const QFont& DtQtDrawer::font | ( | ) | const [virtual] |
Implements DtPrimitiveDrawer.
| virtual void DtQtDrawer::scale | ( | double | x, |
| double | y | ||
| ) | [virtual] |
Implements DtPrimitiveDrawer.
| virtual void DtQtDrawer::translate | ( | int | x, |
| int | y | ||
| ) | [virtual] |
Implements DtPrimitiveDrawer.
| virtual void DtQtDrawer::resetXForm | ( | ) | [virtual] |
Implements DtPrimitiveDrawer.
QPainter* DtQtDrawer::myPainter [protected] |