--- a/src/basics.h Sun Oct 04 16:55:26 2015 +0300 +++ b/src/basics.h Sun Oct 04 22:54:17 2015 +0300 @@ -163,36 +163,25 @@ // class LDBoundingBox { - PROPERTY (private, bool, isEmpty, setEmpty, STOCK_WRITE) - PROPERTY (private, Vertex, vertex0, setVertex0, STOCK_WRITE) - PROPERTY (private, Vertex, vertex1, setVertex1, STOCK_WRITE) - public: - // Constructs an empty bounding box. LDBoundingBox(); - // Clears the bounding box - void reset(); - - // Returns the length of the bounding box on the longest measure. + void calcObject (LDObject* obj); + void calcVertex (const Vertex& vertex); + Vertex center() const; + bool isEmpty() const; double longestMeasurement() const; - - // Calculates the given \c obj to the bounding box, adjusting - // extremas if necessary. - void calcObject (LDObject* obj); + void reset(); + const Vertex& vertex0() const; + const Vertex& vertex1() const; - // Calculates the given \c vertex to the bounding box, adjusting - // extremas if necessary. - void calcVertex (const Vertex& vertex); + LDBoundingBox& operator<< (LDObject* obj); + LDBoundingBox& operator<< (const Vertex& v); - // Yields the center of the bounding box. - Vertex center() const; - - // An operator overload for calcObject() - LDBoundingBox& operator<< (LDObject* obj); - - // An operator overload for calcVertex() - LDBoundingBox& operator<< (const Vertex& v); +private: + bool m_isEmpty; + Vertex m_vertex0; + Vertex m_vertex1; }; extern const Vertex Origin;