VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes
makVrv::DtMetaFlightDescription Class Reference

A representation of a meta-flight terrain. More...

Classes

struct  StringOrInt

Public Types

typedef std::map< std::string,
StringOrInt
PatternMap

Public Member Functions

 DtMetaFlightDescription ()
 CTOR, create an empty meta flight description.
 ~DtMetaFlightDescription ()
 DTOR.
void getPaths (std::vector< std::string > &paths)
 Get any database paths to search for file contents.
void parse (DtMetaFlightParser &parser)
 Initialize the description using a parser.
unsigned int numberOfGeometryDatasets () const
 Get the number of geometry datasets.
const std::string & geometryDatasetName (int index) const
 Get the geometry grid level switch in distance.
const
DtMetaFlightTypes::Position2D
geometryDatasetOrigin (const std::string &dsName) const
 Get the x coordinate extent of a geometry dataset.
const
DtMetaFlightTypes::Position2D
geometryDatasetExtent (const std::string &dsName) const
 Get the extent of a geometry dataset.
const double geometryDatasetRadius (const std::string &dsName) const
 Get the radius of a geometry dataset.
const std::string & geometryDatasetName (const std::string &dsName) const
 Get the geometry dataset name, the dsName may have a different name member.
const std::string & geometryDatasetTitle (const std::string &dsName) const
 Get the geometry dataset title.
const std::string & geometryDatasetFileFormat (const std::string &dsName) const
 Get the geometry dataset file format string.
DtMetaFlightTypes::CoordSysTypeSP geometryDatasetDataCoordinateSystem (const std::string &dsName) const
 Get the coordinate system for the dataset data files.
const std::string & geometryDatasetFileNamePattern (const std::string &dsName) const
 Set the geometry dataset file name pattern string.
DtMetaFlightTypes::CoordSysTypeSP geometryDatasetGridCoordinateSystem (const std::string &dsName) const
 Get the coordinate system for the dataset's grid.
const
DtMetaFlightTypes::HierarchyType
geometryDatasetGridHierarchyType (const std::string &dsName) const
 Get the coordinate system for the dataset's grid.
unsigned int numberOfGeometryGridLevels (const std::string &dsName) const
 Get the number of geometry levels for a dataset.
const std::string & geometryGridLevelName (const std::string &dsName, int index) const
 Get the geometry grid level switch in distance.
DtMetaFlightTypes::TileType geometryGridLevelTileType (const std::string &dsName, int index) const
 Get the geometry grid level tile type.
unsigned int geometryGridLevelColumns (const std::string &dsName, int index) const
 Get the total number of columns on a grid level.
unsigned int geometryGridLevelColDivisions (const std::string &dsName, int index) const
 Get the number of divisions on the level.
unsigned int geometryGridLevelRows (const std::string &dsName, int index) const
 Get the total number of columns on a grid level.
unsigned int geometryGridLevelRowDivisions (const std::string &dsName, int index) const
 Get the number of divisions on the level.
double geometryGridLevelSwitchIn (const std::string &dsName, int index) const
 Get the geometry grid level switch in distance.
double geometryGridLevelSwitchOut (const std::string &dsName, int index) const
 Get the geometry grid level switch out distance.
void geometryGridTileCenter (const std::string &dsName, unsigned int level, unsigned int row, unsigned int column, double &centerX, double &centerY, double &centerZ) const
 Get the geometry grid tile center position.
void geometryGridTileOffset (const std::string &dsName, unsigned int level, unsigned int row, unsigned int column, double &offsetX, double &offsetY, double &offsetZ) const
 Get the geometry grid tile offset.
std::string generateGeometryGridTileFilename (const std::string &dsName, int index, unsigned int row, unsigned int column)
 Generate the filename for a geometry grid tile.
unsigned int numberOfVirtualTextureDatasets () const
 Get the number of geometry datasets.
const std::string & virtualTextureDatasetName (int index) const
 Get the geometry grid level switch in distance.
DtMetaFlightTypes::CoordSysTypeSP virtualTextureCoordinateSystem (const std::string &dsName) const
 Get the coordinate system for the virtual textures.
DtMetaFlightTypes::Position2D virtualTextureDatasetOrigin (const std::string &dsName) const
 Get the extent of a geometry dataset.
DtMetaFlightTypes::Position2D virtualTextureDatasetOrigin (const std::string &dsName, const DtMetaFlightTypes::CoordSysTypeSP &system) const
 Get the extent of a geometry dataset in a desired coordinate system.
DtMetaFlightTypes::Position2D virtualTextureDatasetExtent (const std::string &dsName) const
 Get the extent of a geometry dataset.
DtMetaFlightTypes::Position2D virtualTextureDatasetExtent (const std::string &dsName, const DtMetaFlightTypes::CoordSysTypeSP &system) const
 Get the extent of a geometry dataset.
const std::string & virtualTextureDatasetTitle (const std::string &dsName) const
 Get the geometry dataset title.
const std::string & virtualTextureDatasetFileFormat (const std::string &dsName) const
 Get the geometry dataset file format string.
const std::string & virtualTextureDatasetFileNamePattern (const std::string &dsName) const
 Set the geometry dataset file name pattern string.
unsigned int virtualTextureDatasetTileTexels (const std::string &dsName) const
 Get the number of texels per tile.
const std::string & virtualTextureDatasetSubstitutionTextureName (const std::string &dsName) const
 Get the name of the substitution texture.
unsigned int numberOfVirtualTextureGridLevels (const std::string &dsName) const
 Get the number of geometry levels for a dataset.
const std::string & virtualTextureGridLevelName (const std::string &dsName, int index) const
 Get the geometry grid level switch in distance.
unsigned int virtualTextureGridLevelColumns (const std::string &dsName, int index) const
 Get the total number of columns on a grid level.
unsigned int virtualTextureGridLevelColDivisions (const std::string &dsName, int index) const
 Get the number of divisions on the level.
unsigned int virtualTextureGridLevelRows (const std::string &dsName, int index) const
 Get the total number of columns on a grid level.
unsigned int virtualTextureGridLevelRowDivisions (const std::string &dsName, int index) const
 Get the number of divisions on the level.
std::string generateVirtualTextureFileName (const std::string &dsName, int index, unsigned int row, unsigned int column) const
 Generate the filename for a virtual texture filename.
const std::string & virtualTexturePath () const
 Get the root path for the virtual textures.
const DtMetaFlightTypes::Databasedatabase () const
 Get the database object.

Static Public Member Functions

static void convertPosition (DtMetaFlightTypes::CoordSysTypeSP sourceCoordSystem, DtMetaFlightTypes::CoordSysTypeSP destCoordSystem, double &centerX, double &centerY, double &centerZ)
 Utility Function for converting a position from one coordinate system to another.
static std::string generateFileName (const std::string &filenamePattern, const PatternMap &patternMap)

Static Protected Member Functions

static void setLonDtDegMinSecFromDegrees (DtDegMinSec &dmslon, double deg)
static void setDtDegMinSecFromDegrees (DtDegMinSec &dms, double deg)
static void setLatDtDegMinSecFromDegrees (DtDegMinSec &dmslat, double deg)

Protected Attributes

std::string myFilePath
std::string myDirOfFilePath
std::string myVtFilePath
std::string myDirOfVtFilePath
DtMetaFlightTypes::DatabasemyDatabase

Detailed Description

A representation of a meta-flight terrain.

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtMetaFlightDescription::DtMetaFlightDescription ( )

CTOR, create an empty meta flight description.

makVrv::DtMetaFlightDescription::~DtMetaFlightDescription ( )

DTOR.

Member Function Documentation

void makVrv::DtMetaFlightDescription::getPaths ( std::vector< std::string > &  paths)

Get any database paths to search for file contents.

void makVrv::DtMetaFlightDescription::parse ( DtMetaFlightParser parser)

Initialize the description using a parser.

unsigned int makVrv::DtMetaFlightDescription::numberOfGeometryDatasets ( ) const

Get the number of geometry datasets.

const std::string& makVrv::DtMetaFlightDescription::geometryDatasetName ( int  index) const

Get the geometry grid level switch in distance.

Exceptions
DtInvalidInputif the index is invalid.
const DtMetaFlightTypes::Position2D& makVrv::DtMetaFlightDescription::geometryDatasetOrigin ( const std::string &  dsName) const

Get the x coordinate extent of a geometry dataset.

const DtMetaFlightTypes::Position2D& makVrv::DtMetaFlightDescription::geometryDatasetExtent ( const std::string &  dsName) const

Get the extent of a geometry dataset.

const double makVrv::DtMetaFlightDescription::geometryDatasetRadius ( const std::string &  dsName) const

Get the radius of a geometry dataset.

This is the length of half the extent converted into meters.

const std::string& makVrv::DtMetaFlightDescription::geometryDatasetName ( const std::string &  dsName) const

Get the geometry dataset name, the dsName may have a different name member.

Exceptions
DtInvalidInputif the dataset name is invalid.
const std::string& makVrv::DtMetaFlightDescription::geometryDatasetTitle ( const std::string &  dsName) const

Get the geometry dataset title.

Exceptions
DtInvalidInputif the dataset name is invalid.
const std::string& makVrv::DtMetaFlightDescription::geometryDatasetFileFormat ( const std::string &  dsName) const

Get the geometry dataset file format string.

Exceptions
DtInvalidInputif the dataset name is invalid.
DtMetaFlightTypes::CoordSysTypeSP makVrv::DtMetaFlightDescription::geometryDatasetDataCoordinateSystem ( const std::string &  dsName) const

Get the coordinate system for the dataset data files.

const std::string& makVrv::DtMetaFlightDescription::geometryDatasetFileNamePattern ( const std::string &  dsName) const

Set the geometry dataset file name pattern string.

Exceptions
DtInvalidInputif the dataset name is invalid.
DtMetaFlightTypes::CoordSysTypeSP makVrv::DtMetaFlightDescription::geometryDatasetGridCoordinateSystem ( const std::string &  dsName) const

Get the coordinate system for the dataset's grid.

const DtMetaFlightTypes::HierarchyType& makVrv::DtMetaFlightDescription::geometryDatasetGridHierarchyType ( const std::string &  dsName) const

Get the coordinate system for the dataset's grid.

unsigned int makVrv::DtMetaFlightDescription::numberOfGeometryGridLevels ( const std::string &  dsName) const

Get the number of geometry levels for a dataset.

Exceptions
DtInvalidInputif the dataset name is invalid.
const std::string& makVrv::DtMetaFlightDescription::geometryGridLevelName ( const std::string &  dsName,
int  index 
) const

Get the geometry grid level switch in distance.

Exceptions
DtInvalidInputif the dataset name or index are invalid.
DtMetaFlightTypes::TileType makVrv::DtMetaFlightDescription::geometryGridLevelTileType ( const std::string &  dsName,
int  index 
) const

Get the geometry grid level tile type.

Exceptions
DtInvalidInputif the dataset name or index are invalid.
unsigned int makVrv::DtMetaFlightDescription::geometryGridLevelColumns ( const std::string &  dsName,
int  index 
) const

Get the total number of columns on a grid level.

unsigned int makVrv::DtMetaFlightDescription::geometryGridLevelColDivisions ( const std::string &  dsName,
int  index 
) const

Get the number of divisions on the level.

The division the ratio of tiles on the level compared to the level before it.

unsigned int makVrv::DtMetaFlightDescription::geometryGridLevelRows ( const std::string &  dsName,
int  index 
) const

Get the total number of columns on a grid level.

unsigned int makVrv::DtMetaFlightDescription::geometryGridLevelRowDivisions ( const std::string &  dsName,
int  index 
) const

Get the number of divisions on the level.

The division the ratio of tiles on the level compared to the level before it.

double makVrv::DtMetaFlightDescription::geometryGridLevelSwitchIn ( const std::string &  dsName,
int  index 
) const

Get the geometry grid level switch in distance.

Exceptions
DtInvalidInputif the dataset name or index are invalid.
double makVrv::DtMetaFlightDescription::geometryGridLevelSwitchOut ( const std::string &  dsName,
int  index 
) const

Get the geometry grid level switch out distance.

Exceptions
DtInvalidInputif the dataset name or index are invalid.
void makVrv::DtMetaFlightDescription::geometryGridTileCenter ( const std::string &  dsName,
unsigned int  level,
unsigned int  row,
unsigned int  column,
double &  centerX,
double &  centerY,
double &  centerZ 
) const

Get the geometry grid tile center position.

Exceptions
DtInvalidInputif the dataset name ,index row or column are invalid.
static void makVrv::DtMetaFlightDescription::convertPosition ( DtMetaFlightTypes::CoordSysTypeSP  sourceCoordSystem,
DtMetaFlightTypes::CoordSysTypeSP  destCoordSystem,
double &  centerX,
double &  centerY,
double &  centerZ 
)
static

Utility Function for converting a position from one coordinate system to another.

void makVrv::DtMetaFlightDescription::geometryGridTileOffset ( const std::string &  dsName,
unsigned int  level,
unsigned int  row,
unsigned int  column,
double &  offsetX,
double &  offsetY,
double &  offsetZ 
) const

Get the geometry grid tile offset.

Exceptions
DtInvalidInputif the dataset name ,index row or column are invalid.
std::string makVrv::DtMetaFlightDescription::generateGeometryGridTileFilename ( const std::string &  dsName,
int  index,
unsigned int  row,
unsigned int  column 
)

Generate the filename for a geometry grid tile.

Exceptions
DtInvalidInputif the dataset name ,index row or column are invalid.
unsigned int makVrv::DtMetaFlightDescription::numberOfVirtualTextureDatasets ( ) const

Get the number of geometry datasets.

const std::string& makVrv::DtMetaFlightDescription::virtualTextureDatasetName ( int  index) const

Get the geometry grid level switch in distance.

Exceptions
DtInvalidInputif the index is invalid.
DtMetaFlightTypes::CoordSysTypeSP makVrv::DtMetaFlightDescription::virtualTextureCoordinateSystem ( const std::string &  dsName) const

Get the coordinate system for the virtual textures.

DtMetaFlightTypes::Position2D makVrv::DtMetaFlightDescription::virtualTextureDatasetOrigin ( const std::string &  dsName) const

Get the extent of a geometry dataset.

Exceptions
DtInvalidInputif the dataset name is invalid.
DtMetaFlightTypes::Position2D makVrv::DtMetaFlightDescription::virtualTextureDatasetOrigin ( const std::string &  dsName,
const DtMetaFlightTypes::CoordSysTypeSP system 
) const

Get the extent of a geometry dataset in a desired coordinate system.

Exceptions
DtInvalidInputif the dataset name is invalid.
DtMetaFlightTypes::Position2D makVrv::DtMetaFlightDescription::virtualTextureDatasetExtent ( const std::string &  dsName) const

Get the extent of a geometry dataset.

Exceptions
DtInvalidInputif the dataset name is invalid.
DtMetaFlightTypes::Position2D makVrv::DtMetaFlightDescription::virtualTextureDatasetExtent ( const std::string &  dsName,
const DtMetaFlightTypes::CoordSysTypeSP system 
) const

Get the extent of a geometry dataset.

Exceptions
DtInvalidInputif the dataset name is invalid.
const std::string& makVrv::DtMetaFlightDescription::virtualTextureDatasetTitle ( const std::string &  dsName) const

Get the geometry dataset title.

Exceptions
DtInvalidInputif the dataset name is invalid.
const std::string& makVrv::DtMetaFlightDescription::virtualTextureDatasetFileFormat ( const std::string &  dsName) const

Get the geometry dataset file format string.

Exceptions
DtInvalidInputif the dataset name is invalid.
const std::string& makVrv::DtMetaFlightDescription::virtualTextureDatasetFileNamePattern ( const std::string &  dsName) const

Set the geometry dataset file name pattern string.

Exceptions
DtInvalidInputif the dataset name is invalid.
unsigned int makVrv::DtMetaFlightDescription::virtualTextureDatasetTileTexels ( const std::string &  dsName) const

Get the number of texels per tile.

Exceptions
DtInvalidInputif the dataset name is invalid.
const std::string& makVrv::DtMetaFlightDescription::virtualTextureDatasetSubstitutionTextureName ( const std::string &  dsName) const

Get the name of the substitution texture.

Exceptions
DtInvalidInputif the dataset name is invalid.
unsigned int makVrv::DtMetaFlightDescription::numberOfVirtualTextureGridLevels ( const std::string &  dsName) const

Get the number of geometry levels for a dataset.

Exceptions
DtInvalidInputif the dataset name is invalid.
const std::string& makVrv::DtMetaFlightDescription::virtualTextureGridLevelName ( const std::string &  dsName,
int  index 
) const

Get the geometry grid level switch in distance.

Exceptions
DtInvalidInputif the dataset name or index are invalid.
unsigned int makVrv::DtMetaFlightDescription::virtualTextureGridLevelColumns ( const std::string &  dsName,
int  index 
) const

Get the total number of columns on a grid level.

unsigned int makVrv::DtMetaFlightDescription::virtualTextureGridLevelColDivisions ( const std::string &  dsName,
int  index 
) const

Get the number of divisions on the level.

The division the ratio of tiles on the level compared to the level before it.

unsigned int makVrv::DtMetaFlightDescription::virtualTextureGridLevelRows ( const std::string &  dsName,
int  index 
) const

Get the total number of columns on a grid level.

unsigned int makVrv::DtMetaFlightDescription::virtualTextureGridLevelRowDivisions ( const std::string &  dsName,
int  index 
) const

Get the number of divisions on the level.

The division the ratio of tiles on the level compared to the level before it.

std::string makVrv::DtMetaFlightDescription::generateVirtualTextureFileName ( const std::string &  dsName,
int  index,
unsigned int  row,
unsigned int  column 
) const

Generate the filename for a virtual texture filename.

Exceptions
DtInvalidInputif the dataset name ,index row or column are invalid.
const std::string& makVrv::DtMetaFlightDescription::virtualTexturePath ( ) const

Get the root path for the virtual textures.

const DtMetaFlightTypes::Database* makVrv::DtMetaFlightDescription::database ( ) const
inline

Get the database object.

static std::string makVrv::DtMetaFlightDescription::generateFileName ( const std::string &  filenamePattern,
const PatternMap patternMap 
)
static
static void makVrv::DtMetaFlightDescription::setLonDtDegMinSecFromDegrees ( DtDegMinSec &  dmslon,
double  deg 
)
staticprotected
static void makVrv::DtMetaFlightDescription::setDtDegMinSecFromDegrees ( DtDegMinSec &  dms,
double  deg 
)
staticprotected
static void makVrv::DtMetaFlightDescription::setLatDtDegMinSecFromDegrees ( DtDegMinSec &  dmslat,
double  deg 
)
staticprotected

Member Data Documentation

std::string makVrv::DtMetaFlightDescription::myFilePath
protected
std::string makVrv::DtMetaFlightDescription::myDirOfFilePath
protected
std::string makVrv::DtMetaFlightDescription::myVtFilePath
protected
std::string makVrv::DtMetaFlightDescription::myDirOfVtFilePath
protected
DtMetaFlightTypes::Database* makVrv::DtMetaFlightDescription::myDatabase
protected

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

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)