VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Attributes
DtGridLineDrawer Class Reference
Inheritance diagram for DtGridLineDrawer:
Inheritance graph
[legend]

List of all members.

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 DtGridLineDrawerclone ()=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 DtCoordinateSystemmyCoordinateSystem
QColor myGridLineColor
QColor myGridLineLabelColor
DtScaleType myScaleLine

Member Enumeration Documentation

Enumerator:
DtGridScale 
DtScaleLowerLeft 
DtScaleLowerRight 

Constructor & Destructor Documentation

virtual DtGridLineDrawer::~DtGridLineDrawer ( ) [inline, virtual]

Member Function Documentation

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.

Set to true to draw a scale line (distance) and where (lower left or lower right). Will not draw grid labels.

References myScaleLine.

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.


Member Data Documentation

Referenced by gridLineColor(), and setGridLineColor().

Referenced by drawScale(), and setDrawScale().


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)