![]() |
VR-Forces 4.8 Class Documentation
|

Classes | |
| struct | TileInfo |
| Gets some informations for a given tile. More... | |
| struct | TileLocationInfo |
Public Member Functions | |
| TXPArchive () | |
| Constructor. More... | |
| bool | openFile (const std::string &archiveName) |
| Opens the archive file and reads the header. More... | |
| bool | loadMaterials () |
| Load the materials from the archve. More... | |
| bool | loadMaterial (int ix) |
| bool | loadTexture (int i) |
| bool | loadModels () |
| Load the models from the archive. More... | |
| bool | loadModel (int ix) |
| bool | loadLightAttributes () |
| Load the light attribs from the archive. More... | |
| bool | loadTextStyles () |
| Load the text styles from the archive. More... | |
| std::map< int, osg::ref_ptr < osgText::Font > > & | getStyles () |
| std::map< int, osg::Vec4 > & | getTextColors () |
| void | addLightAttribute (osgSim::LightPointNode *lpn, osg::StateSet *fallback, const osg::Vec3 &attitude, int handle) |
| Add light attrib. More... | |
| int | getNumLightAttributes () |
| DeferredLightAttribute & | getLightAttribute (unsigned int i) |
| Get light attrib. More... | |
| bool | getTileInfo (int x, int y, int lod, TileInfo &info) |
| bool | getTileInfo (const TileLocationInfo &loc, TileInfo &info) |
| void | setId (int id) |
| Set/Get the archive id. More... | |
| const int & | getId () const |
| const int & | getNumLODs () const |
| Returns the number of LODs for this archive. More... | |
| void | getExtents (osg::BoundingBox &extents) |
| Returns the extents of the archive FIXME - Needs to change for databases that aren't flat-earth. More... | |
| void | getOrigin (double &x, double &y) |
| { extents.set(_swExtents.x,_swExtents.y,0.0f,_neExtents.x,_neExtents.y,0.0f); } More... | |
| osg::Texture2D * | getGlobalTexture (int id) |
| Returns global texture. More... | |
| osg::Group * | getTileContent (int x, int y, int lod, double realMinRange, double realMaxRange, double usedMaxRange, osg::Vec3 &tileCenter, std::vector< TileLocationInfo > &childInfoList) |
| Returns scenegraph representing the Tile. More... | |
| osg::Group * | getTileContent (const TileLocationInfo &loc, double realMinRange, double realMaxRange, double usedMaxRange, osg::Vec3 &tileCenter, std::vector< TileLocationInfo > &childInfoList) |
| To be used for Version 2.1 with lod > 0. More... | |
| bool | getLODSize (int lod, int &x, int &y) |
| Get the number of tiles for given LOD. More... | |
| void | GetVersion (int &majorVer, int &minorVer) const |
| void | SetUserDataToMaterialAttributes (osg::StateSet &osg_state_set, const trpgMaterial &mat) |
| This section brought to you by A. More... | |
| void | SetMaterialAttributesToStateSetVar (bool value) |
Public Member Functions inherited from trpgr_Archive | |
| trpgr_Archive (void) | |
| virtual | ~trpgr_Archive (void) |
| virtual void | SetDirectory (const char *) |
| virtual bool | OpenFile (const char *) |
| virtual void | CloseFile (void) |
| Open File. More... | |
| virtual bool | ReadHeader (void) |
| virtual bool | ReadHeader (bool readAllBlocks) |
| Read header (materials, tile table. etc..) More... | |
| bool | ReadSubArchive (int row, int col, trpgEndian cpuNess) |
| virtual bool | ReadTile (uint32 x, uint32 y, uint32 lod, trpgMemReadBuffer &) |
| In version 2.1, only tile at lod 0 are fetchable via the tile table. More... | |
| virtual bool | ReadTile (const trpgwAppAddress &addr, trpgMemReadBuffer &buf) |
| virtual bool | ReadExternalTile (uint32 x, uint32 y, uint32 lod, trpgMemReadBuffer &buf) |
| virtual const trpgHeader * | GetHeader (void) const |
| Get access to header info. More... | |
| virtual const trpgMatTable * | GetMaterialTable (void) const |
| virtual trpgTexTable * | GetTexTable (void) |
| virtual const trpgModelTable * | GetModelTable (void) const |
| virtual const trpgTileTable * | GetTileTable (void) const |
| virtual const trpgLightTable * | GetLightTable (void) const |
| virtual const trpgRangeTable * | GetRangeTable (void) const |
| virtual const trpgLabelPropertyTable * | GetLabelPropertyTable () const |
| virtual const trpgTextStyleTable * | GetTextStyleTable () const |
| virtual const trpgSupportStyleTable * | GetSupportStyleTable () const |
| virtual bool | trpgGetTileMBR (uint32 x, uint32 y, uint32 lod, trpg3dPoint &ll, trpg3dPoint &ur) const |
| Utility routine to calculate the MBR of a given tile. More... | |
| trpgEndian | GetEndian (void) const |
| char * | getDir (void) |
| virtual trpgrImageHelper * | GetNewRImageHelper (trpgEndian ness, char *dir, const trpgMatTable &matTable, const trpgTexTable &texTable) |
| virtual trpgrAppFileCache * | GetNewRAppFileCache (const char *fullBase, const char *ext) |
| virtual int32 | GetHeaderData (char *dataPtr, int32 length, FILE *filehandle) |
| virtual int32 | GetMagicNumber () |
Public Member Functions inherited from trpgCheckable | |
| trpgCheckable (void) | |
| virtual | ~trpgCheckable (void) |
| bool | isValid (void) const |
| Returns the state of the valid flag, or can be overriden by a subclass to do a more complex check. More... | |
| virtual TeAttrHdl | GetHandle () const |
| virtual void | SetHandle (TeAttrHdl hdl) |
Static Public Member Functions | |
| static void | setShouldLoadDisplayData (bool) |
| Set to false to not load imagery and materials. Default is true. More... | |
| static bool | shouldLoadDisplayData () |
| static void | setExternalLoadOptions (osg::ref_ptr< osgDB::ReaderWriter::Options > opts) |
| static osg::ref_ptr < osgDB::ReaderWriter::Options > | externalLoadOptions () |
| static void | setShouldLoadLocalMaterials (bool) |
| Disables loading local materials, which will still load texture image objects. More... | |
| static bool | shouldLoadLocalMaterials () |
Protected Types | |
| typedef std::map< int, osg::ref_ptr< osg::Texture2D > > | OSGTexMapType |
| Textures. More... | |
| typedef std::map< int, osg::ref_ptr< osg::StateSet > > | OSGStatesMapType |
| States. More... | |
| typedef std::map< int, osg::ref_ptr< osg::Node > > | OSGModelsMapType |
| Models. More... | |
Protected Member Functions | |
| virtual | ~TXPArchive () |
| Destructor. More... | |
| void | SetTexMap (int key, osg::ref_ptr< osg::Texture2D > ref) |
| osg::ref_ptr< osg::Texture2D > | GetTexMapEntry (int key) |
| void | SetStatesMap (int key, osg::ref_ptr< osg::StateSet > ref) |
| osg::ref_ptr< osg::StateSet > | GetStatesMapEntry (int key) |
|
protected |
Textures.
|
protected |
States.
|
protected |
Models.
| txp::TXPArchive::TXPArchive | ( | ) |
Constructor.
|
protectedvirtual |
Destructor.
| bool txp::TXPArchive::openFile | ( | const std::string & | archiveName | ) |
Opens the archive file and reads the header.
| bool txp::TXPArchive::loadMaterials | ( | ) |
Load the materials from the archve.
Referenced by txp::TXPParser::loadMaterial().
| bool txp::TXPArchive::loadModels | ( | ) |
Load the models from the archive.
| bool txp::TXPArchive::loadLightAttributes | ( | ) |
Load the light attribs from the archive.
| bool txp::TXPArchive::loadTextStyles | ( | ) |
Load the text styles from the archive.
|
inline |
|
inline |
| void txp::TXPArchive::addLightAttribute | ( | osgSim::LightPointNode * | lpn, |
| osg::StateSet * | fallback, | ||
| const osg::Vec3 & | attitude, | ||
| int | handle | ||
| ) |
Add light attrib.
|
inline |
|
inline |
Get light attrib.
| bool txp::TXPArchive::getTileInfo | ( | const TileLocationInfo & | loc, |
| TileInfo & | info | ||
| ) |
|
inline |
Set/Get the archive id.
|
inline |
|
inline |
Returns the number of LODs for this archive.
| void txp::TXPArchive::getExtents | ( | osg::BoundingBox & | extents | ) |
Returns the extents of the archive FIXME - Needs to change for databases that aren't flat-earth.
{ extents.set(_swExtents.x,_swExtents.y,0.0f,_neExtents.x,_neExtents.y,0.0f); }
Returns the origin of the archive
|
inline |
Returns global texture.
| osg::Group* txp::TXPArchive::getTileContent | ( | int | x, |
| int | y, | ||
| int | lod, | ||
| double | realMinRange, | ||
| double | realMaxRange, | ||
| double | usedMaxRange, | ||
| osg::Vec3 & | tileCenter, | ||
| std::vector< TileLocationInfo > & | childInfoList | ||
| ) |
Returns scenegraph representing the Tile.
For version 2.1 and over this function can only be call with lod = 0, since the archive tile table will contain only tiles with lod = 0
| osg::Group* txp::TXPArchive::getTileContent | ( | const TileLocationInfo & | loc, |
| double | realMinRange, | ||
| double | realMaxRange, | ||
| double | usedMaxRange, | ||
| osg::Vec3 & | tileCenter, | ||
| std::vector< TileLocationInfo > & | childInfoList | ||
| ) |
To be used for Version 2.1 with lod > 0.
Get the number of tiles for given LOD.
|
inline |
This section brought to you by A.
Danklefsen and the team @ Alion Science And Technology 2/12/07 This will allow you to have smc / fid / swc / stp values and places them on the userdata of the state set. this way your own terrain loader / parser can know these values
References trpgMaterial::GetAttr().
|
inline |
|
static |
Set to false to not load imagery and materials. Default is true.
|
static |
|
static |
|
static |
|
static |
Disables loading local materials, which will still load texture image objects.
Default true. Added by MAK for VRFSIM.
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Id of the archive.
|
protected |
Number of the LODs.
|
protected |
Archive extents.
|
protected |
|
protected |
Terra Page Parser.
|
protected |
|
protected |
|
protected |
|
protected |
Light attributes vector.
|
protected |
Text styles / Fonts.
|
protected |
Text colors.
|
protected |
|
protected |
Cache those: TerraPage version.
|
protected |
|
protected |
|
protected |