VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 }
 Tiles can be stored individually (External and ExternalSaved) or in grouped files (Local). More...

Public Member Functions

 trpgTileTable ()
 ~trpgTileTable (void)
void SetMode (TileMode)
 Set the tile storage mode: external or local.
void SetNumLod (int numLod)
 Set the total number of LODs For version 2.1 only lod 0 is stored in the table.
void 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 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 GetMode (TileMode &) const
 Local or external tiles.
bool GetTile (int x, int y, int lod, trpgwAppAddress &, float32 &min, float32 &max) const
 Get the disk reference (local)
bool isValid (void) const
 Validity check.
void Reset (void)
 Reads this class from a read buffer.
bool Write (trpgWriteBuffer &)
 Writes this class to a write buffer.
bool Read (trpgReadBuffer &)
 Reads this class from a read buffer.
bool Print (trpgPrintBuffer &) const
 Prints this class to a print buffer.
void SetCurrentBlock (int row, int col, bool local)
 SetCurrentBlock is used in two cases:
- 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

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.

Reimplemented from trpgCheckable.

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.

Reimplemented in trpgTileTable1_0.

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 Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)