VR-Forces 4.1 Class Documentation
List of all members | Public Member Functions | Protected Attributes
DtTMBackground Class Reference

This class does nothing at all. More...

Inheritance diagram for DtTMBackground:
Inheritance graph
[legend]

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

DtTMBackground::DtTMBackground ( )

default constructor

DtTMBackground::DtTMBackground ( const DtTMBackground orig)

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 void DtTMBackground::setViewportExtents ( DtTMViewportExtents v)
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
DtTMViewportExtents* DtTMBackground::myViewportExtents
protected
DtTMArea* DtTMBackground::myArea
protected
bool DtTMBackground::myNeedsRedraw
protected

Referenced by needsRedraw(), and setNeedsRedraw().


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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)