![]() |
VR-Forces 4.0.4 Class Documentation
|
This class will draw grid lines as defined by the current database. More...

Public Member Functions | |
| DtDatabaseGridLineDrawer (const DtCoordinateSystem *) | |
| DtDatabaseGridLineDrawer (const DtDatabaseGridLineDrawer &) | |
| virtual | ~DtDatabaseGridLineDrawer () |
| virtual void | drawGridLines (const DtPoint &vp_min_WC, const DtPoint &vp_max_WC, double increment, const DtTerrainDatabase *db, const DtViewportExtents *v, DtPrimitiveDrawer *painter) |
| Draws horizontal and vertical grid lines. | |
| virtual DtGridLineDrawer * | clone () |
| Pure virtuals that need to be implemented in order to be a grid line drawer. | |
Protected Member Functions | |
| virtual void | drawLine (const DtPoint &gdp0, const DtPoint &gdp1, const DtViewportExtents *view, DtPrimitiveDrawer *painter) |
| virtual void | drawVertiGridLines (const DtPoint &vp_min_WC, const DtPoint &vp_max_WC, double increment, const DtTerrainDatabase *db, const DtViewportExtents *v, DtPrimitiveDrawer *painter) |
| virtual void | drawHorizGridLines (const DtPoint &vp_min_WC, const DtPoint &vp_max_WC, double increment, const DtTerrainDatabase *db, const DtViewportExtents *v, DtPrimitiveDrawer *painter) |
| virtual QString | labelForHorizLine (const DtPoint &val, double increment, const DtTerrainDatabase *db) |
| Override to provide different labels for the vertical or horizontal grid lines. | |
| virtual QString | labelForVertiLine (const DtPoint &val, double increment, const DtTerrainDatabase *db) |
| Since horizontal and vertical labels are the same, default implementation calls labelForHorizLine. | |
| virtual void | drawScaleLine (const DtPoint &vp_min_WC, const DtPoint &vp_max_WC, double increment, const DtTerrainDatabase *db, const DtViewportExtents *v, DtPrimitiveDrawer *painter) |
| virtual int | type () const |
| This is only to try and identify one grid line drawer from another to prevent unnecessary terrain redraw as a coordinate system choice changes. | |
| virtual QString | labelForLine (double val, double increment, const DtTerrainDatabase *db) |
This class will draw grid lines as defined by the current database.
| virtual DtDatabaseGridLineDrawer::~DtDatabaseGridLineDrawer | ( | ) | [virtual] |
| virtual void DtDatabaseGridLineDrawer::drawGridLines | ( | const DtPoint & | vp_min_WC, |
| const DtPoint & | vp_max_WC, | ||
| double | increment, | ||
| const DtTerrainDatabase * | db, | ||
| const DtViewportExtents * | v, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [virtual] |
Draws horizontal and vertical grid lines.
Implements DtGridLineDrawer.
| virtual DtGridLineDrawer* DtDatabaseGridLineDrawer::clone | ( | ) | [virtual] |
Pure virtuals that need to be implemented in order to be a grid line drawer.
Implements DtGridLineDrawer.
Reimplemented in DtUtmGridLineDrawer.
| virtual void DtDatabaseGridLineDrawer::drawLine | ( | const DtPoint & | gdp0, |
| const DtPoint & | gdp1, | ||
| const DtViewportExtents * | view, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [protected, virtual] |
| virtual void DtDatabaseGridLineDrawer::drawVertiGridLines | ( | const DtPoint & | vp_min_WC, |
| const DtPoint & | vp_max_WC, | ||
| double | increment, | ||
| const DtTerrainDatabase * | db, | ||
| const DtViewportExtents * | v, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [protected, virtual] |
| virtual void DtDatabaseGridLineDrawer::drawHorizGridLines | ( | const DtPoint & | vp_min_WC, |
| const DtPoint & | vp_max_WC, | ||
| double | increment, | ||
| const DtTerrainDatabase * | db, | ||
| const DtViewportExtents * | v, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [protected, virtual] |
| virtual QString DtDatabaseGridLineDrawer::labelForHorizLine | ( | const DtPoint & | val, |
| double | increment, | ||
| const DtTerrainDatabase * | db | ||
| ) | [protected, virtual] |
Override to provide different labels for the vertical or horizontal grid lines.
Reimplemented in DtUtmGridLineDrawer.
| virtual QString DtDatabaseGridLineDrawer::labelForVertiLine | ( | const DtPoint & | val, |
| double | increment, | ||
| const DtTerrainDatabase * | db | ||
| ) | [protected, virtual] |
Since horizontal and vertical labels are the same, default implementation calls labelForHorizLine.
Reimplemented in DtUtmGridLineDrawer.
| virtual void DtDatabaseGridLineDrawer::drawScaleLine | ( | const DtPoint & | vp_min_WC, |
| const DtPoint & | vp_max_WC, | ||
| double | increment, | ||
| const DtTerrainDatabase * | db, | ||
| const DtViewportExtents * | v, | ||
| DtPrimitiveDrawer * | painter | ||
| ) | [protected, virtual] |
| virtual int DtDatabaseGridLineDrawer::type | ( | ) | const [protected, 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.
Implements DtGridLineDrawer.
Reimplemented in DtUtmGridLineDrawer.
| virtual QString DtDatabaseGridLineDrawer::labelForLine | ( | double | val, |
| double | increment, | ||
| const DtTerrainDatabase * | db | ||
| ) | [protected, virtual] |