![]() |
VR-Forces 4.0.4 Class Documentation
|
This class will draw contour lines on the specified terrain. More...

Public Member Functions | |
| DtTerrainGridLineDrawer () | |
| DtTerrainGridLineDrawer (const DtTerrainGridLineDrawer &) | |
| virtual | ~DtTerrainGridLineDrawer () |
| DtTerrainGridLineDrawer & | operator= (const DtTerrainGridLineDrawer &) |
| Note that both the copy constructor and = operator simply copy the pointer to the coordiate system. | |
| void | setManualGridLineFrequency (double d) |
| double | manualGridLineFrequency () const |
| void | setManualMode (bool) |
| Default is false. Manual mode will draw grid lines at a fixed distance rather than a ratio distance. | |
| bool | manualMode () const |
| void | setGridLineColor (const QColor &) |
| const QColor & | gridLineColor () const |
| void | setGridLineLabelColor (const QColor &) |
| const QColor & | gridLineLabelColor () const |
| void | setCoordinateSystem (const DtCoordinateSystem *) |
| Sets new coordinate system. | |
| const DtCoordinateSystem * | coordinateSystem () const |
| void | setAutoGridLineFrequency (int) |
| int | autoGridLineFrequency () const |
| virtual void | drawGridLines (const DtTerrainDatabase *, const DtViewportExtents *, DtPrimitiveDrawer *painter) |
| Calls internalDraw to draw grid lines. | |
| void | setDrawScale (DtGridLineDrawer::DtScaleType) |
| Set to true to draw a scale line (distance) and where (lower left or lower right). Will not draw grid labels. | |
| DtGridLineDrawer::DtScaleType | drawScale () const |
| virtual double | autoGridLineIncrement (const DtViewportExtents *v, const DtTerrainDatabase *db) const |
| virtual int | coordinateSystemDrawerType () const |
Static Public Member Functions | |
| static DtTerrainGridLineDrawer * | create () |
Protected Member Functions | |
| virtual void | internalDraw (const DtTerrainDatabase *, const DtViewportExtents *, DtPrimitiveDrawer *painter) |
| Implement this feature to do specific terrain drawing. | |
| virtual void | drawManualGridLines (const DtTerrainDatabase *db, const DtViewportExtents *v, DtPrimitiveDrawer *painter) |
| virtual void | drawAutoGridLines (const DtTerrainDatabase *db, const DtViewportExtents *v, DtPrimitiveDrawer *painter) |
| virtual void | drawGridLines (const DtPoint &vp_min_WC, const DtPoint &vp_max_WC, double increment, const DtTerrainDatabase *db, const DtViewportExtents *v, DtPrimitiveDrawer *painter) |
| Default calls myCoordinateSystem->gridLineDrawer()->drawGridLines(...) | |
| virtual void | createCoordinateSystem (const DtTerrainDatabase *) |
| Creates unit coordinate system and adds default converters. | |
| virtual void | cleanupCoordinateSystem () |
Protected Attributes | |
| double | myManualGridLineFrequency |
| bool | myManualMode |
| QColor | myGridLineColor |
| QColor | myGridLineLabelColor |
| int | myAutoGridLineFrequency |
| const DtCoordinateSystem * | myCoordinateSystem |
| This class is used to convert grid line units between meters and other units (km, ft, etc.). | |
| bool | myOwnsCoordinateSystem |
| DtGridLineDrawer::DtScaleType | myScaleLine |
This class will draw contour lines on the specified terrain.
| virtual DtTerrainGridLineDrawer::~DtTerrainGridLineDrawer | ( | ) | [virtual] |
| DtTerrainGridLineDrawer& DtTerrainGridLineDrawer::operator= | ( | const DtTerrainGridLineDrawer & | ) |
Note that both the copy constructor and = operator simply copy the pointer to the coordiate system.
If the object that is passed in has allocated the coordiate system, be aware that if that object deletes it's coordinate system, this will cause the application to exhibit unstable behavior
| void DtTerrainGridLineDrawer::setManualGridLineFrequency | ( | double | d | ) | [inline] |
References myManualGridLineFrequency.
| double DtTerrainGridLineDrawer::manualGridLineFrequency | ( | ) | const [inline] |
References myManualGridLineFrequency.
| void DtTerrainGridLineDrawer::setManualMode | ( | bool | b | ) | [inline] |
Default is false. Manual mode will draw grid lines at a fixed distance rather than a ratio distance.
References myManualMode.
| bool DtTerrainGridLineDrawer::manualMode | ( | ) | const [inline] |
References myManualMode.
| void DtTerrainGridLineDrawer::setGridLineColor | ( | const QColor & | c | ) | [inline] |
References myGridLineColor.
| const QColor & DtTerrainGridLineDrawer::gridLineColor | ( | ) | const [inline] |
References myGridLineColor.
| void DtTerrainGridLineDrawer::setGridLineLabelColor | ( | const QColor & | c | ) | [inline] |
References myGridLineLabelColor.
| const QColor & DtTerrainGridLineDrawer::gridLineLabelColor | ( | ) | const [inline] |
References myGridLineLabelColor.
| void DtTerrainGridLineDrawer::setCoordinateSystem | ( | const DtCoordinateSystem * | ) |
Sets new coordinate system.
If the current coordinate system is owned, will delete it and replace it with the new one
| const DtCoordinateSystem * DtTerrainGridLineDrawer::coordinateSystem | ( | ) | const [inline] |
References myCoordinateSystem.
| void DtTerrainGridLineDrawer::setAutoGridLineFrequency | ( | int | c | ) | [inline] |
References myAutoGridLineFrequency.
| int DtTerrainGridLineDrawer::autoGridLineFrequency | ( | ) | const [inline] |
References myAutoGridLineFrequency.
| static DtTerrainGridLineDrawer* DtTerrainGridLineDrawer::create | ( | ) | [static] |
| virtual void DtTerrainGridLineDrawer::drawGridLines | ( | const DtTerrainDatabase * | , |
| const DtViewportExtents * | , | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [virtual] |
Calls internalDraw to draw grid lines.
Reimplemented in DtFormationGridLineDrawer.
| void DtTerrainGridLineDrawer::setDrawScale | ( | DtGridLineDrawer::DtScaleType | s | ) | [inline] |
Set to true to draw a scale line (distance) and where (lower left or lower right). Will not draw grid labels.
References myScaleLine.
| DtGridLineDrawer::DtScaleType DtTerrainGridLineDrawer::drawScale | ( | ) | const [inline] |
References myScaleLine.
| virtual double DtTerrainGridLineDrawer::autoGridLineIncrement | ( | const DtViewportExtents * | v, |
| const DtTerrainDatabase * | db | ||
| ) | const [virtual] |
Reimplemented in DtFormationGridLineDrawer.
| virtual int DtTerrainGridLineDrawer::coordinateSystemDrawerType | ( | ) | const [virtual] |
| virtual void DtTerrainGridLineDrawer::internalDraw | ( | const DtTerrainDatabase * | , |
| const DtViewportExtents * | , | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [protected, virtual] |
Implement this feature to do specific terrain drawing.
Implements DtTerrainDrawer.
| virtual void DtTerrainGridLineDrawer::drawManualGridLines | ( | const DtTerrainDatabase * | db, |
| const DtViewportExtents * | v, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [protected, virtual] |
| virtual void DtTerrainGridLineDrawer::drawAutoGridLines | ( | const DtTerrainDatabase * | db, |
| const DtViewportExtents * | v, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [protected, virtual] |
| virtual void DtTerrainGridLineDrawer::drawGridLines | ( | const DtPoint & | vp_min_WC, |
| const DtPoint & | vp_max_WC, | ||
| double | increment, | ||
| const DtTerrainDatabase * | db, | ||
| const DtViewportExtents * | v, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [protected, virtual] |
Default calls myCoordinateSystem->gridLineDrawer()->drawGridLines(...)
Reimplemented in DtFormationGridLineDrawer.
| virtual void DtTerrainGridLineDrawer::createCoordinateSystem | ( | const DtTerrainDatabase * | ) | [protected, virtual] |
Creates unit coordinate system and adds default converters.
| virtual void DtTerrainGridLineDrawer::cleanupCoordinateSystem | ( | ) | [protected, virtual] |
double DtTerrainGridLineDrawer::myManualGridLineFrequency [protected] |
Referenced by manualGridLineFrequency(), and setManualGridLineFrequency().
bool DtTerrainGridLineDrawer::myManualMode [protected] |
Referenced by manualMode(), and setManualMode().
QColor DtTerrainGridLineDrawer::myGridLineColor [protected] |
Referenced by gridLineColor(), and setGridLineColor().
QColor DtTerrainGridLineDrawer::myGridLineLabelColor [protected] |
Referenced by gridLineLabelColor(), and setGridLineLabelColor().
int DtTerrainGridLineDrawer::myAutoGridLineFrequency [protected] |
Referenced by autoGridLineFrequency(), and setAutoGridLineFrequency().
const DtCoordinateSystem* DtTerrainGridLineDrawer::myCoordinateSystem [protected] |
This class is used to convert grid line units between meters and other units (km, ft, etc.).
A coordinate system will be created as part of the first time this class is used to draw if no coordinate system exists
Referenced by coordinateSystem().
bool DtTerrainGridLineDrawer::myOwnsCoordinateSystem [protected] |
Referenced by drawScale(), and setDrawScale().