![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Member Functions | |
| DtTerrainPolygonDrawer () | |
| DtTerrainPolygonDrawer (const DtTerrainPolygonDrawer &) | |
| virtual | ~DtTerrainPolygonDrawer () |
| const DtTerrainPolygonDrawer & | operator= (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. | |
Static Public Member Functions | |
| static DtTerrainPolygonDrawer * | create () |
| 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 | 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 Attributes | |
| bool | myDrawBoundingVolumes |
| QColor | myBoundingVolumesColor |
| DtPolygonColorFcn | myPolygonColorFcn |
| void * | myPolygonColorData |
| virtual DtTerrainPolygonDrawer::~DtTerrainPolygonDrawer | ( | ) | [virtual] |
| const DtTerrainPolygonDrawer& DtTerrainPolygonDrawer::operator= | ( | const DtTerrainPolygonDrawer & | ) |
| void DtTerrainPolygonDrawer::setDrawBoundingVolumes | ( | bool | b | ) | [inline] |
Get/set the flag that determines if bounding volumes are drawn around certain polygonal items. Default is false.
References myDrawBoundingVolumes.
| bool DtTerrainPolygonDrawer::drawBoundingVolumes | ( | ) | const [inline] |
References myDrawBoundingVolumes.
| void DtTerrainPolygonDrawer::setBoundingVolumesColor | ( | const QColor & | c | ) | [inline] |
References myBoundingVolumesColor.
| const QColor & DtTerrainPolygonDrawer::boundingVolumesColor | ( | ) | const [inline] |
References myBoundingVolumesColor.
| void DtTerrainPolygonDrawer::setPolygonColorFcn | ( | DtPolygonColorFcn | fcn, |
| void * | usr | ||
| ) | [inline] |
References myPolygonColorData, and myPolygonColorFcn.
| static DtTerrainPolygonDrawer* DtTerrainPolygonDrawer::create | ( | ) | [static] |
Reimplemented in DtTerrainFeatureDrawer, and DtTerrainWireframeDrawer.
| virtual void DtTerrainPolygonDrawer::drawPolygons | ( | const DtAllTypesPolygon * | polygon, |
| const DtViewportExtents * | v, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [virtual] |
Draws all the polygons referenced by the specified polygon.
| virtual void DtTerrainPolygonDrawer::colorPolygonByHeight | ( | DtAllTypesPolygon & | thePolygon, |
| const DtViewportExtents * | v | ||
| ) | [virtual] |
Sets the polygon color based on height.
| virtual void DtTerrainPolygonDrawer::internalDraw | ( | const DtTerrainDatabase * | , |
| const DtViewportExtents * | , | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [protected, virtual] |
Implement this feature to do specific terrain drawing.
Implements DtTerrainDrawer.
Reimplemented in DtTerrainFeatureDrawer.
| virtual void DtTerrainPolygonDrawer::drawAllNodeTypes | ( | const DtGdbNode * | node, |
| const DtHomogeneousTransfMatrix & | matrix, | ||
| const DtViewportExtents * | v, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [protected, virtual] |
Switches on node type to draw polygons of a specific type.
| virtual void DtTerrainPolygonDrawer::drawGroup | ( | const DtGroup * | group, |
| const DtHomogeneousTransfMatrix & | matrix, | ||
| const DtViewportExtents * | v, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [protected, virtual] |
| virtual void DtTerrainPolygonDrawer::drawLevelOfDetail | ( | const DtLevelOfDetail * | level_of_detail, |
| const DtHomogeneousTransfMatrix & | matrix, | ||
| const DtViewportExtents * | v, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [protected, virtual] |
| virtual void DtTerrainPolygonDrawer::drawCoordinateSystem | ( | const DtBaseCoordinateSystem * | cs, |
| const DtHomogeneousTransfMatrix & | matrix, | ||
| const DtViewportExtents * | v, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [protected, virtual] |
| virtual void DtTerrainPolygonDrawer::drawFeature | ( | const DtFeature * | moddef, |
| const DtHomogeneousTransfMatrix & | matrix, | ||
| const DtViewportExtents * | v, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [protected, virtual] |
| virtual void DtTerrainPolygonDrawer::drawFileNode | ( | const DtFileNode * | fileNode, |
| const DtHomogeneousTransfMatrix & | matrix, | ||
| const DtViewportExtents * | v, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [protected, virtual] |
| virtual void DtTerrainPolygonDrawer::drawPolygon | ( | const DtAllTypesPolygon * | polygon, |
| const DtHomogeneousTransfMatrix & | matrix, | ||
| const DtViewportExtents * | v, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [protected, virtual] |
Reimplemented in DtTerrainWireframeDrawer.
| virtual QColor DtTerrainPolygonDrawer::polygonColor | ( | const DtAllTypesPolygon * | , |
| const DtViewportExtents * | v | ||
| ) | [protected, virtual] |
Call down to set polygon color static callback to get color.
| static QColor DtTerrainPolygonDrawer::polygonSurfaceColor | ( | const DtAllTypesPolygon * | , |
| const DtViewportExtents * | v, | ||
| void * | usr | ||
| ) | [static] |
| static QColor DtTerrainPolygonDrawer::polygonSoilTypeColor | ( | const DtAllTypesPolygon * | , |
| const DtViewportExtents * | v, | ||
| void * | usr | ||
| ) | [static] |
| static QColor DtTerrainPolygonDrawer::polygonTerrainShadingSurfaceColor | ( | const DtAllTypesPolygon * | , |
| const DtViewportExtents * | v, | ||
| void * | usr | ||
| ) | [static] |
| static QColor DtTerrainPolygonDrawer::polygonTerrainShadingSoilTypeColor | ( | const DtAllTypesPolygon * | , |
| const DtViewportExtents * | v, | ||
| void * | usr | ||
| ) | [static] |
| static QColor DtTerrainPolygonDrawer::polygonTerrainShadingFromColor | ( | const DtAllTypesPolygon * | p, |
| const QColor & | baseColor, | ||
| const DtViewportExtents * | v | ||
| ) | [static] |
bool DtTerrainPolygonDrawer::myDrawBoundingVolumes [protected] |
Referenced by drawBoundingVolumes(), and setDrawBoundingVolumes().
QColor DtTerrainPolygonDrawer::myBoundingVolumesColor [protected] |
Referenced by boundingVolumesColor(), and setBoundingVolumesColor().
Referenced by setPolygonColorFcn().
void* DtTerrainPolygonDrawer::myPolygonColorData [protected] |
Referenced by setPolygonColorFcn().