This class is a basic container for the map<lod group id, DrawCacheData>.
#include <DrawCacheMap.h>
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 |
typedef aw::unordered_map<awString::IString,
DetailCacheData>
InternalMapType [protected] |
Map from lod group node id to LodCacheData.
DrawCacheMap | ( | ) |
virtual ~DrawCacheMap | ( | ) | [protected, virtual] |
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 | ( | ) |
InternalMapType
myCacheMap [protected] |
InternalMapType::iterator
myCurIter [protected] |
bool
myIsConsistent [protected] |