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

Public Types | |
| enum | trpgTileType { DatabaseLocal, Absolute, TileLocal } |
Public Member Functions | |
| trpgHeader (void) | |
| ~trpgHeader (void) | |
| void | SetVersion (int major, int minor) |
| Set the TerraPage version info. | |
| void | SetDbVersion (int major, int minor) |
| Set the database version info. | |
| void | SetTileSize (int lod, const trpg2dPoint &size) |
| void | SetOrigin (const trpg3dPoint &) |
| Origin defaults to 0,0,0. | |
| void | SetExtents (const trpg2dPoint &sw, const trpg2dPoint &ne) |
| 2D archive extents. Must be set. | |
| void | SetTileOriginType (trpgTileType) |
| How the coordinates are treated with respect to real world values. | |
| void | SetNumLods (int) |
| void | SetLodSize (int lod, const trpg2iPoint &) |
| void | SetLodSize (const trpg2iPoint *) |
| void | SetLodRange (int, float64) |
| void | SetLodRange (const float64 *) |
| void | AddLod (const trpg2iPoint &size, const trpg2dPoint &ext, float64 range) |
| Increase the number of terrain LODs, adding a new one with the given size and range. | |
| void | SetLod (const trpg2iPoint &size, const trpg2dPoint &ext, float64 range, unsigned int lod) |
| Set details for an LOD, resizing if necessary. | |
| void | SetMaxGroupID (int) |
| Keep track of the maximum assigned group IDs (for tile paging) | |
| int | AddGroupID (void) |
| bool | isValid (void) const |
| Validity check. | |
| void | Reset (void) |
| Resets the contents back to empty. | |
| bool | GetVersion (int &, int &) const |
| TerraVista version information is two integers. | |
| bool | GetDbVersion (int &, int &) const |
| Database version information is user defined. Put whatever you want here. | |
| bool | GetTileSize (int, trpg2dPoint &) const |
| bool | GetOrigin (trpg3dPoint &) const |
| bool | GetExtents (trpg2dPoint &sw, trpg2dPoint &ne) const |
| bool | GetTileOriginType (trpgTileType &) const |
| bool | GetMaxGroupID (int &) const |
| bool | GetNumLods (int32 &) const |
| bool | GetLodSize (int32, trpg2iPoint &) const |
| bool | GetLodRange (int32, float64 &) const |
| bool | Write (trpgWriteBuffer &) |
| Read/Write functions. | |
| bool | Read (trpgReadBuffer &) |
| Reads this class from a read buffer. | |
| bool | Print (trpgPrintBuffer &) const |
| Prints this class to a print buffer. | |
| bool | ReadLodInfo (trpgReadBuffer &) |
| {secret} | |
| void | SetMaster (bool isMaster) |
| bool | GetIsMaster () const |
| void | SetLocal (bool isLocal) |
| bool | GetIsLocal () const |
| void | SetBlocks (int rows, int cols) |
| void | GetBlocks (int &rows, int &cols) |
Public Member Functions inherited from trpgReadWriteable | |
| trpgReadWriteable () | |
| const char * | getErrMess () const |
Public Member Functions inherited from trpgCheckable | |
| trpgCheckable (void) | |
| virtual | ~trpgCheckable (void) |
| virtual TeAttrHdl | GetHandle () const |
| virtual void | SetHandle (TeAttrHdl hdl) |
Protected Attributes | |
| int | verMinor |
| int | verMajor |
| int | dbVerMinor |
| int | dbVerMajor |
| int | maxGroupID |
| trpg2dPoint | sw |
| trpg2dPoint | ne |
| trpg3dPoint | origin |
| trpgTileType | tileType |
| int | numLods |
| std::vector< trpg2dPoint > | tileSize |
| std::vector< trpg2iPoint > | lodSizes |
| std::vector< float64 > | lodRanges |
| int32 | flags |
| int32 | rows |
| int32 | cols |
Protected Attributes inherited from trpgReadWriteable | |
| char | errMess [512] |
Protected Attributes inherited from trpgCheckable | |
| bool | valid |
| TeAttrHdl | handle |
| bool | writeHandle |
| trpgHeader::trpgHeader | ( | void | ) |
| trpgHeader::~trpgHeader | ( | void | ) |
| void trpgHeader::SetTileSize | ( | int | lod, |
| const trpg2dPoint & | size | ||
| ) |
| void trpgHeader::SetOrigin | ( | const trpg3dPoint & | ) |
Origin defaults to 0,0,0.
| void trpgHeader::SetExtents | ( | const trpg2dPoint & | sw, |
| const trpg2dPoint & | ne | ||
| ) |
2D archive extents. Must be set.
| void trpgHeader::SetTileOriginType | ( | trpgTileType | ) |
How the coordinates are treated with respect to real world values.
| void trpgHeader::SetNumLods | ( | int | ) |
| void trpgHeader::SetLodSize | ( | int | lod, |
| const trpg2iPoint & | |||
| ) |
| void trpgHeader::SetLodSize | ( | const trpg2iPoint * | ) |
| void trpgHeader::SetLodRange | ( | const float64 * | ) |
| void trpgHeader::AddLod | ( | const trpg2iPoint & | size, |
| const trpg2dPoint & | ext, | ||
| float64 | range | ||
| ) |
Increase the number of terrain LODs, adding a new one with the given size and range.
| void trpgHeader::SetLod | ( | const trpg2iPoint & | size, |
| const trpg2dPoint & | ext, | ||
| float64 | range, | ||
| unsigned int | lod | ||
| ) |
Set details for an LOD, resizing if necessary.
| void trpgHeader::SetMaxGroupID | ( | int | ) |
Keep track of the maximum assigned group IDs (for tile paging)
| int trpgHeader::AddGroupID | ( | void | ) |
| bool trpgHeader::isValid | ( | void | ) | const |
Validity check.
Reimplemented from trpgCheckable.
|
virtual |
Resets the contents back to empty.
Implements trpgReadWriteable.
Database version information is user defined. Put whatever you want here.
| bool trpgHeader::GetTileSize | ( | int | , |
| trpg2dPoint & | |||
| ) | const |
| bool trpgHeader::GetOrigin | ( | trpg3dPoint & | ) | const |
| bool trpgHeader::GetExtents | ( | trpg2dPoint & | sw, |
| trpg2dPoint & | ne | ||
| ) | const |
| bool trpgHeader::GetTileOriginType | ( | trpgTileType & | ) | const |
| bool trpgHeader::GetLodSize | ( | int32 | , |
| trpg2iPoint & | |||
| ) | const |
|
virtual |
|
virtual |
Reads this class from a read buffer.
Reimplemented from trpgReadWriteable.
|
virtual |
Prints this class to a print buffer.
Reimplemented from trpgReadWriteable.
| bool trpgHeader::ReadLodInfo | ( | trpgReadBuffer & | ) |
{secret}
|
inline |
References ISMASTER, TRPG_NOMERGE_VERSION_MAJOR, and TRPG_NOMERGE_VERSION_MINOR.
|
inline |
References ISLOCAL, TRPG_NOMERGE_VERSION_MAJOR, and TRPG_NOMERGE_VERSION_MINOR.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |