![]() |
VR-Forces 4.1.1 Class Documentation
|
Draw a pixmap as the background. More...

Public Slots | |
| virtual void | loadPixFile (const QString &file) |
| virtual void | loadPix (const QPixmap &file) |
Public Member Functions | |
| DtPixmapBackground () | |
| default constructor | |
| DtPixmapBackground (const DtPixmapBackground &orig) | |
| default copy constructor | |
| virtual | ~DtPixmapBackground () |
| default destructor | |
| DtPixmapBackground & | operator= (const DtPixmapBackground &rhs) |
| default assignment operator | |
| virtual bool | init (DtTMArea *area) |
| This function must be called or else nothing will happen. | |
| virtual void | draw (QPainter *painter=NULL) |
| Overload these functions in a working background class. | |
| virtual void | clear () |
| virtual void | setFillColor (QColor &color) |
| Set the color of the background in the areas. | |
Public Member Functions inherited from DtTMBackground | |
| DtTMBackground () | |
| default constructor | |
| DtTMBackground (const DtTMBackground &orig) | |
| default copy constructor | |
| virtual | ~DtTMBackground () |
| default destructor | |
| DtTMBackground & | operator= (const DtTMBackground &rhs) |
| default assignment operator | |
| virtual const DtTMViewportExtents * | viewportExtents () const |
| virtual void | setViewportExtents (DtTMViewportExtents *v) |
| virtual QPixmap * | pixmap () const |
| virtual void | setPixmap (QPixmap *) |
| Deletes old pixmap and resets new pixmap into lens area. | |
| void | setNeedsRedraw (bool) |
| bool | needsRedraw () const |
Static Public Member Functions | |
| static DtTMBackground * | create () |
| Returns a newly created instance of a DtPixmapBackground. | |
Protected Attributes | |
| QPixmap * | myGlobalPixmap |
| QColor | myFillColor |
Protected Attributes inherited from DtTMBackground | |
| QPixmap * | myPixmap |
| DtTMViewportExtents * | myViewportExtents |
| DtTMArea * | myArea |
| bool | myNeedsRedraw |
Draw a pixmap as the background.
The extents are set as the pixmap's pixels. This class is not so useful in the real world, but its great for testing and demos.
| DtPixmapBackground::DtPixmapBackground | ( | ) |
default constructor
| DtPixmapBackground::DtPixmapBackground | ( | const DtPixmapBackground & | orig | ) |
default copy constructor
|
virtual |
default destructor
| DtPixmapBackground& DtPixmapBackground::operator= | ( | const DtPixmapBackground & | rhs | ) |
default assignment operator
|
static |
Returns a newly created instance of a DtPixmapBackground.
This function must be called or else nothing will happen.
Reimplemented from DtTMBackground.
|
virtual |
Overload these functions in a working background class.
Implements DtTMBackground.
|
virtual |
Implements DtTMBackground.
|
virtual |
Set the color of the background in the areas.
|
virtualslot |
|
virtualslot |
|
protected |
|
protected |