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 Member Functions | Protected Attributes
makVrv::DtImageHeaderParser Class Reference

DtImageHeaderParser parses image files for their extents. By default, returns the extent of the terrain.

Inheritance diagram for makVrv::DtImageHeaderParser:
Inheritance graph
[legend]

Public Member Functions

 DtImageHeaderParser (DtDe &de, const std::string &filePath)
 
virtual ~DtImageHeaderParser ()
 
void setTerrainPatch (const std::string &patch)
 
const std::string & terrainPatch () const
 
virtual bool isValid ()
 
- Public Member Functions inherited from makVrv::DtHeaderParser
 DtHeaderParser (const std::string &filePath)
 
virtual ~DtHeaderParser ()
 
virtual const std::string & terrainCoordinateSystem ()
 
virtual const std::string & terrainCoordinateSystemParameters ()
 
virtual const std::string & filePath ()
 
const TerrainPatchRecordsterrainPatchRecords () const
 
TerrainPatchRecordsterrainPatchRecords ()
 

Static Public Member Functions

static void convertCorner (char *token, double &x, double &y, double &z)
 
static void parseInformation (const std::string &info, double &sw_x, double &sw_y, double &sw_z, double &ne_x, double &ne_y, double &ne_z, int &blendMode, int &wrapMode)
 

Protected Member Functions

void addTerrainPatchRecord (const std::string &filename)
 

Protected Attributes

DtDemyDe
 
std::string myTerrainPatch
 
- Protected Attributes inherited from makVrv::DtHeaderParser
std::string myFilePath
 
std::string myTerrainCoordinateSystem
 
std::string myTerrainCoordinateSystemParameters
 
TerrainPatchRecords myTerrainPatchRecords
 

Additional Inherited Members

- Public Types inherited from makVrv::DtHeaderParser
typedef std::list
< makArchives::DtTerrainPatchRecord
TerrainPatchRecords
 

Constructor & Destructor Documentation

makVrv::DtImageHeaderParser::DtImageHeaderParser ( DtDe de,
const std::string &  filePath 
)

CTOR.

virtual makVrv::DtImageHeaderParser::~DtImageHeaderParser ( )
virtual

DTOR.

Member Function Documentation

void makVrv::DtImageHeaderParser::setTerrainPatch ( const std::string &  patch)

Need to set before calling isValid as the image needs to know the patch it is going to be placed on before it can be placed.

const std::string& makVrv::DtImageHeaderParser::terrainPatch ( ) const
virtual bool makVrv::DtImageHeaderParser::isValid ( )
virtual

Returns true if the file was loaded and the extent can be discovered.

Implements makVrv::DtHeaderParser.

Reimplemented in makVrv::DtGeoTiffHeaderParser.

static void makVrv::DtImageHeaderParser::convertCorner ( char token,
double x,
double y,
double z 
)
static
static void makVrv::DtImageHeaderParser::parseInformation ( const std::string &  info,
double sw_x,
double sw_y,
double sw_z,
double ne_x,
double ne_y,
double ne_z,
int blendMode,
int wrapMode 
)
static
void makVrv::DtImageHeaderParser::addTerrainPatchRecord ( const std::string &  filename)
protected

Helper function that turns a filename into a DtTerrainPatchRecord. The coordinate system parameters will be a string of type <sw>:<ne> corners where the corners are comma delimeted items of x, y, z. After the parameters will be the drape mode (0 = DECAL, 1 = MODULATE) and the clamp mode (0 = REPEAT, 1 = CLAMP). Call parseInformation to get all the encoded information.

Member Data Documentation

DtDe& makVrv::DtImageHeaderParser::myDe
protected
std::string makVrv::DtImageHeaderParser::myTerrainPatch
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)