VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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. More...

Inheritance diagram for trpgr_ChildRefCB:
Inheritance graph
[legend]

Public Member Functions

void * Parse (trpgToken tok, trpgReadBuffer &rbuf)
unsigned int GetNbChildren () const
 After parsing this will return the number of trpgChildRef node found.
const trpgChildRefGetChildRef (unsigned int idx) const
 This will return the trpgChildRef node associated with the index.
void Reset ()
 Clear the children list.
- Public Member Functions inherited from trpgr_Callback
virtual ~trpgr_Callback (void)

Protected Types

typedef std::vector< trpgChildRefChildList
 typedef std::vector<const trpgChildRef> ChildList; The const in the template parameter was removed because it causes GCC to freak out.

Protected Attributes

ChildList childList

Detailed Description

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.

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 Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)