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

Public Member Functions | |
| DtImageHeaderParser (DtDe &de, const std::string &filePath) | |
| CTOR. | |
| virtual | ~DtImageHeaderParser () |
| DTOR. | |
| 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. | |
| const std::string & | terrainPatch () const |
| virtual bool | isValid () |
| Returns true if the file was loaded and the extent can be discovered. | |
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. | |
Protected Attributes | |
| DtDe & | myDe |
| std::string | myTerrainPatch |
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 makVrv::DtImageHeaderParser::~DtImageHeaderParser | ( | ) | [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 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
DtDe& makVrv::DtImageHeaderParser::myDe [protected] |
std::string makVrv::DtImageHeaderParser::myTerrainPatch [protected] |