8 #ifndef __SIM_Cache_h__
9 #define __SIM_Cache_h__
20 class SIM_SimulationState;
21 template <
typename T>
class UT_Array;
49 void cacheAndAdvance();
65 bool deleteAfterTime(
const SIM_Time &time);
73 void clearForDestruction();
80 const SIM_Time &getCurrentTime()
const;
83 const SIM_Time &getEarliestTime()
const;
84 const SIM_Time &getLatestTime()
const;
88 SIM_SimulationState &getCurrentSimulationObjects()
const;
93 bool isFrameCached(
exint frame)
const;
101 bool allowinterpolation);
109 bool allowinterpolation);
123 int getObjectsAtPastTimes(
126 const int num_objects,
132 int getRelationshipsAtPastTimes(
157 void clearInterpolatedObjects(
162 void postSimulationStep();
166 void loadFromDisk(SIM_CacheEntry *entry);
169 void ensureCacheCompliesWithOptions();
172 void clearInterpolatedObjects(
bool clearsubsteps);
177 bool allowinterpolation,
187 SIM_CacheEntry *getInitialEntry();
189 void clearInitialEntry();
191 SIM_CacheEntry *getCurrentEntry()
const;
193 void setCurrentEntry(SIM_CacheEntry *newentry);
198 SIM_CacheEntry *myCurrentEntry;
199 SIM_CacheEntry *myInitialEntry;
GLsizei GLenum GLsizei GLsizei GLuint memory
GT_API const UT_StringHolder time
Holds pointers to a number of SIM_Object objects.
This class stores all the caching options used by the SIM_Cache.