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

This class is a collection of terrain drawers. More...

Inheritance diagram for DtCollectionTerrainDrawer:
Inheritance graph
[legend]

Public Member Functions

 DtCollectionTerrainDrawer ()
virtual ~DtCollectionTerrainDrawer ()
virtual void internalDraw (const DtTerrainDatabase *, const DtViewportExtents *, DtPrimitiveDrawer *painter)
 Implement this feature to do specific terrain drawing.
virtual void addTerrainDrawer (DtTerrainDrawer *)
 Add/remove terrain drawers from this collection.
virtual void insertDrawer (int iIndex, DtTerrainDrawer *)
 Insert drawer at specified 0 based index.
virtual DtTerrainDrawerremoveDrawer (int)
 Remove drawer at specified index and return drawer removed.
virtual void removeTerrainDrawer (DtTerrainDrawer *)
const std::vector
< DtTerrainDrawer * > & 
terrainDrawers () const
- Public Member Functions inherited from DtTerrainDrawer
 DtTerrainDrawer ()
 DtTerrainDrawer (const DtTerrainDrawer &)
virtual ~DtTerrainDrawer ()
DtTerrainDraweroperator= (const DtTerrainDrawer &)
virtual void draw (const DtTerrainDatabase *, const DtViewportExtents *, DtPrimitiveDrawer *painter)
 Call in order to draw the particular aspect of the terrain on the supplied painter.
void setDrawingEnabled (bool)
 Get/set the drawingEnabled flag.
bool drawingEnabled () const

Protected Attributes

std::vector< DtTerrainDrawer * > myDrawers
- Protected Attributes inherited from DtTerrainDrawer
bool myDrawingEnabled

Additional Inherited Members

- Protected Member Functions inherited from DtTerrainDrawer
virtual void drawExtent (const DtExtent &extent, const DtHomogeneousTransfMatrix &mtx, const DtViewportExtents *v, DtPrimitiveDrawer *painter)
 Drawing routines.
virtual void drawFilledPoly (const DtAllTypesPolygon *polygon, const DtHomogeneousTransfMatrix &mtx, const DtViewportExtents *v, DtPrimitiveDrawer *painter)
virtual void drawLine (const DtPoint &gdp0, const DtPoint &gdp1, const DtViewportExtents *view, DtPrimitiveDrawer *painter)
virtual void drawWireframePoly (const DtAllTypesPolygon *polygon, const DtHomogeneousTransfMatrix &mtx, const DtViewportExtents *v, DtPrimitiveDrawer *painter)

Detailed Description

This class is a collection of terrain drawers.

These drawers will be invoked in the order they are inserted into this class. This class will use the internalDraw() method to iterate through the list of drawers, calling those drawers draw() methods

Constructor & Destructor Documentation

DtCollectionTerrainDrawer::DtCollectionTerrainDrawer ( )
virtual DtCollectionTerrainDrawer::~DtCollectionTerrainDrawer ( )
virtual

Member Function Documentation

virtual void DtCollectionTerrainDrawer::internalDraw ( const DtTerrainDatabase *  ,
const DtViewportExtents ,
DtPrimitiveDrawer painter 
)
virtual

Implement this feature to do specific terrain drawing.

Implements DtTerrainDrawer.

virtual void DtCollectionTerrainDrawer::addTerrainDrawer ( DtTerrainDrawer )
virtual

Add/remove terrain drawers from this collection.

virtual void DtCollectionTerrainDrawer::insertDrawer ( int  iIndex,
DtTerrainDrawer  
)
virtual

Insert drawer at specified 0 based index.

virtual DtTerrainDrawer* DtCollectionTerrainDrawer::removeDrawer ( int  )
virtual

Remove drawer at specified index and return drawer removed.

virtual void DtCollectionTerrainDrawer::removeTerrainDrawer ( DtTerrainDrawer )
virtual
const std::vector< DtTerrainDrawer * > & DtCollectionTerrainDrawer::terrainDrawers ( ) const
inline

References myDrawers.

Member Data Documentation

std::vector<DtTerrainDrawer*> DtCollectionTerrainDrawer::myDrawers
protected

Referenced by terrainDrawers().


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)