Public Types |
| typedef unsigned int | NumElementsWithSurface |
typedef std::map
< DtSurface::DtCharacteristics,
NumElementsWithSurface > | DtSurfaceToTerrainElementCountMap |
Public Member Functions |
| | DtSurfaceManager () |
| | DtSurfaceManager (unsigned int numSurfaces) |
| virtual | ~DtSurfaceManager () |
| | DtSurfaceManager (const DtSurfaceManager &orig) |
| DtSurfaceManager & | operator= (const DtSurfaceManager &orig) |
| virtual bool | surface (DtSurfaceID surfID, DtSurface &surf) const |
| virtual DtSurface & | surface (DtSurfaceID surfID) const |
| virtual bool | addSurface (const DtSurface &surfaceToAdd, DtSurfaceID &surfID, bool allowDuplicates=false) |
| virtual bool | removeDuplicates (int &numDuplicates, int &numEntries, DtSurfaceID *&oldIDToNewIDMapping) |
| virtual unsigned int | numberOfSurfaces () const |
| virtual bool | isValidID (DtSurfaceID surfID) const |
| virtual void | dump () const |
| virtual bool | expandToManage (unsigned int numSurfaces) |
| virtual void | updateSurfaceTerrainElementMap (DtSurfaceID key, unsigned int numElements) |
| virtual bool | numTerrainElements (DtSurfaceID surfID, unsigned int &numTerrainElements) |
virtual
DtSurfaceToTerrainElementCountMap & | surfaceToTerrainElementCountMap () |
| virtual int | sizeInBytes () const |
Protected Member Functions |
| bool | testInvariant () const |
| bool | addNewSurface (const DtSurface &surfaceToAdd, DtSurfaceID &surfID) |
| bool | isDuplicate (const DtSurface &surface, DtSurfaceID &managedSurfID) const |
| bool | isDuplicate (const DtSurfaceID &comparisonSurfID, DtSurfaceID &managedSurfID) const |
| virtual bool | expandSurfaceArray (unsigned int numToExpandBy=DEFAULT_SURF_MGR_EXPANSION_AMOUNT) |
Protected Attributes |
| unsigned int | myNumberOfSurfaces |
| unsigned int | myMaxNumberOfSurfaces |
| DtSurface * | mySurfaceArray |
| DtSurfaceToTerrainElementCountMap | mySurfaceToNumElementsMap |