VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes
DtTMBackground Class Reference

This class does nothing at all. More...

Inheritance diagram for DtTMBackground:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtTMBackground ()
 default constructor
 DtTMBackground (const DtTMBackground &orig)
 default copy constructor
virtual ~DtTMBackground ()
 default destructor
DtTMBackgroundoperator= (const DtTMBackground &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)=0
 Overload these functions in a working background class.
virtual void clear ()=0
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

Protected Attributes

QPixmap * myPixmap
DtTMViewportExtentsmyViewportExtents
DtTMAreamyArea
bool myNeedsRedraw

Detailed Description

This class does nothing at all.

It is a virtual interface for a real background class such as one that handles pixmaps, terrain, rastermaps, or whatever doohicky you want as a background.


Constructor & Destructor Documentation

default constructor

default copy constructor

virtual DtTMBackground::~DtTMBackground ( ) [virtual]

default destructor


Member Function Documentation

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

default assignment operator

virtual bool DtTMBackground::init ( DtTMArea area) [virtual]

This function must be called or else nothing will happen.

Reimplemented in DtTerrainBackground, and DtPixmapBackground.

virtual void DtTMBackground::draw ( QPainter *  painter = NULL) [pure virtual]

Overload these functions in a working background class.

Implemented in DtTerrainBackground, and DtPixmapBackground.

virtual void DtTMBackground::clear ( ) [pure virtual]
virtual const DtTMViewportExtents* DtTMBackground::viewportExtents ( ) const [virtual]
virtual QPixmap* DtTMBackground::pixmap ( ) const [virtual]
virtual void DtTMBackground::setPixmap ( QPixmap *  ) [virtual]

Deletes old pixmap and resets new pixmap into lens area.

void DtTMBackground::setNeedsRedraw ( bool  b) [inline]

References myNeedsRedraw.

bool DtTMBackground::needsRedraw ( ) const [inline]

References myNeedsRedraw.


Member Data Documentation

QPixmap* DtTMBackground::myPixmap [protected]

Referenced by needsRedraw(), and setNeedsRedraw().


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)