GlsMap Toolkit  1.8.0
disti::GlsMapGrid Class Reference

#include <gls_map_grid.h>

+ Inheritance diagram for disti::GlsMapGrid:

Public Types

enum  EGridReference { GRID_LAT_LON, GRID_UTM, GRID_MGRS, GRID_UTM_SINGLE }
 
typedef DisplayObject BaseClass
 

Public Member Functions

 GlsMapGrid (bool generateInstance=false)
 
virtual ~GlsMapGrid ()
 
virtual void SetAvailableAttributes (unsigned int value)
 
virtual DisplayObject * CloneObject (bool generateNames=false)
 
virtual void CopyProperties (DisplayObject *src)
 
virtual InterfaceListType * GetCppInterfaceDescription (InterfaceListType *addToThisList=NULL)
 
virtual void GetCppInterfaceDescriptionFree (InterfaceListType *array)
 
virtual void PreDraw (const OpenGLMatrices &parentMatrices, Culler &culler)
 
virtual void Draw (void)
 
virtual DisplayObject * Pick3D (const Vector &winLoc, const Vector &logicalCoords, float scale, const Vector &directionVector, Vector &collisionWinLoc, const OpenGLMatrices &drawnMatrices)
 
virtual DisplayObject * handle (DisplayEvent *ev)
 
virtual void SetValue (int spec, va_list &args)
 
GlsMapViewGetMapView ()
 
void SetColor (const glsColor &value)
 
glsColor GetColor ()
 
EGridReference GetGridReference () const
 
void SetDisplayGeoLatLon (double gridLevel)
 
void SetDisplayUTM (double gridScale)
 
void SetDisplayUTM (double gridScale, int zoneNumber, char latitudeBandLetter)
 

Static Public Member Functions

static DisplayObject * CreateInstance ()
 

Protected Member Functions

void DrawGeoLatLon ()
 
void DrawGeoLatLonTransverseMercator ()
 
void DrawUTM ()
 
void DrawUTM (int zone, int latZoneIndex)
 

Protected Attributes

DisplayObject * _defaultPathGeometry
 
EGridReference _referenceSystem
 
double _scale
 
int _UTMdrawZone
 
int _UTMdrawLatBand
 

Friends

class GlsMapGridEditor
 

Constructor & Destructor Documentation

disti::GlsMapGrid::GlsMapGrid ( bool  generateInstance = false)

Create a new GlsMapGrid.

Parameters
generateInstanceWhether or not to generate an instance name for this inputdevice
disti::GlsMapGrid::~GlsMapGrid ( )
virtual

Destructs a GlsMapGrid object

Member Function Documentation

void disti::GlsMapGrid::DrawGeoLatLon ( )
protected

Draw Lat/Lon based grid

EGridReference disti::GlsMapGrid::GetGridReference ( ) const
inline

Get the current grid reference

GlsMapView* disti::GlsMapGrid::GetMapView ( )
inline
Returns
pointer to the GlsMapView that the symbology will use for rendering or NULL if not found.
void disti::GlsMapGrid::SetColor ( const glsColor &  value)

Set the default color for the lines

Parameters
valuecolor of the line in RGBA
void disti::GlsMapGrid::SetDisplayGeoLatLon ( double  gridLevel)

Set Display Geo Lat/Lon

Parameters
gridLevelis from 1.0 arc-seconds to 20.0 degrees
void disti::GlsMapGrid::SetDisplayUTM ( double  gridScale)

Set Display in UTM (Universal Transverse Mercator) with a given grid scale (from 10m to 100,000 m) /param gridScale scale of the grid from 10m to 100,000m

void disti::GlsMapGrid::SetDisplayUTM ( double  gridScale,
int  zoneNumber,
char  latitudeBandLetter 
)

Set Display in UTM (Universal Transverse Mercator) over the specified zone and band with a given grid scale (from 10m to 100,000 m) /param gridScale scale of the grid from 10m to 100,000m /param zoneNumber zone to set the display in from 1 to 60 /param latitudeBandLetter latitude to display


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