![]() |
VR-Forces 4.1.1 Class Documentation
|
This is the base class that represents a drawer that can draw an aspect of the terrain. More...

Public Member Functions | |
| DtTerrainDrawer () | |
| DtTerrainDrawer (const DtTerrainDrawer &) | |
| virtual | ~DtTerrainDrawer () |
| DtTerrainDrawer & | operator= (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 |
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
| DtTerrainDrawer::DtTerrainDrawer | ( | ) |
| DtTerrainDrawer::DtTerrainDrawer | ( | const DtTerrainDrawer & | ) |
|
virtual |
| DtTerrainDrawer& DtTerrainDrawer::operator= | ( | const DtTerrainDrawer & | ) |
|
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.
|
inline |
Get/set the drawingEnabled flag.
Changing this flag does not have any immediate effect. By default this flag is true
References myDrawingEnabled.
|
inline |
References myDrawingEnabled.
|
protectedpure virtual |
Implement this feature to do specific terrain drawing.
Implemented in DtTerrainGridLineDrawer, DtTerrainPolygonDrawer, DtTerrainPaperMapDrawer, DtTerrainFeatureDrawer, DtTerrainContourLinesDrawer, and DtCollectionTerrainDrawer.
|
protectedvirtual |
Drawing routines.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
Referenced by drawingEnabled(), and setDrawingEnabled().