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

Classes

class  LodInfo
 

Public Types

enum  TileMode { Local, External, ExternalSaved }
 

Public Member Functions

 trpgTileTable ()
 
 ~trpgTileTable (void)
 
void SetMode (TileMode)
 
void SetNumLod (int numLod)
 
void SetNumTiles (int numX, int numY, int lod)
 
void SetTile (int x, int y, int lod, trpgwAppAddress &, float32 min, float32 max)
 
bool GetMode (TileMode &) const
 
bool GetTile (int x, int y, int lod, trpgwAppAddress &, float32 &min, float32 &max) const
 
bool isValid (void) const
 
void Reset (void)
 
bool Write (trpgWriteBuffer &)
 
bool Read (trpgReadBuffer &)
 
bool Print (trpgPrintBuffer &) const
 
void SetCurrentBlock (int row, int col, bool local)
 
- Public Member Functions inherited from trpgReadWriteable
 trpgReadWriteable ()
 
const chargetErrMess () const
 
- Public Member Functions inherited from trpgCheckable
 trpgCheckable (void)
 
virtual ~trpgCheckable (void)
 
bool isValid (void) const
 
virtual TeAttrHdl GetHandle () const
 
virtual void SetHandle (TeAttrHdl hdl)
 

Protected Attributes

TileMode mode
 
std::vector< LodInfolodInfo
 
int currentRow
 
int currentCol
 
bool localBlock
 
- Protected Attributes inherited from trpgReadWriteable
char errMess [512]
 
- Protected Attributes inherited from trpgCheckable
bool valid
 
TeAttrHdl handle
 
bool writeHandle
 

Member Enumeration Documentation

Tiles can be stored individually (External and ExternalSaved) or in grouped files (Local). ExternalSaved still have an entry in the table. In this case the addess data is not valid.

Enumerator
Local 
External 
ExternalSaved 

Constructor & Destructor Documentation

trpgTileTable::trpgTileTable ( )
trpgTileTable::~trpgTileTable ( void  )

Member Function Documentation

void trpgTileTable::SetMode ( TileMode  )

Set the tile storage mode: external or local.

void trpgTileTable::SetNumLod ( int  numLod)

Set the total number of LODs For version 2.1 only lod 0 is stored in the table.

void trpgTileTable::SetNumTiles ( int  numX,
int  numY,
int  lod 
)

Set the number of tiles in each dimenion for each terrain LOD This must agree with trpgHeader.

void trpgTileTable::SetTile ( int  x,
int  y,
int  lod,
trpgwAppAddress ,
float32  min,
float32  max 
)

Set the external address of a given tile as well as its Z value.

bool trpgTileTable::GetMode ( TileMode ) const

Local or external tiles.

bool trpgTileTable::GetTile ( int  x,
int  y,
int  lod,
trpgwAppAddress ,
float32 min,
float32 max 
) const

Get the disk reference (local)

bool trpgTileTable::isValid ( void  ) const

Validity check.

void trpgTileTable::Reset ( void  )
virtual

Reads this class from a read buffer.

Implements trpgReadWriteable.

bool trpgTileTable::Write ( trpgWriteBuffer )
virtual

Writes this class to a write buffer.

Implements trpgReadWriteable.

bool trpgTileTable::Read ( trpgReadBuffer )
virtual

Reads this class from a read buffer.

Reimplemented from trpgReadWriteable.

bool trpgTileTable::Print ( trpgPrintBuffer ) const
virtual

Prints this class to a print buffer.

Reimplemented from trpgReadWriteable.

void trpgTileTable::SetCurrentBlock ( int  row,
int  col,
bool  local 
)
inline

SetCurrentBlock is used in two cases:

  1. When building a block specific tile archive (MMB and non-MMB). (local is TRUE)
  2. When merging several blocks into memory for visualization. (local is FALSE)

Member Data Documentation

TileMode trpgTileTable::mode
protected
std::vector<LodInfo> trpgTileTable::lodInfo
protected
int trpgTileTable::currentRow
protected
int trpgTileTable::currentCol
protected
bool trpgTileTable::localBlock
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)