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 Types | Protected Attributes
trpgr_ChildRefCB Class Reference

For Version 2.1 an over, the tile table only contains tiles of lod 0. To get access the other tiles, parent tile must be parsed to get at trpgChildRef nodes that will contain location info about the children. This callback can be use to parse the tile data. After parsing the callback object will contain the list of trpgChildRef nodes found.

Inheritance diagram for trpgr_ChildRefCB:
Inheritance graph
[legend]

Public Member Functions

void * Parse (trpgToken tok, trpgReadBuffer &rbuf)
 
unsigned int GetNbChildren () const
 
const trpgChildRefGetChildRef (unsigned int idx) const
 
void Reset ()
 
- Public Member Functions inherited from trpgr_Callback
virtual ~trpgr_Callback (void)
 

Protected Types

typedef std::vector< trpgChildRefChildList
 

Protected Attributes

ChildList childList
 

Member Typedef Documentation

typedef std::vector<trpgChildRef> trpgr_ChildRefCB::ChildList
protected

 typedef std::vector<const trpgChildRef> ChildList;

The const in the template parameter was removed because it causes GCC to freak out. I am of the opinion that const doesn't make sense in a template parameter for std::vector anyway... const prevents you from changing the value, so what exactly is the point? How does one add entries to the vector without giving them a value? -ADS

Member Function Documentation

void* trpgr_ChildRefCB::Parse ( trpgToken  tok,
trpgReadBuffer rbuf 
)
virtual

Reimplemented from trpgr_Callback.

unsigned int trpgr_ChildRefCB::GetNbChildren ( ) const

After parsing this will return the number of trpgChildRef node found.

const trpgChildRef& trpgr_ChildRefCB::GetChildRef ( unsigned int  idx) const

This will return the trpgChildRef node associated with the index. Will throw an exception if the index is out of bound.

void trpgr_ChildRefCB::Reset ( )

Clear the children list.

Member Data Documentation

ChildList trpgr_ChildRefCB::childList
protected

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)