VR-Forces 4.0.4 Class Documentation
Public Slots | Public Member Functions | Static Public Member Functions | Protected Attributes
DtPixmapBackground Class Reference

Draw a pixmap as the background. More...

Inheritance diagram for DtPixmapBackground:
Inheritance graph
[legend]

List of all members.

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
DtPixmapBackgroundoperator= (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 DtTMBackgroundcreate ()
 Returns a newly created instance of a DtPixmapBackground.

Protected Attributes

QPixmap * myGlobalPixmap
QColor myFillColor

Detailed Description

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.


Constructor & Destructor Documentation

default constructor

default copy constructor

default destructor


Member Function Documentation

DtPixmapBackground& DtPixmapBackground::operator= ( const DtPixmapBackground rhs)

default assignment operator

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]

Member Data Documentation

QPixmap* DtPixmapBackground::myGlobalPixmap [protected]
QColor DtPixmapBackground::myFillColor [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)