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

A symbol representing a bitmap. More...

Inheritance diagram for DtBMPSymbol:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtBMPSymbol (DtSymbolDrawer &drawer)
 Constructor.
 DtBMPSymbol (DtSymbolDrawer &drawer, const QString &filename)
 DtBMPSymbol (DtSymbolDrawer &drawer, const QPixmap &pm)
 DtBMPSymbol (DtNullDrawer &drawer, const QString &filename)
 Constructor.
 DtBMPSymbol (const DtBMPSymbol &orig)
 Copy Constructor.
DtBMPSymboloperator= (const DtBMPSymbol &orig)
 Assignment Operatior.
virtual ~DtBMPSymbol ()
 Destructor.
virtual DtSymbolclone () const
 Create a clone of this symbol.
virtual const QString & filename () const
 Get the name of the bitmap file including its path.
virtual void setFilename (const QString &)
virtual const QPixmap & pixmap () const
 Get the stashed pixmap.
virtual void setPixmap (const QPixmap &)
virtual void setGhosted (bool ghosted)
 Make the bitmap look ghosted.
virtual bool ghosted () const
 returns whether or not this bitmap should look ghosted
virtual bool isScalable () const
 Return true/false if this is a scalable symbol. By default returns false.
bool operator== (const DtBMPSymbol &orig) const
bool operator!= (const DtBMPSymbol &orig) const
virtual bool transparentCacheChanged () const

Protected Attributes

QString myFilename
 data members
QPixmap myPixmap
bool myGhosted

Private Member Functions

 DtBMPSymbol ()
 Not implemented. Private to ensure it is only constructed with a drawer.

Detailed Description

A symbol representing a bitmap.

A corresponding BMPDrawer is required if you want the bitmap to actually draw.


Constructor & Destructor Documentation

Constructor.

DtBMPSymbol::DtBMPSymbol ( DtSymbolDrawer drawer,
const QString &  filename 
)
DtBMPSymbol::DtBMPSymbol ( DtSymbolDrawer drawer,
const QPixmap &  pm 
)
DtBMPSymbol::DtBMPSymbol ( DtNullDrawer drawer,
const QString &  filename 
)

Constructor.

Copy Constructor.

virtual DtBMPSymbol::~DtBMPSymbol ( ) [virtual]

Destructor.

DtBMPSymbol::DtBMPSymbol ( ) [private]

Not implemented. Private to ensure it is only constructed with a drawer.


Member Function Documentation

DtBMPSymbol& DtBMPSymbol::operator= ( const DtBMPSymbol orig)

Assignment Operatior.

virtual DtSymbol* DtBMPSymbol::clone ( ) const [virtual]

Create a clone of this symbol.

Reimplemented from DtSymbol.

virtual const QString& DtBMPSymbol::filename ( ) const [virtual]

Get the name of the bitmap file including its path.

virtual void DtBMPSymbol::setFilename ( const QString &  ) [virtual]
virtual const QPixmap& DtBMPSymbol::pixmap ( ) const [virtual]

Get the stashed pixmap.

virtual void DtBMPSymbol::setPixmap ( const QPixmap &  ) [virtual]
virtual void DtBMPSymbol::setGhosted ( bool  ghosted) [virtual]

Make the bitmap look ghosted.

virtual bool DtBMPSymbol::ghosted ( ) const [virtual]

returns whether or not this bitmap should look ghosted

virtual bool DtBMPSymbol::isScalable ( ) const [virtual]

Return true/false if this is a scalable symbol. By default returns false.

Reimplemented from DtSymbol.

bool DtBMPSymbol::operator== ( const DtBMPSymbol orig) const
bool DtBMPSymbol::operator!= ( const DtBMPSymbol orig) const
virtual bool DtBMPSymbol::transparentCacheChanged ( ) const [virtual]

Reimplemented from DtSymbol.


Member Data Documentation

QString DtBMPSymbol::myFilename [protected]

data members

QPixmap DtBMPSymbol::myPixmap [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)