12 #ifndef TERRAINPOLYGONDRAWER_H
13 #define TERRAINPOLYGONDRAWER_H
18 #include <QtGui/QColor>
22 class DtHomogeneousTransfMatrix;
23 class DtLevelOfDetail;
24 class DtBaseCoordinateSystem;
27 class DtAllTypesPolygon;
48 void setDrawBoundingVolumes(
bool);
49 bool drawBoundingVolumes()
const;
51 void setBoundingVolumesColor(
const QColor&);
52 const QColor& boundingVolumesColor()
const;
59 virtual void drawPolygons(
const DtAllTypesPolygon *polygon,
63 virtual void colorPolygonByHeight(DtAllTypesPolygon& thePolygon,
const DtViewportExtents* v);
70 virtual void drawAllNodeTypes(
const DtGdbNode* node,
73 virtual void drawGroup(
const DtGroup *group,
76 virtual void drawLevelOfDetail(
const DtLevelOfDetail *level_of_detail,
79 virtual void drawCoordinateSystem(
const DtBaseCoordinateSystem *cs,
82 virtual void drawFeature(
const DtFeature *moddef,
85 virtual void drawFileNode(
const DtFileNode* fileNode,
88 virtual void drawPolygon(
const DtAllTypesPolygon *polygon,
93 virtual QColor polygonColor(
const DtAllTypesPolygon*,
const DtViewportExtents* v);
96 static QColor polygonSurfaceColor(
const DtAllTypesPolygon*,
const DtViewportExtents* v,
void* usr);
97 static QColor polygonSoilTypeColor(
const DtAllTypesPolygon*,
const DtViewportExtents* v,
void* usr);
98 static QColor polygonTerrainShadingSurfaceColor(
const DtAllTypesPolygon*,
const DtViewportExtents* v,
void* usr);
99 static QColor polygonTerrainShadingSoilTypeColor(
const DtAllTypesPolygon*,
const DtViewportExtents* v,
void* usr);
100 static QColor polygonTerrainShadingFromColor(
const DtAllTypesPolygon* p,
const QColor& baseColor,
const DtViewportExtents* v);