src/basics.h

changeset 1010
969b48eddd6b
parent 1006
a6b462051ae0
child 1013
fa025ba493d8
child 1217
314e12e23c3a
--- 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;

mercurial