VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private Member Functions
DtGeoidDatum Class Reference
+ Collaboration diagram for DtGeoidDatum:

Public Member Functions

 DtGeoidDatum (bool cubic=true, bool threadsafe=false)
 Constructor that creates a DtGeoidDatum using the global default DtGeoidType. More...
 
 DtGeoidDatum (DtGeoidType geoidType, bool cubic=true, bool threadsafe=false)
 Constructor that uses the specified DtGeoidType instead of the global default theGeoidDatumType. More...
 
 DtGeoidDatum (DtString geoidPath, bool cubic=true, bool threadsafe=false)
 Constructor that takes a path and filename to a PGM file. More...
 
 ~DtGeoidDatum ()
 
void initGeoid (DtGeoidType geoidType, DtString geoidPath, bool cubic, bool threadsafe)
 initializes the internal myGeoid variable. Prints warning if initialization is unsuccessful. More...
 
virtual double undulation (double latitude, double longitude)
 returns the difference between the surface of the Geoid and the surface of the WGS84 ellipsoid. More...
 
virtual void cacheArea (double south, double west, double north, double east)
 caches an area of the PGM file for quicker access. The area is a square defined by a 4 points in degrees. More...
 
virtual void cacheAll ()
 caches the entire geoid PGM file. Caution: For higher resolutions this will allocate up to 500MB of memory. More...
 
virtual DtGeoidType geoidType ()
 
virtual DtString geoidPath ()
 
virtual bool cubic ()
 
virtual bool threadsafe ()
 

Protected Attributes

void * myGeoid
 
DtGeoidType myType
 
DtString myGeoidPath
 
bool myCubic
 
bool myThreadSafe
 

Private Member Functions

DtGeoidDatumoperator= (const DtGeoidDatum &src)
 assignment operator More...
 
 DtGeoidDatum (const DtGeoidDatum &src)
 copy constructor More...
 

Constructor & Destructor Documentation

DtGeoidDatum::DtGeoidDatum ( bool  cubic = true,
bool  threadsafe = false 
)

Constructor that creates a DtGeoidDatum using the global default DtGeoidType.

cubic (optional) interpolation method; false means bilinear, true (the default) means cubic. The threadsafe argument will create a threadsafe version of this object if set to true (default is false). Setting threadsafe to true caches the entire PGM file into memory. For higher resolution PGM files this can consume a large amount of memory (i.e DtEGM0801 ~ 500MB)

DtGeoidDatum::DtGeoidDatum ( DtGeoidType  geoidType,
bool  cubic = true,
bool  threadsafe = false 
)

Constructor that uses the specified DtGeoidType instead of the global default theGeoidDatumType.

DtGeoidDatum::DtGeoidDatum ( DtString  geoidPath,
bool  cubic = true,
bool  threadsafe = false 
)

Constructor that takes a path and filename to a PGM file.

DtGeoidDatum::~DtGeoidDatum ( )
DtGeoidDatum::DtGeoidDatum ( const DtGeoidDatum src)
private

copy constructor

Member Function Documentation

virtual void DtGeoidDatum::cacheAll ( )
virtual

caches the entire geoid PGM file. Caution: For higher resolutions this will allocate up to 500MB of memory.

virtual void DtGeoidDatum::cacheArea ( double  south,
double  west,
double  north,
double  east 
)
virtual

caches an area of the PGM file for quicker access. The area is a square defined by a 4 points in degrees.

virtual bool DtGeoidDatum::cubic ( )
virtual
virtual DtString DtGeoidDatum::geoidPath ( )
virtual
virtual DtGeoidType DtGeoidDatum::geoidType ( )
virtual
void DtGeoidDatum::initGeoid ( DtGeoidType  geoidType,
DtString  geoidPath,
bool  cubic,
bool  threadsafe 
)

initializes the internal myGeoid variable. Prints warning if initialization is unsuccessful.

DtGeoidDatum& DtGeoidDatum::operator= ( const DtGeoidDatum src)
private

assignment operator

virtual bool DtGeoidDatum::threadsafe ( )
virtual
virtual double DtGeoidDatum::undulation ( double  latitude,
double  longitude 
)
virtual

returns the difference between the surface of the Geoid and the surface of the WGS84 ellipsoid.

Member Data Documentation

bool DtGeoidDatum::myCubic
protected
void* DtGeoidDatum::myGeoid
protected
DtString DtGeoidDatum::myGeoidPath
protected
bool DtGeoidDatum::myThreadSafe
protected
DtGeoidType DtGeoidDatum::myType
protected

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

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)