VR-Forces 4.1.1 Class Documentation
List of all members | 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]

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

DtTerrainDrawer::DtTerrainDrawer ( )
DtTerrainDrawer::DtTerrainDrawer ( const DtTerrainDrawer )
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.

void DtTerrainDrawer::setDrawingEnabled ( bool  b)
inline

Get/set the drawingEnabled flag.

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

References myDrawingEnabled.

bool DtTerrainDrawer::drawingEnabled ( ) const
inline

References myDrawingEnabled.

virtual void DtTerrainDrawer::internalDraw ( const DtTerrainDatabase ,
const DtViewportExtents ,
DtPrimitiveDrawer painter 
)
protectedpure virtual
virtual void DtTerrainDrawer::drawExtent ( const DtExtent extent,
const DtHomogeneousTransfMatrix mtx,
const DtViewportExtents v,
DtPrimitiveDrawer painter 
)
protectedvirtual

Drawing routines.

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

Member Data Documentation

bool DtTerrainDrawer::myDrawingEnabled
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)