VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Friends
trpgManagedTile Class Reference

Public Member Functions

 trpgManagedTile (void)
 
void Reset (void)
 
bool ParseTileHeader (trpgReadBuffer &)
 
bool IsLoaded (void)
 
bool SetTileLoc (int x, int y, int lod)
 
bool GetTileLoc (int &x, int &y, int &lod) const
 
void SetTileAddress (const trpgwAppAddress &gAddr)
 
void SetTileAddress (int32 file, int32 offset)
 
const trpgwAppAddressGetTileAddress () const
 
const trpgTileHeaderGetTileHead (void)
 
const std::vector
< trpgLocalMaterial > * 
GetLocMatList (void) const
 
const trpgLocalMaterialGetLocMaterial (int id) const
 
void SetLocalData (void *)
 
void * GetLocalData (void) const
 
bool SetMatData (int id, void *)
 
void * GetMatData (int id) const
 
void AddGroupID (int id)
 
const std::vector< int > * GetGroupIDs (void) const
 
void Print (trpgPrintBuffer &)
 
unsigned int GetNbChildren () const
 
bool SetChildLocationInfo (int childIdx, int x, int y, const trpgwAppAddress &addr)
 
bool SetChildLocationInfo (int childIdx, const TileLocationInfo &info)
 
const TileLocationInfoGetChildLocationInfo (int childIdx) const
 
bool GetChildTileLoc (int childIdx, int &x, int &y, int &lod) const
 
const trpgwAppAddressGetChildTileAddress (int childIdx) const
 

Protected Attributes

bool isLoaded
 
TileLocationInfo location
 
trpgTileHeader tileHead
 
std::vector< void * > localMatData
 
std::vector< intgroupIDs
 
void * localData
 
std::vector< TileLocationInfochildLocationInfo
 

Friends

class trpgPageManager
 

Constructor & Destructor Documentation

trpgManagedTile::trpgManagedTile ( void  )

Member Function Documentation

void trpgManagedTile::Reset ( void  )

Called to clear any info out of this tile.

bool trpgManagedTile::ParseTileHeader ( trpgReadBuffer )
bool trpgManagedTile::IsLoaded ( void  )

Check if the tile is loaded (e.g. the header read in)

bool trpgManagedTile::SetTileLoc ( int  x,
int  y,
int  lod 
)
bool trpgManagedTile::GetTileLoc ( int x,
int y,
int lod 
) const

Get the tile location.

void trpgManagedTile::SetTileAddress ( const trpgwAppAddress gAddr)

In version 2.1 we no longer have the tile table to find the tiles, only by traversing the parent can it be found. So when we have this info, this is were to save it.

void trpgManagedTile::SetTileAddress ( int32  file,
int32  offset 
)
const trpgwAppAddress& trpgManagedTile::GetTileAddress ( ) const
const trpgTileHeader* trpgManagedTile::GetTileHead ( void  )

Return a pointer to the tile header.

const std::vector<trpgLocalMaterial>* trpgManagedTile::GetLocMatList ( void  ) const
const trpgLocalMaterial* trpgManagedTile::GetLocMaterial ( int  id) const
void trpgManagedTile::SetLocalData ( void *  )
void* trpgManagedTile::GetLocalData ( void  ) const
bool trpgManagedTile::SetMatData ( int  id,
void *   
)
void* trpgManagedTile::GetMatData ( int  id) const
void trpgManagedTile::AddGroupID ( int  id)
const std::vector<int>* trpgManagedTile::GetGroupIDs ( void  ) const
void trpgManagedTile::Print ( trpgPrintBuffer )
unsigned int trpgManagedTile::GetNbChildren ( ) const
inline

Children info, will throw exception if child index is out of bound.

bool trpgManagedTile::SetChildLocationInfo ( int  childIdx,
int  x,
int  y,
const trpgwAppAddress addr 
)
bool trpgManagedTile::SetChildLocationInfo ( int  childIdx,
const TileLocationInfo info 
)
const TileLocationInfo& trpgManagedTile::GetChildLocationInfo ( int  childIdx) const
bool trpgManagedTile::GetChildTileLoc ( int  childIdx,
int x,
int y,
int lod 
) const
const trpgwAppAddress& trpgManagedTile::GetChildTileAddress ( int  childIdx) const

Friends And Related Function Documentation

friend class trpgPageManager
friend

Member Data Documentation

bool trpgManagedTile::isLoaded
protected

Set if a tile is currently loaded.

TileLocationInfo trpgManagedTile::location
protected

Tile location info.

trpgTileHeader trpgManagedTile::tileHead
protected

Tile Header associated with this tile.

std::vector<void *> trpgManagedTile::localMatData
protected

Data to keep associated with each individual local material index.

std::vector<int> trpgManagedTile::groupIDs
protected

Used to keep track of group IDs in this tile.

void* trpgManagedTile::localData
protected

Local data (probably the top of the local scene graph)

std::vector<TileLocationInfo> trpgManagedTile::childLocationInfo
protected

What are the children: this to be used for version 2.1 and up. Both vector should have the same size.


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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)