VR-Forces 4.6 Class Documentation
 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)
 Called to clear any info out of this tile.
bool ParseTileHeader (trpgReadBuffer &)
bool IsLoaded (void)
 Check if the tile is loaded (e.g. the header read in)
bool SetTileLoc (int x, int y, int lod)
bool GetTileLoc (int &x, int &y, int &lod) const
 Get the tile location.
void 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.
void SetTileAddress (int32 file, int32 offset)
const trpgwAppAddressGetTileAddress () const
const trpgTileHeaderGetTileHead (void)
 Return a pointer to the tile header.
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
 Children info, will throw exception if child index is out of bound.
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
 Set if a tile is currently loaded.
TileLocationInfo location
 Tile location info.
trpgTileHeader tileHead
 Tile Header associated with this tile.
std::vector< void * > localMatData
 Data to keep associated with each individual local material index.
std::vector< intgroupIDs
 Used to keep track of group IDs in this tile.
void * localData
 Local data (probably the top of the local scene graph)
std::vector< TileLocationInfochildLocationInfo
 What are the children: this to be used for version 2.1 and up.

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 Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)