VR-Forces 4.2 Class Documentation
List of all members | 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]

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.
- Public Member Functions inherited from DtTMBackground
 DtTMBackground ()
 default constructor
 DtTMBackground (const DtTMBackground &orig)
 default copy constructor
virtual ~DtTMBackground ()
 default destructor
DtTMBackgroundoperator= (const DtTMBackground &rhs)
 default assignment operator
virtual const DtTMViewportExtentsviewportExtents () 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 DtTMBackgroundcreate ()
 Returns a newly created instance of a DtPixmapBackground.

Protected Attributes

QPixmap * myGlobalPixmap
QColor myFillColor
- Protected Attributes inherited from DtTMBackground
QPixmap * myPixmap
DtTMViewportExtentsmyViewportExtents
DtTMAreamyArea
bool myNeedsRedraw

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

DtPixmapBackground::DtPixmapBackground ( )

default constructor

DtPixmapBackground::DtPixmapBackground ( const DtPixmapBackground orig)

default copy constructor

virtual DtPixmapBackground::~DtPixmapBackground ( )
virtual

default destructor

Member Function Documentation

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)
virtualslot
virtual void DtPixmapBackground::loadPix ( const QPixmap &  file)
virtualslot

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 Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)