![]() |
VR-Forces 4.0.4 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. | |
Static Public Member Functions | |
| static DtTMBackground * | create () |
| Returns a newly created instance of a DtPixmapBackground. | |
Protected Attributes | |
| QPixmap * | myGlobalPixmap |
| QColor | myFillColor |
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.
default constructor
| DtPixmapBackground::DtPixmapBackground | ( | const DtPixmapBackground & | orig | ) |
default copy constructor
| virtual DtPixmapBackground::~DtPixmapBackground | ( | ) | [virtual] |
default destructor
| DtPixmapBackground& DtPixmapBackground::operator= | ( | const DtPixmapBackground & | rhs | ) |
default assignment operator
| static DtTMBackground* DtPixmapBackground::create | ( | ) | [static] |
Returns a newly created instance of a DtPixmapBackground.
| virtual bool DtPixmapBackground::init | ( | DtTMArea * | area | ) | [virtual] |
This function must be called or else nothing will happen.
Reimplemented from DtTMBackground.
| virtual void DtPixmapBackground::draw | ( | QPainter * | painter = NULL | ) | [virtual] |
Overload these functions in a working background class.
Implements DtTMBackground.
| virtual void DtPixmapBackground::clear | ( | ) | [virtual] |
Implements DtTMBackground.
| virtual void DtPixmapBackground::setFillColor | ( | QColor & | color | ) | [virtual] |
Set the color of the background in the areas.
| virtual void DtPixmapBackground::loadPixFile | ( | const QString & | file | ) | [virtual, slot] |
| virtual void DtPixmapBackground::loadPix | ( | const QPixmap & | file | ) | [virtual, slot] |
QPixmap* DtPixmapBackground::myGlobalPixmap [protected] |
QColor DtPixmapBackground::myFillColor [protected] |