VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions
DtUtmGridLineDrawer Class Reference

This class will draw UTM grid lines as defined by the current database (labels only) More...

Inheritance diagram for DtUtmGridLineDrawer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtUtmGridLineDrawer (const DtCoordinateSystem *)
 DtUtmGridLineDrawer (const DtUtmGridLineDrawer &)
virtual ~DtUtmGridLineDrawer ()
virtual DtGridLineDrawerclone ()
 Pure virtuals that need to be implemented in order to be a grid line drawer.

Protected Member Functions

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 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.

Detailed Description

This class will draw UTM grid lines as defined by the current database (labels only)


Constructor & Destructor Documentation


Member Function Documentation

Pure virtuals that need to be implemented in order to be a grid line drawer.

Reimplemented from DtDatabaseGridLineDrawer.

virtual QString DtUtmGridLineDrawer::labelForHorizLine ( const DtPoint val,
double  increment,
const DtTerrainDatabase db 
) [protected, virtual]

Override to provide different labels for the vertical or horizontal grid lines.

The "buf" variable should contain the label the be displayed

Reimplemented from DtDatabaseGridLineDrawer.

virtual QString DtUtmGridLineDrawer::labelForVertiLine ( const DtPoint val,
double  increment,
const DtTerrainDatabase db 
) [protected, virtual]

Since horizontal and vertical labels are the same, default implementation calls labelForHorizLine.

Reimplemented from DtDatabaseGridLineDrawer.

virtual int DtUtmGridLineDrawer::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.

Reimplemented from DtDatabaseGridLineDrawer.


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)