25 void recountTriangles(); |
25 void recountTriangles(); |
26 int triangleCount() const; |
26 int triangleCount() const; |
27 QVector<LDObject*>::iterator begin(); |
27 QVector<LDObject*>::iterator begin(); |
28 QVector<LDObject*>::iterator end(); |
28 QVector<LDObject*>::iterator end(); |
29 bool isEmpty() const; |
29 bool isEmpty() const; |
|
30 DocumentManager* documentManager() const; |
|
31 LDObject* insertFromString(int position, QString line); |
|
32 LDObject* addFromString(QString line); |
|
33 LDObject* replaceWithFromString(LDObject* object, QString line); |
30 |
34 |
31 template<typename T, typename... Args> |
35 template<typename T, typename... Args> |
32 T* emplace(Args&& ...args) |
36 T* emplace(Args&& ...args) |
33 { |
37 { |
34 T* object = constructObject<T>(args...); |
38 T* object = constructObject<T>(args...); |
83 |
87 |
84 void withdraw(LDObject* object); |
88 void withdraw(LDObject* object); |
85 virtual LDObject* withdrawAt(int position); |
89 virtual LDObject* withdrawAt(int position); |
86 |
90 |
87 QVector<LDObject*> _objects; |
91 QVector<LDObject*> _objects; |
|
92 DocumentManager* _manager; |
88 mutable int _triangleCount = 0; |
93 mutable int _triangleCount = 0; |
89 mutable bool _needsTriangleRecount; |
94 mutable bool _needsTriangleRecount; |
90 }; |
95 }; |