![]() |
VR-Forces 4.8 Class Documentation
|
For Version 2.1 an over, the tile table only contains tiles of lod 0. More...

Public Member Functions | |
| void * | Parse (trpgToken tok, trpgReadBuffer &rbuf) |
| unsigned int | GetNbChildren () const |
| After parsing this will return the number of trpgChildRef node found. More... | |
| const trpgChildRef & | GetChildRef (unsigned int idx) const |
| This will return the trpgChildRef node associated with the index. More... | |
| void | Reset () |
| Clear the children list. More... | |
Public Member Functions inherited from trpgr_Callback | |
| virtual | ~trpgr_Callback (void) |
Protected Types | |
| typedef std::vector< trpgChildRef > | ChildList |
| typedef std::vector<const trpgChildRef> ChildList; The const in the template parameter was removed because it causes GCC to freak out. More... | |
Protected Attributes | |
| ChildList | childList |
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.
|
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
|
virtual |
Reimplemented from trpgr_Callback.
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.
|
protected |