VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes
DtMgWrapper Class Reference
Inheritance diagram for DtMgWrapper:
Inheritance graph
[legend]

Public Member Functions

 DtMgWrapper ()
 
virtual ~DtMgWrapper ()
 
virtual bool readDfdFile (DtFilename filename, DtDfadData &data) const
 
virtual DtGdbNodexlateOpenFlightFile (const DtFilename &filename)
 
virtual void setUseFltPath (const DtString &)
 
virtual const DtStringuseFltPath () const
 
- Public Member Functions inherited from DtMgWrapperInterface
 DtMgWrapperInterface ()
 
virtual ~DtMgWrapperInterface ()
 
virtual void setTerrainDatabase (DtTerrainDatabase *terrainDB)
 
DtSurfaceCharacteristicMapsurfaceCharacteristicMap ()
 
const DtSurfaceCharacteristicMapsurfaceCharacteristicMap () const
 
void setSurfaceCharacteristicMap (DtSurfaceCharacteristicMap sMap)
 
void setTerrainInitializer (const DtTerrainInitializer *initializer)
 
void setFlightInitializer (DtFlightTerrainInitializer initializer)
 

Static Public Member Functions

static void initMGAPI ()
 
static void exitMGAPI ()
 

Protected Types

enum  DtFltProjectionType {
  FlatEarth = 0, Trapezoidal, RoundEarth, Lambert,
  UTM, Geocentric, Geodetic
}
 
enum  DtFltVertexCoordinateUnits {
  Meters = 0, Kilometers = 1, Feet = 4, Inches = 5,
  NauticalMiles = 8
}
 
enum  DtFltEarthEllipsoidModel {
  UserDefinedEllipsoid = -1, WGS_1984 = 0, WGS_1972, Bessel,
  Clark, NAD_1927
}
 

Protected Member Functions

virtual void parseFltPathIntoPathTree (const std::string &fltPath, DtFltPathMap *fltPathMap)
 
bool rememberColorFromTextureName (const DtFilename &name, DtColor &color)
 
bool computeColorFromTexture (mgrec *mgdb, int texturePatternNumber, DtColor &color)
 
bool computeAndRememberColorFromTexture (mgrec *mgdb, const DtFilename &tex_name, int texture_pattern_number, DtColor &color)
 
FlightTextureNameToColorListItemlookupAlreadyAveragedColor (const DtFilename &)
 
bool setColorFromTexture (mgrec *mgdb, int texturePatternNumber, DtColor &color)
 
void changeFromUTMToUserDefinedProjection (const DtPoint &v0, DtPoint &result)
 
virtual bool passPathCheck (mgrec *node, const DtFltPathMap &fltPathMap, DtFltPathMap::const_iterator *iter=0)
 
virtual void convertFromSourceToMeters (const DtPoint &in, DtPoint &out)
 
bool processPrimitive (mgrec *mgmesh, DtGroup *parentGroup, unsigned int ithPrimitive)
 
bool processTriangleStrip (mgrec *mgmesh, DtGroup *parentGroup, unsigned int ithPrimitive)
 
DtGdbNodexlate_eFltLod (mgrec *mgdb, mgrec *mglod, const DtFltPathMap &path)
 
DtGdbNodexlate_eFltXref (mgrec *mgdb, mgrec *mgexternalref)
 
DtGdbNodexlate_eFltObject (mgrec *mgdb, mgrec *mgobject, const DtFltPathMap &path)
 
DtGdbNodexlate_eFltGroup (mgrec *mgdb, mgrec *mggroup, const DtFltPathMap &path)
 
DtGdbNodexlate_eFltSwitch (mgrec *mgdb, mgrec *mggroup, const DtFltPathMap &path)
 
DtGdbNodexlate_eFltDof (mgrec *mgdb, mgrec *mggroup, const DtFltPathMap &path)
 
DtGdbNodexlate_eFltHeader (mgrec *mgdb, mgrec *mgheader, const DtFltPathMap &path)
 
DtGdbNodexlate_eFltMesh (mgrec *mgdb, mgrec *mgnode)
 
DtGdbNodexlate_poly (mgrec *mgdb, mgrec *mgpolygon, mgrec *mgv0, mgrec *mgv1, mgrec *mgv2, mgrec *mgv3=0)
 
DtGdbNodexlate_eFltPolygon (mgrec *mgdb, mgrec *mgpolygon)
 
DtGdbNodexlate_eFltIbead (mgrec *mgdb, mgrec *mgpolygon, const DtFltPathMap &)
 
DtGdbNodexlateOpenFlightNode (mgrec *mgdb, mgrec *node, const DtFltPathMap &)
 
DtGdbNodexlate_fltMatrixIfAny (mgrec *m, DtGdbNode *already_translated_m)
 
unsigned int xlateGroupChildrenIfAny (mgrec *mgdb, mgrec *mggroup, DtGroup *&parentGroup, const DtFltPathMap &flightPathMap, unsigned int desiredChildIndex=0)
 
bool importChild (unsigned int childIndex, unsigned int desiredIndex) const
 

Protected Attributes

unsigned char myUnits
 
double myCurrentOffsetX
 
double myCurrentOffsetY
 
double myCurrentOffsetZ
 
DtString myUseFlightPath
 
DtFltPathMap myFlightPath
 
std::map< DtString, intmyErrorSurfaces
 
std::map< DtString, boolmyAlreadyColorWarned
 
- Protected Attributes inherited from DtMgWrapperInterface
DtTerrainDatabasemyTerrainDatabase
 
const DtTerrainInitializermyTerrainInitializer
 
DtSurfaceCharacteristicMap mySurfaceCharacteristicMap
 
DtFlightTerrainInitializer myFlightInitializer
 
double myOriginLatitudeDegrees
 
double myOriginLongitudeDegrees
 
bool myOriginHasBeenRead
 
FlightTextureNameToColorListItemmyAlreadyAveragedTextures
 

Static Protected Attributes

static bool myInitMgApi
 

Member Enumeration Documentation

Enumerator
FlatEarth 
Trapezoidal 
RoundEarth 
Lambert 
UTM 
Geocentric 
Geodetic 
Enumerator
Meters 
Kilometers 
Feet 
Inches 
NauticalMiles 
Enumerator
UserDefinedEllipsoid 
WGS_1984 
WGS_1972 
Bessel 
Clark 
NAD_1927 

Constructor & Destructor Documentation

DtMgWrapper::DtMgWrapper ( )
virtual DtMgWrapper::~DtMgWrapper ( )
virtual

Member Function Documentation

virtual bool DtMgWrapper::readDfdFile ( DtFilename  filename,
DtDfadData data 
) const
virtual

Implements DtMgWrapperInterface.

virtual DtGdbNode* DtMgWrapper::xlateOpenFlightFile ( const DtFilename &  filename)
virtual

Implements DtMgWrapperInterface.

static void DtMgWrapper::initMGAPI ( )
static
static void DtMgWrapper::exitMGAPI ( )
static
virtual void DtMgWrapper::setUseFltPath ( const DtString )
virtual
virtual const DtString& DtMgWrapper::useFltPath ( ) const
virtual
virtual void DtMgWrapper::parseFltPathIntoPathTree ( const std::string &  fltPath,
DtFltPathMap fltPathMap 
)
protectedvirtual
bool DtMgWrapper::rememberColorFromTextureName ( const DtFilename &  name,
DtColor color 
)
protected
bool DtMgWrapper::computeColorFromTexture ( mgrec *  mgdb,
int  texturePatternNumber,
DtColor color 
)
protected
bool DtMgWrapper::computeAndRememberColorFromTexture ( mgrec *  mgdb,
const DtFilename &  tex_name,
int  texture_pattern_number,
DtColor color 
)
protected
FlightTextureNameToColorListItem* DtMgWrapper::lookupAlreadyAveragedColor ( const DtFilename &  )
protected
bool DtMgWrapper::setColorFromTexture ( mgrec *  mgdb,
int  texturePatternNumber,
DtColor color 
)
protected
void DtMgWrapper::changeFromUTMToUserDefinedProjection ( const DtPoint v0,
DtPoint result 
)
protected
virtual bool DtMgWrapper::passPathCheck ( mgrec *  node,
const DtFltPathMap fltPathMap,
DtFltPathMap::const_iterator *  iter = 0 
)
protectedvirtual
virtual void DtMgWrapper::convertFromSourceToMeters ( const DtPoint in,
DtPoint out 
)
protectedvirtual
bool DtMgWrapper::processPrimitive ( mgrec *  mgmesh,
DtGroup parentGroup,
unsigned int  ithPrimitive 
)
protected
bool DtMgWrapper::processTriangleStrip ( mgrec *  mgmesh,
DtGroup parentGroup,
unsigned int  ithPrimitive 
)
protected
DtGdbNode* DtMgWrapper::xlate_eFltLod ( mgrec *  mgdb,
mgrec *  mglod,
const DtFltPathMap path 
)
protected
DtGdbNode* DtMgWrapper::xlate_eFltXref ( mgrec *  mgdb,
mgrec *  mgexternalref 
)
protected
DtGdbNode* DtMgWrapper::xlate_eFltObject ( mgrec *  mgdb,
mgrec *  mgobject,
const DtFltPathMap path 
)
protected
DtGdbNode* DtMgWrapper::xlate_eFltGroup ( mgrec *  mgdb,
mgrec *  mggroup,
const DtFltPathMap path 
)
protected
DtGdbNode* DtMgWrapper::xlate_eFltSwitch ( mgrec *  mgdb,
mgrec *  mggroup,
const DtFltPathMap path 
)
protected
DtGdbNode* DtMgWrapper::xlate_eFltDof ( mgrec *  mgdb,
mgrec *  mggroup,
const DtFltPathMap path 
)
protected
DtGdbNode* DtMgWrapper::xlate_eFltHeader ( mgrec *  mgdb,
mgrec *  mgheader,
const DtFltPathMap path 
)
protected
DtGdbNode* DtMgWrapper::xlate_eFltMesh ( mgrec *  mgdb,
mgrec *  mgnode 
)
protected
DtGdbNode* DtMgWrapper::xlate_poly ( mgrec *  mgdb,
mgrec *  mgpolygon,
mgrec *  mgv0,
mgrec *  mgv1,
mgrec *  mgv2,
mgrec *  mgv3 = 0 
)
protected
DtGdbNode* DtMgWrapper::xlate_eFltPolygon ( mgrec *  mgdb,
mgrec *  mgpolygon 
)
protected
DtGdbNode* DtMgWrapper::xlate_eFltIbead ( mgrec *  mgdb,
mgrec *  mgpolygon,
const DtFltPathMap  
)
protected
DtGdbNode* DtMgWrapper::xlateOpenFlightNode ( mgrec *  mgdb,
mgrec *  node,
const DtFltPathMap  
)
protected
DtGdbNode* DtMgWrapper::xlate_fltMatrixIfAny ( mgrec *  m,
DtGdbNode already_translated_m 
)
protected
unsigned int DtMgWrapper::xlateGroupChildrenIfAny ( mgrec *  mgdb,
mgrec *  mggroup,
DtGroup *&  parentGroup,
const DtFltPathMap flightPathMap,
unsigned int  desiredChildIndex = 0 
)
protected
bool DtMgWrapper::importChild ( unsigned int  childIndex,
unsigned int  desiredIndex 
) const
protected

Member Data Documentation

bool DtMgWrapper::myInitMgApi
staticprotected
unsigned char DtMgWrapper::myUnits
protected
double DtMgWrapper::myCurrentOffsetX
protected
double DtMgWrapper::myCurrentOffsetY
protected
double DtMgWrapper::myCurrentOffsetZ
protected
DtString DtMgWrapper::myUseFlightPath
protected
DtFltPathMap DtMgWrapper::myFlightPath
protected
std::map<DtString, int> DtMgWrapper::myErrorSurfaces
protected
std::map<DtString, bool> DtMgWrapper::myAlreadyColorWarned
protected

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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)