38 using int64 = qint64; |
38 using int64 = qint64; |
39 using uint8 = quint8; |
39 using uint8 = quint8; |
40 using uint16 = quint16; |
40 using uint16 = quint16; |
41 using uint32 = quint32; |
41 using uint32 = quint32; |
42 using uint64 = quint64; |
42 using uint64 = quint64; |
43 using LDObjectPtr = QSharedPointer<LDObject>; |
43 using LDObject* = QSharedPointer<LDObject>; |
44 using LDObjectList = QList<LDObjectPtr>; |
44 using LDObjectList = QList<LDObject*>; |
45 using LDObjectWeakPtr = QWeakPointer<LDObject>; |
45 using LDObjectWeakPtr = QWeakPointer<LDObject>; |
46 using LDObjectWeakList = QList<LDObjectWeakPtr>; |
46 using LDObjectWeakList = QList<LDObjectWeakPtr>; |
47 using LDDocumentPtr = QSharedPointer<LDDocument>; |
47 using LDDocumentPtr = QSharedPointer<LDDocument>; |
48 using LDDocumentWeakPtr = QWeakPointer<LDDocument>; |
48 using LDDocumentWeakPtr = QWeakPointer<LDDocument>; |
49 |
49 |
178 // Returns the length of the bounding box on the longest measure. |
178 // Returns the length of the bounding box on the longest measure. |
179 double longestMeasurement() const; |
179 double longestMeasurement() const; |
180 |
180 |
181 // Calculates the given \c obj to the bounding box, adjusting |
181 // Calculates the given \c obj to the bounding box, adjusting |
182 // extremas if necessary. |
182 // extremas if necessary. |
183 void calcObject (LDObjectPtr obj); |
183 void calcObject (LDObject* obj); |
184 |
184 |
185 // Calculates the given \c vertex to the bounding box, adjusting |
185 // Calculates the given \c vertex to the bounding box, adjusting |
186 // extremas if necessary. |
186 // extremas if necessary. |
187 void calcVertex (const Vertex& vertex); |
187 void calcVertex (const Vertex& vertex); |
188 |
188 |
189 // Yields the center of the bounding box. |
189 // Yields the center of the bounding box. |
190 Vertex center() const; |
190 Vertex center() const; |
191 |
191 |
192 // An operator overload for calcObject() |
192 // An operator overload for calcObject() |
193 LDBoundingBox& operator<< (LDObjectPtr obj); |
193 LDBoundingBox& operator<< (LDObject* obj); |
194 |
194 |
195 // An operator overload for calcVertex() |
195 // An operator overload for calcVertex() |
196 LDBoundingBox& operator<< (const Vertex& v); |
196 LDBoundingBox& operator<< (const Vertex& v); |
197 }; |
197 }; |
198 |
198 |