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

This specialized version of the terrain drawer collection that will create all drawers necessary to draw a gdb. More...

Inheritance diagram for DtTerrainGdbDrawer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtTerrainGdbDrawer ()
virtual ~DtTerrainGdbDrawer ()
virtual void init ()
 Must be called in order to create drawers.
virtual void draw (const DtTerrainDatabase *, const DtViewportExtents *, DtPrimitiveDrawer *painter)
 Override to set drawing options into specific drawers.
virtual void setTerrainDrawerOptions (DtTdbDrawerOptions *)
 On access, if no options are set, creates options.
virtual DtTdbDrawerOptionsterrainDrawerOptions ()
virtual void setCoordinateSystem (const DtCoordinateSystem *)
virtual const DtCoordinateSystemcoordinateSystem () const
virtual void setPaperMapDatabase (const DtPaperMapDatabase *)
const DtPaperMapDatabasepaperMapDatabase () const
virtual int coordinateSystemDrawerType () const
DtTerrainPolygonDrawerpolygonDrawer () const
DtTerrainPaperMapDrawerpaperMapDrawer () const
DtTerrainFeatureDrawerfeatureDrawer () const
DtTerrainWireframeDrawerwireframeDrawer () const
DtTerrainPolygonDrawerboundingVolumesDrawer () const
DtTerrainContourLinesDrawercontourLinesDrawer () const
DtTerrainGridLineDrawergridLineDrawer () const

Protected Member Functions

virtual void createTerrainDrawers ()
 Called from init(), creates all the drawers that will be used for this gdb drawer collection.
virtual DtTerrainPolygonDrawercreatePolygonDrawer () const
virtual DtTerrainPaperMapDrawercreatePaperMapDrawer () const
virtual DtTerrainFeatureDrawercreateFeatureDrawer () const
virtual DtTerrainWireframeDrawercreateWireframeDrawer () const
virtual DtTerrainPolygonDrawercreateBoundingVolumesDrawer () const
virtual
DtTerrainContourLinesDrawer
createContourLinesDrawer () const
virtual DtTerrainGridLineDrawercreateGridLineDrawer () const
virtual DtTdbDrawerOptionscreateTerrainDrawerOptions () const
virtual void updateDrawersFromOptions ()
 Calls specific update routines to update terrain drawers from the terrain drawer options.
virtual void updatePolygonDrawer ()
virtual void updatePaperMapDrawer ()
virtual void updateFeatureDrawer ()
virtual void updateWireframeDrawer ()
virtual void updateBoundingVolumesDrawer ()
virtual void updateContourLinesDrawer ()
virtual void updateGridLineDrawer ()

Protected Attributes

DtTerrainPolygonDrawermyPolygonDrawer
DtTerrainPaperMapDrawermyPaperMapDrawer
DtTerrainFeatureDrawermyFeatureDrawer
DtTerrainWireframeDrawermyWireframeDrawer
DtTerrainPolygonDrawermyBoundingVolumesDrawer
DtTerrainContourLinesDrawermyContourLinesDrawer
DtTerrainGridLineDrawermyGridLineDrawer
DtTdbDrawerOptionsmyTerrainDrawerOptions
bool myOwnsTerrainDrawerOptions
const DtCoordinateSystemmyCoordinateSystem
 If not set, this will be created by the grid line drawer when it first tries to draw grid lines.
const DtPaperMapDatabasemyPaperMapDatabase
 This is needed for the paper map drawer to correctly draw papermaps.

Detailed Description

This specialized version of the terrain drawer collection that will create all drawers necessary to draw a gdb.

It will also manage the terrain drawing options and set the appropriate values into the specific drawers before the terrain is drawn


Constructor & Destructor Documentation


Member Function Documentation

virtual void DtTerrainGdbDrawer::init ( ) [virtual]

Must be called in order to create drawers.

virtual void DtTerrainGdbDrawer::draw ( const DtTerrainDatabase ,
const DtViewportExtents ,
DtPrimitiveDrawer painter 
) [virtual]

Override to set drawing options into specific drawers.

The first time draw is called, all appropriate objects that have not been set will be created (specifically the unit converter collection and the terrain drawing options)

Reimplemented from DtTerrainDrawer.

On access, if no options are set, creates options.

virtual void DtTerrainGdbDrawer::setCoordinateSystem ( const DtCoordinateSystem ) [virtual]
virtual const DtCoordinateSystem* DtTerrainGdbDrawer::coordinateSystem ( ) const [virtual]
virtual void DtTerrainGdbDrawer::setPaperMapDatabase ( const DtPaperMapDatabase ) [virtual]

References myPaperMapDatabase.

virtual int DtTerrainGdbDrawer::coordinateSystemDrawerType ( ) const [virtual]

References myPolygonDrawer.

References myPaperMapDrawer.

References myFeatureDrawer.

References myWireframeDrawer.

References myContourLinesDrawer.

References myGridLineDrawer.

virtual void DtTerrainGdbDrawer::createTerrainDrawers ( ) [protected, virtual]

Called from init(), creates all the drawers that will be used for this gdb drawer collection.

Will also insert the drawers in drawing order to correctly draw the terrain database

virtual DtTerrainPolygonDrawer* DtTerrainGdbDrawer::createPolygonDrawer ( ) const [protected, virtual]

Reimplemented in DtTacticalGdbDrawer.

virtual DtTerrainPaperMapDrawer* DtTerrainGdbDrawer::createPaperMapDrawer ( ) const [protected, virtual]

Reimplemented in DtTacticalGdbDrawer.

virtual DtTerrainFeatureDrawer* DtTerrainGdbDrawer::createFeatureDrawer ( ) const [protected, virtual]

Reimplemented in DtTacticalGdbDrawer.

Reimplemented in DtTacticalGdbDrawer.

Reimplemented in DtTacticalGdbDrawer.

Reimplemented in DtTacticalGdbDrawer.

virtual DtTerrainGridLineDrawer* DtTerrainGdbDrawer::createGridLineDrawer ( ) const [protected, virtual]

Reimplemented in DtTacticalGdbDrawer.

virtual DtTdbDrawerOptions* DtTerrainGdbDrawer::createTerrainDrawerOptions ( ) const [protected, virtual]
virtual void DtTerrainGdbDrawer::updateDrawersFromOptions ( ) [protected, virtual]

Calls specific update routines to update terrain drawers from the terrain drawer options.

virtual void DtTerrainGdbDrawer::updatePolygonDrawer ( ) [protected, virtual]
virtual void DtTerrainGdbDrawer::updatePaperMapDrawer ( ) [protected, virtual]
virtual void DtTerrainGdbDrawer::updateFeatureDrawer ( ) [protected, virtual]
virtual void DtTerrainGdbDrawer::updateWireframeDrawer ( ) [protected, virtual]
virtual void DtTerrainGdbDrawer::updateBoundingVolumesDrawer ( ) [protected, virtual]
virtual void DtTerrainGdbDrawer::updateContourLinesDrawer ( ) [protected, virtual]
virtual void DtTerrainGdbDrawer::updateGridLineDrawer ( ) [protected, virtual]

Member Data Documentation

Referenced by polygonDrawer().

Referenced by paperMapDrawer().

Referenced by featureDrawer().

Referenced by wireframeDrawer().

Referenced by boundingVolumesDrawer().

Referenced by contourLinesDrawer().

Referenced by gridLineDrawer().

If not set, this will be created by the grid line drawer when it first tries to draw grid lines.

This is needed for the paper map drawer to correctly draw papermaps.

Referenced by paperMapDatabase().


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)