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

This is the base class that represents a drawer that can draw an aspect of the terrain. More...

Inheritance diagram for DtTerrainDrawer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 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 Member Functions

virtual void internalDraw (const DtTerrainDatabase *, const DtViewportExtents *, DtPrimitiveDrawer *painter)=0
 Implement this feature to do specific terrain drawing.
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)

Protected Attributes

bool myDrawingEnabled

Detailed Description

This is the base class that represents a drawer that can draw an aspect of the terrain.

To be a terrain drawer, the internalDraw method must be implemented. This method will only be invoked if the drawer has drawing enabled


Constructor & Destructor Documentation

virtual DtTerrainDrawer::~DtTerrainDrawer ( ) [virtual]

Member Function Documentation

DtTerrainDrawer& DtTerrainDrawer::operator= ( const DtTerrainDrawer )
virtual void DtTerrainDrawer::draw ( const DtTerrainDatabase ,
const DtViewportExtents ,
DtPrimitiveDrawer painter 
) [virtual]

Call in order to draw the particular aspect of the terrain on the supplied painter.

Calls internalDraw to do the actual drawing if the drawingEnabled flag is true

Reimplemented in DtTerrainGdbDrawer.

Get/set the drawingEnabled flag.

Changing this flag does not have any immediate effect. By default this flag is true

References myDrawingEnabled.

References myDrawingEnabled.

virtual void DtTerrainDrawer::internalDraw ( const DtTerrainDatabase ,
const DtViewportExtents ,
DtPrimitiveDrawer painter 
) [protected, pure virtual]
virtual void DtTerrainDrawer::drawExtent ( const DtExtent extent,
const DtHomogeneousTransfMatrix mtx,
const DtViewportExtents v,
DtPrimitiveDrawer painter 
) [protected, virtual]

Drawing routines.

virtual void DtTerrainDrawer::drawFilledPoly ( const DtAllTypesPolygon polygon,
const DtHomogeneousTransfMatrix mtx,
const DtViewportExtents v,
DtPrimitiveDrawer painter 
) [protected, virtual]
virtual void DtTerrainDrawer::drawLine ( const DtPoint gdp0,
const DtPoint gdp1,
const DtViewportExtents view,
DtPrimitiveDrawer painter 
) [protected, virtual]
virtual void DtTerrainDrawer::drawWireframePoly ( const DtAllTypesPolygon polygon,
const DtHomogeneousTransfMatrix mtx,
const DtViewportExtents v,
DtPrimitiveDrawer painter 
) [protected, virtual]

Member Data Documentation


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)