![]() |
VR-Forces 4.10 Class Documentation
|
DtImageHeaderParser parses image files for their extents. More...

Public Member Functions | |
| DtImageHeaderParser (DtDe &de, const std::string &filePath) | |
| CTOR. More... | |
| virtual | ~DtImageHeaderParser () |
| DTOR. More... | |
| void | 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. More... | |
| const std::string & | terrainPatch () const |
| virtual bool | isValid () |
| Returns true if the file was loaded and the extent can be discovered. More... | |
Public Member Functions inherited from makVrv::DtHeaderParser | |
| DtHeaderParser (const std::string &filePath) | |
| CTOR. More... | |
| virtual | ~DtHeaderParser () |
| DTOR. More... | |
| virtual const std::string & | terrainCoordinateSystem () |
| Returns the terrain coordinate system parameter for use in creation of a model definition. More... | |
| virtual const std::string & | terrainCoordinateSystemParameters () |
| Returns the terrain Coordinate System Parameters for use in creation of a model definition. More... | |
| virtual const std::string & | filePath () |
| Returns myFilePath. More... | |
| const TerrainPatchRecords & | terrainPatchRecords () const |
| TerrainPatchRecords const accessor. More... | |
| TerrainPatchRecords & | terrainPatchRecords () |
| TerrainPatchRecords accessor. More... | |
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) |
| Helper function that turns a filename into a DtTerrainPatchRecord. More... | |
Protected Attributes | |
| DtDe & | myDe |
| 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 |
DtImageHeaderParser parses image files for their extents.
By default, returns the extent of the terrain
| makVrv::DtImageHeaderParser::DtImageHeaderParser | ( | DtDe & | de, |
| const std::string & | filePath | ||
| ) |
CTOR.
|
virtual |
DTOR.
| 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 |
Returns true if the file was loaded and the extent can be discovered.
Implements makVrv::DtHeaderParser.
Reimplemented in makVrv::DtGeoTiffHeaderParser.
|
static |
|
static |
|
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
|
protected |
|
protected |