VR-Forces 4.0.4 Class Documentation
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]

List of all members.

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

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, int > myErrorSurfaces
std::map< DtString, boolmyAlreadyColorWarned

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

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 
) [protected, virtual]
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]
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 
) [protected, virtual]
virtual void DtMgWrapper::convertFromSourceToMeters ( const DtPoint in,
DtPoint out 
) [protected, virtual]
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 [static, protected]
unsigned char DtMgWrapper::myUnits [protected]
double DtMgWrapper::myCurrentOffsetX [protected]
double DtMgWrapper::myCurrentOffsetY [protected]
double DtMgWrapper::myCurrentOffsetZ [protected]
std::map<DtString, int> DtMgWrapper::myErrorSurfaces [protected]

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)