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

Public Member Functions | |
| DtFormationGridLineDrawer () | |
| virtual DtPoint | closestGridPointTo (const DtPoint &) const |
| virtual QRectF | rectThatContainsPoint (const DtPoint &) const |
| void | setScaleFactor (double) |
| double | scaleFactor () const |
| virtual void | drawGridLines (const DtTerrainDatabase *, const DtViewportExtents *, DtPrimitiveDrawer *painter) |
| Calls internalDraw to draw grid lines. | |
Public Member Functions inherited from DtTerrainGridLineDrawer | |
| 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 |
| 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 int | coordinateSystemDrawerType () const |
Public Member Functions inherited from DtTerrainDrawer | |
| DtTerrainDrawer () | |
| DtTerrainDrawer (const DtTerrainDrawer &) | |
| virtual | ~DtTerrainDrawer () |
| DtTerrainDrawer & | operator= (const DtTerrainDrawer &) |
| virtual void | draw (const DtTerrainDatabase *, const DtViewportExtents *, DtPrimitiveDrawer *painter) |
| Call in order to draw the particular aspect of the terrain on the supplied painter. | |
| void | setDrawingEnabled (bool) |
| Get/set the drawingEnabled flag. | |
| bool | drawingEnabled () const |
Protected Member Functions | |
| 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 double | autoGridLineIncrement (const DtViewportExtents *v, const DtTerrainDatabase *db) const |
Protected Member Functions inherited from DtTerrainGridLineDrawer | |
| 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 | createCoordinateSystem (const DtTerrainDatabase *) |
| Creates unit coordinate system and adds default converters. | |
| virtual void | cleanupCoordinateSystem () |
Protected Member Functions inherited from DtTerrainDrawer | |
| virtual void | drawExtent (const DtExtent &extent, const DtHomogeneousTransfMatrix &mtx, const DtViewportExtents *v, DtPrimitiveDrawer *painter) |
| Drawing routines. | |
| virtual void | drawFilledPoly (const DtAllTypesPolygon *polygon, const DtHomogeneousTransfMatrix &mtx, const DtViewportExtents *v, DtPrimitiveDrawer *painter) |
| virtual void | drawLine (const DtPoint &gdp0, const DtPoint &gdp1, const DtViewportExtents *view, DtPrimitiveDrawer *painter) |
| virtual void | drawWireframePoly (const DtAllTypesPolygon *polygon, const DtHomogeneousTransfMatrix &mtx, const DtViewportExtents *v, DtPrimitiveDrawer *painter) |
Protected Attributes | |
| double | myIncrement |
| double | myScaleFactor |
| DtPoint | myMin |
| DtPoint | myMax |
Protected Attributes inherited from DtTerrainGridLineDrawer | |
| 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 |
Protected Attributes inherited from DtTerrainDrawer | |
| bool | myDrawingEnabled |
Additional Inherited Members | |
Static Public Member Functions inherited from DtTerrainGridLineDrawer | |
| static DtTerrainGridLineDrawer * | create () |
| DtFormationGridLineDrawer::DtFormationGridLineDrawer | ( | ) |
|
virtual |
|
inline |
References myScaleFactor.
|
inline |
References myScaleFactor.
|
virtual |
Calls internalDraw to draw grid lines.
Reimplemented from DtTerrainGridLineDrawer.
|
protectedvirtual |
Default calls myCoordinateSystem->gridLineDrawer()->drawGridLines(...)
Reimplemented from DtTerrainGridLineDrawer.
|
protectedvirtual |
Reimplemented from DtTerrainGridLineDrawer.
|
protected |
|
protected |
Referenced by scaleFactor(), and setScaleFactor().
|
protected |
|
protected |