DrawCacheMap Class Reference


Detailed Description

This class is a basic container for the map<lod group id, DrawCacheData>.

#include <DrawCacheMap.h>

Inheritance diagram for DrawCacheMap:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  DrawCacheMap ()
void  registerCache (DetailCacheData &lodCacheData)
bool  exists (const awString::IString &) const
  Returns true if cache of the same id already exists.Otherwise, returns false.
DetailCacheData getCache (const awString::IString &)
DetailCacheData createCache (const awString::IString &)
  Create new if not exists, return the old otherwise.
void  clear ()
  Clear all cached renderables.
void  moveFirst ()
DetailCacheData getNext ()
bool  isLast ()
void  setIsConsistent (bool)
  If isConsistent=false, we're modifying the cache and it's not ready for geometry loading.
bool  isConsistent ()

Protected Types

typedef aw::unordered_map
< awString::IString,
DetailCacheData
InternalMapType
  Map from lod group node id to LodCacheData.

Protected Member Functions

virtual  ~DrawCacheMap ()

Protected Attributes

InternalMapType  myCacheMap
InternalMapType::iterator  myCurIter
bool  myIsConsistent
DetailCacheData  myInvalidCacheData

Member Typedef Documentation

typedef aw::unordered_map<awString::IString, DetailCacheData> InternalMapType [protected]

Map from lod group node id to LodCacheData.


Constructor & Destructor Documentation

virtual ~DrawCacheMap ( ) [protected, virtual]

Member Function Documentation

void registerCache ( DetailCacheData lodCacheData )
bool exists ( const awString::IString &  ) const

Returns true if cache of the same id already exists.Otherwise, returns false.

DetailCacheData& getCache ( const awString::IString &  )
DetailCacheData& createCache ( const awString::IString &  )

Create new if not exists, return the old otherwise.

void clear ( )

Clear all cached renderables.

void moveFirst ( )
bool isLast ( )
void setIsConsistent ( bool  )

If isConsistent=false, we're modifying the cache and it's not ready for geometry loading.

bool isConsistent ( )

Member Data Documentation

InternalMapType::iterator myCurIter [protected]

DrawCacheMap DrawCacheMap DrawCacheMap DrawCacheMap DrawCacheMap DrawCacheMap DrawCacheMap DrawCacheMap DrawCacheMap DrawCacheMap
DrawCacheMap DrawCacheMap DrawCacheMap DrawCacheMap DrawCacheMap DrawCacheMap DrawCacheMap DrawCacheMap DrawCacheMap DrawCacheMap