VR-Forces 4.1 Class Documentation
List of all members | Public Types | Public Member Functions | Protected Attributes
DtGridLineDrawer Class Reference
Inheritance diagram for DtGridLineDrawer:
Inheritance graph
[legend]

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

DtGridLineDrawer::DtGridLineDrawer ( const DtCoordinateSystem c)
inline
DtGridLineDrawer::DtGridLineDrawer ( const DtGridLineDrawer orig)
inline
virtual DtGridLineDrawer::~DtGridLineDrawer ( )
inlinevirtual

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.

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.

Member Data Documentation

const DtCoordinateSystem* DtGridLineDrawer::myCoordinateSystem
protected
QColor DtGridLineDrawer::myGridLineColor
protected

Referenced by gridLineColor(), and setGridLineColor().

QColor DtGridLineDrawer::myGridLineLabelColor
protected
DtScaleType DtGridLineDrawer::myScaleLine
protected

Referenced by drawScale(), and setDrawScale().


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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)