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); |