VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Attributes
trpgHeader Class Reference
Inheritance diagram for trpgHeader:
Inheritance graph
[legend]

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 chargetErrMess () 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< trpg2dPointtileSize
std::vector< trpg2iPointlodSizes
std::vector< float64lodRanges
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

Member Enumeration Documentation

Enumerator:
DatabaseLocal 
Absolute 
TileLocal 

Constructor & Destructor Documentation

trpgHeader::trpgHeader ( void  )
trpgHeader::~trpgHeader ( void  )

Member Function Documentation

void trpgHeader::SetVersion ( int  major,
int  minor 
)

Set the TerraPage version info.

void trpgHeader::SetDbVersion ( int  major,
int  minor 
)

Set the database version info.

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 ( int  ,
float64   
)
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.

void trpgHeader::Reset ( void  )
virtual

Resets the contents back to empty.

Implements trpgReadWriteable.

bool trpgHeader::GetVersion ( int ,
int  
) const

TerraVista version information is two integers.

bool trpgHeader::GetDbVersion ( int ,
int  
) const

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::GetMaxGroupID ( int ) const
bool trpgHeader::GetNumLods ( int32 ) const
bool trpgHeader::GetLodSize ( int32  ,
trpg2iPoint  
) const
bool trpgHeader::GetLodRange ( int32  ,
float64  
) const
bool trpgHeader::Write ( trpgWriteBuffer )
virtual

Read/Write functions.

Writes this class to a write buffer

Implements trpgReadWriteable.

bool trpgHeader::Read ( trpgReadBuffer )
virtual

Reads this class from a read buffer.

Reimplemented from trpgReadWriteable.

bool trpgHeader::Print ( trpgPrintBuffer ) const
virtual

Prints this class to a print buffer.

Reimplemented from trpgReadWriteable.

bool trpgHeader::ReadLodInfo ( trpgReadBuffer )

{secret}

void trpgHeader::SetMaster ( bool  isMaster)
inline
bool trpgHeader::GetIsMaster ( ) const
inline

References ISMASTER.

void trpgHeader::SetLocal ( bool  isLocal)
inline
bool trpgHeader::GetIsLocal ( ) const
inline

References ISLOCAL.

void trpgHeader::SetBlocks ( int  rows,
int  cols 
)
inline
void trpgHeader::GetBlocks ( int rows,
int cols 
)
inline

Member Data Documentation

int trpgHeader::verMinor
protected
int trpgHeader::verMajor
protected
int trpgHeader::dbVerMinor
protected
int trpgHeader::dbVerMajor
protected
int trpgHeader::maxGroupID
protected
trpg2dPoint trpgHeader::sw
protected
trpg2dPoint trpgHeader::ne
protected
trpg3dPoint trpgHeader::origin
protected
trpgTileType trpgHeader::tileType
protected
int trpgHeader::numLods
protected
std::vector<trpg2dPoint> trpgHeader::tileSize
protected
std::vector<trpg2iPoint> trpgHeader::lodSizes
protected
std::vector<float64> trpgHeader::lodRanges
protected
int32 trpgHeader::flags
protected
int32 trpgHeader::rows
protected
int32 trpgHeader::cols
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)