src/polygoncache.h

changeset 305
d891da20abca
parent 264
76a025db4948
child 309
d862721d19a3
equal deleted inserted replaced
304:5d280bceb713 305:d891da20abca
16 }; 16 };
17 17
18 struct PolygonCache 18 struct PolygonCache
19 { 19 {
20 using vector_type = std::vector<WithId<PolygonElement>>; 20 using vector_type = std::vector<WithId<PolygonElement>>;
21 vector_type cachedPolygons; 21 vector_type polygons;
22 bool needRecache = true; 22 bool needRecache = true;
23 }; 23 };
24 24
25 const PolygonCache::vector_type* getCachedPolygons( 25 void recacheIfNeeded(
26 PolygonCache* cache, 26 PolygonCache* cache,
27 Model* model, 27 Model* model,
28 class DocumentManager* documents); 28 class DocumentManager* documents);
29 PolygonCache* findPolygonCacheForModel(Model* model, DocumentManager* context); 29 PolygonCache* findPolygonCacheForModel(Model* model, DocumentManager* context);

mercurial