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

Public Types | |
| enum | DtScaleType { DtGridScale = 0, DtScaleLowerLeft = 1, DtScaleLowerRight = 2 } |
Public Member Functions | |
| DtGridLineDrawer (const DtCoordinateSystem *c) | |
| DtGridLineDrawer (const DtGridLineDrawer &orig) | |
| virtual | ~DtGridLineDrawer () |
| void | setGridLineColor (const QColor &) |
| const QColor & | gridLineColor () const |
| void | setGridLineLabelColor (const QColor &) |
| const QColor & | gridLineLabelColor () const |
| 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 void | drawGridLines (const DtPoint &vp_min_WC, const DtPoint &vp_max_WC, double increment, const DtTerrainDatabase *db, const DtViewportExtents *v, DtPrimitiveDrawer *painter)=0 |
| Override to draw grid lines. | |
| virtual DtGridLineDrawer * | clone ()=0 |
| Pure virtuals that need to be implemented in order to be a grid line drawer. | |
| virtual int | type () const =0 |
| This is only to try and identify one grid line drawer from another to prevent unnecessary terrain redraw as a coordinate system choice changes. | |
Protected Attributes | |
| const DtCoordinateSystem * | myCoordinateSystem |
| QColor | myGridLineColor |
| QColor | myGridLineLabelColor |
| DtScaleType | myScaleLine |
| DtGridLineDrawer::DtGridLineDrawer | ( | const DtCoordinateSystem * | c | ) | [inline] |
| DtGridLineDrawer::DtGridLineDrawer | ( | const DtGridLineDrawer & | orig | ) | [inline] |
| virtual DtGridLineDrawer::~DtGridLineDrawer | ( | ) | [inline, virtual] |
| void DtGridLineDrawer::setGridLineColor | ( | const QColor & | c | ) | [inline] |
References myGridLineColor.
| const QColor & DtGridLineDrawer::gridLineColor | ( | ) | const [inline] |
References myGridLineColor.
| void DtGridLineDrawer::setGridLineLabelColor | ( | const QColor & | c | ) | [inline] |
References myGridLineLabelColor.
| const QColor & DtGridLineDrawer::gridLineLabelColor | ( | ) | const [inline] |
References myGridLineLabelColor.
| void DtGridLineDrawer::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 DtGridLineDrawer::drawScale | ( | ) | const [inline] |
References myScaleLine.
| virtual void DtGridLineDrawer::drawGridLines | ( | const DtPoint & | vp_min_WC, |
| const DtPoint & | vp_max_WC, | ||
| double | increment, | ||
| const DtTerrainDatabase * | db, | ||
| const DtViewportExtents * | v, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [pure virtual] |
Override to draw grid lines.
Implemented in DtDatabaseGridLineDrawer.
| virtual DtGridLineDrawer* DtGridLineDrawer::clone | ( | ) | [pure virtual] |
Pure virtuals that need to be implemented in order to be a grid line drawer.
Implemented in DtDatabaseGridLineDrawer, and DtUtmGridLineDrawer.
| virtual int DtGridLineDrawer::type | ( | ) | const [pure virtual] |
This is only to try and identify one grid line drawer from another to prevent unnecessary terrain redraw as a coordinate system choice changes.
Implemented in DtDatabaseGridLineDrawer, and DtUtmGridLineDrawer.
const DtCoordinateSystem* DtGridLineDrawer::myCoordinateSystem [protected] |
QColor DtGridLineDrawer::myGridLineColor [protected] |
Referenced by gridLineColor(), and setGridLineColor().
QColor DtGridLineDrawer::myGridLineLabelColor [protected] |
Referenced by gridLineLabelColor(), and setGridLineLabelColor().
DtScaleType DtGridLineDrawer::myScaleLine [protected] |
Referenced by drawScale(), and setDrawScale().