14 using namespace vrecko;
15 using namespace ArtificialWorld;
21 CacheInfo(osg::ref_ptr<EnvironmentObject> _eo, osg::Vec3 _position, osg::Timer_t _timestamp,
ModelType _modelType){
24 timestamp = _timestamp;
25 modelType = _modelType;
33 return (eo == ci2.
eo);
37 return !(*
this == ci2);
40 osg::ref_ptr<EnvironmentObject>
eo;
56 void initialize(
void);
58 void init(
bool useTime,
unsigned long time,
bool useDistance,
unsigned long distance,
unsigned long update_time){
59 cacheTimeEnabled = useTime;
61 cacheDistanceEnabled = useDistance;
63 update_time_ms = update_time;
72 bool loadXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode *parametersNode);
80 void GetUpdate(
string modelFilename,
int num,
ModelType modelType);
83 void DeleteUpdate(osg::ref_ptr<EnvironmentObject> deletingObject,
int num,
ModelType modelType);
86 void AddUpdate(
string modelFilename,
ModelType modelType);
96 preloader =
new Preloader(rootBlockUpdater);
102 void DeletePreloader(
void)
104 if(preloader != NULL)
106 if(preloader->Running())
112 usePreloader =
false;
118 map<string, CacheInfo*> searchDataNamed;
120 list<CacheInfo> data;
123 unsigned long holding_distance;
125 unsigned long holding_time;
127 unsigned long update_time_ms;
129 bool cacheTimeEnabled;
131 bool cacheDistanceEnabled;
138 osg::Timer updateTimer;
140 osg::Timer_t lastUpdateTime;