VR-Forces 4.2 Class Documentation
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtTerrainFeatureDrawer Class Reference
Inheritance diagram for DtTerrainFeatureDrawer:
Inheritance graph
[legend]

Public Member Functions

 DtTerrainFeatureDrawer ()
 DtTerrainFeatureDrawer (const DtTerrainFeatureDrawer &)
virtual ~DtTerrainFeatureDrawer ()
const DtTerrainFeatureDraweroperator= (const DtTerrainFeatureDrawer &)
virtual void setFeatureDrawOrder (DtList *list)
 Sets the feature draw order list in the tdb drawer.
virtual void setFillArealFeatures (bool)
virtual void cleanupFeatureDrawOrderList ()
 Cleans up memory for local feature draw order list.
- Public Member Functions inherited from DtTerrainPolygonDrawer
 DtTerrainPolygonDrawer ()
 DtTerrainPolygonDrawer (const DtTerrainPolygonDrawer &)
virtual ~DtTerrainPolygonDrawer ()
const DtTerrainPolygonDraweroperator= (const DtTerrainPolygonDrawer &)
void setDrawBoundingVolumes (bool)
 Get/set the flag that determines if bounding volumes are drawn around certain polygonal items. Default is false.
bool drawBoundingVolumes () const
void setBoundingVolumesColor (const QColor &)
const QColor & boundingVolumesColor () const
void setPolygonColorFcn (DtPolygonColorFcn, void *)
virtual void drawPolygons (const DtAllTypesPolygon *polygon, const DtViewportExtents *v, DtPrimitiveDrawer *painter)
 Draws all the polygons referenced by the specified polygon.
virtual void colorPolygonByHeight (DtAllTypesPolygon &thePolygon, const DtViewportExtents *v)
 Sets the polygon color based on height.
- 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

Static Public Member Functions

static DtTerrainFeatureDrawercreate ()
- Static Public Member Functions inherited from DtTerrainPolygonDrawer
static QColor polygonSurfaceColor (const DtAllTypesPolygon *, const DtViewportExtents *v, void *usr)
static QColor polygonSoilTypeColor (const DtAllTypesPolygon *, const DtViewportExtents *v, void *usr)
static QColor polygonTerrainShadingSurfaceColor (const DtAllTypesPolygon *, const DtViewportExtents *v, void *usr)
static QColor polygonTerrainShadingSoilTypeColor (const DtAllTypesPolygon *, const DtViewportExtents *v, void *usr)
static QColor polygonTerrainShadingFromColor (const DtAllTypesPolygon *p, const QColor &baseColor, const DtViewportExtents *v)

Protected Member Functions

virtual void internalDraw (const DtTerrainDatabase *, const DtViewportExtents *, DtPrimitiveDrawer *painter)
 Implement this feature to do specific terrain drawing.
virtual void drawVectorNetwork (bool isGeod, const DtVectorNetwork *network, const DtHomogeneousTransfMatrix &matrix, DtHashList *segmentList, const DtViewportExtents *v, DtPrimitiveDrawer *painter)
- Protected Member Functions inherited from DtTerrainPolygonDrawer
virtual void drawAllNodeTypes (const DtGdbNode *node, const DtHomogeneousTransfMatrix &matrix, const DtViewportExtents *v, DtPrimitiveDrawer *painter)
 Switches on node type to draw polygons of a specific type.
virtual void drawGroup (const DtGroup *group, const DtHomogeneousTransfMatrix &matrix, const DtViewportExtents *v, DtPrimitiveDrawer *painter)
virtual void drawLevelOfDetail (const DtLevelOfDetail *level_of_detail, const DtHomogeneousTransfMatrix &matrix, const DtViewportExtents *v, DtPrimitiveDrawer *painter)
virtual void drawCoordinateSystem (const DtBaseCoordinateSystem *cs, const DtHomogeneousTransfMatrix &matrix, const DtViewportExtents *v, DtPrimitiveDrawer *painter)
virtual void drawFeature (const DtFeature *moddef, const DtHomogeneousTransfMatrix &matrix, const DtViewportExtents *v, DtPrimitiveDrawer *painter)
virtual void drawFileNode (const DtFileNode *fileNode, const DtHomogeneousTransfMatrix &matrix, const DtViewportExtents *v, DtPrimitiveDrawer *painter)
virtual void drawPolygon (const DtAllTypesPolygon *polygon, const DtHomogeneousTransfMatrix &matrix, const DtViewportExtents *v, DtPrimitiveDrawer *painter)
virtual QColor polygonColor (const DtAllTypesPolygon *, const DtViewportExtents *v)
 Call down to set polygon color static callback to get color.
- 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)

Protected Attributes

DtList * myFeatureDrawOrderList
bool myFillArealFeatures
- Protected Attributes inherited from DtTerrainPolygonDrawer
bool myDrawBoundingVolumes
QColor myBoundingVolumesColor
DtPolygonColorFcn myPolygonColorFcn
void * myPolygonColorData
- Protected Attributes inherited from DtTerrainDrawer
bool myDrawingEnabled

Constructor & Destructor Documentation

DtTerrainFeatureDrawer::DtTerrainFeatureDrawer ( )
DtTerrainFeatureDrawer::DtTerrainFeatureDrawer ( const DtTerrainFeatureDrawer )
virtual DtTerrainFeatureDrawer::~DtTerrainFeatureDrawer ( )
virtual

Member Function Documentation

const DtTerrainFeatureDrawer& DtTerrainFeatureDrawer::operator= ( const DtTerrainFeatureDrawer )
virtual void DtTerrainFeatureDrawer::setFeatureDrawOrder ( DtList *  list)
virtual

Sets the feature draw order list in the tdb drawer.

The draw order is a list of lists where the lists are in the order the features should be drawn and each list contains a list of specification indicies

virtual void DtTerrainFeatureDrawer::setFillArealFeatures ( bool  )
virtual
virtual void DtTerrainFeatureDrawer::cleanupFeatureDrawOrderList ( )
virtual

Cleans up memory for local feature draw order list.

static DtTerrainFeatureDrawer* DtTerrainFeatureDrawer::create ( )
static

Reimplemented from DtTerrainPolygonDrawer.

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

Implement this feature to do specific terrain drawing.

Reimplemented from DtTerrainPolygonDrawer.

virtual void DtTerrainFeatureDrawer::drawVectorNetwork ( bool  isGeod,
const DtVectorNetwork *  network,
const DtHomogeneousTransfMatrix &  matrix,
DtHashList *  segmentList,
const DtViewportExtents v,
DtPrimitiveDrawer painter 
)
protectedvirtual

Member Data Documentation

DtList* DtTerrainFeatureDrawer::myFeatureDrawOrderList
protected
bool DtTerrainFeatureDrawer::myFillArealFeatures
protected

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)