AtlasBaseTOC< StubType > Class Template Reference [Atlas Core]

#include <atlasBaseTOC.h>

Inheritance diagram for AtlasBaseTOC< StubType >:

Inheritance graph
[legend]
List of all members.

Detailed Description


template<class StubType> class AtlasBaseTOC< StubType >

Templated base class for TOCs.

This provides all the stub/chunk type specific behavior for an Atlas TOC.


Public Types

typedef StubType::ChunkType ChunkType
 Bring the chunk type in as a local typedef to save indirection.

Public Member Functions

 AtlasBaseTOC ()
 ~AtlasBaseTOC ()
StubType * getStub (const U32 level, const Point2I pos)
 Get the stub for a given position in the quadtree.
U32 getStubCount ()
StubType * getStub (U32 idx)

Protected Member Functions

void helpInitializeTOC (U32 depth)
 Helper function to allocate the right number of stubs for a quadtree of the specified depth, as well as construct them, set their positions and so forth.

Protected Attributes

StubType * mStubs
U32 mStubCount


Member Typedef Documentation

template<class StubType>
typedef StubType::ChunkType AtlasBaseTOC< StubType >::ChunkType


Constructor & Destructor Documentation

template<class StubType>
AtlasBaseTOC< StubType >::AtlasBaseTOC (  )  [inline]

template<class StubType>
AtlasBaseTOC< StubType >::~AtlasBaseTOC (  )  [inline]


Member Function Documentation

template<class StubType>
void AtlasBaseTOC< StubType >::helpInitializeTOC ( U32  depth  )  [inline, protected]

Helper function to allocate the right number of stubs for a quadtree of the specified depth, as well as construct them, set their positions and so forth.

template<class StubType>
StubType* AtlasBaseTOC< StubType >::getStub ( const U32  level,
const Point2I  pos 
) [inline]

Get the stub for a given position in the quadtree.

template<class StubType>
U32 AtlasBaseTOC< StubType >::getStubCount (  )  [inline]

template<class StubType>
StubType* AtlasBaseTOC< StubType >::getStub ( U32  idx  )  [inline]


Member Data Documentation

template<class StubType>
StubType* AtlasBaseTOC< StubType >::mStubs [protected]

template<class StubType>
U32 AtlasBaseTOC< StubType >::mStubCount [protected]