15 class DocumentManager* documents; |
15 class DocumentManager* documents; |
16 }; |
16 }; |
17 |
17 |
18 struct PolygonCache |
18 struct PolygonCache |
19 { |
19 { |
20 std::vector<WithId<PolygonElement>> cachedPolygons; |
20 using vector_type = std::vector<WithId<PolygonElement>>; |
|
21 vector_type cachedPolygons; |
21 bool needRecache = true; |
22 bool needRecache = true; |
22 }; |
23 }; |
23 |
24 |
24 const std::vector<WithId<PolygonElement>>& getCachedPolygons( |
25 const PolygonCache::vector_type* getCachedPolygons( |
25 PolygonCache* cache, |
26 PolygonCache* cache, |
26 Model* model, |
27 Model* model, |
27 class DocumentManager* documents); |
28 class DocumentManager* documents); |
|
29 PolygonCache* findPolygonCacheForModel(Model* model, DocumentManager* context); |