src/bbox.h

changeset 223
4f95d7f2e9ef
parent 183
f1b8cb53d2a2
child 266
12e7302f14e9
--- a/src/bbox.h	Sun May 19 02:55:29 2013 +0300
+++ b/src/bbox.h	Sun May 19 03:42:25 2013 +0300
@@ -30,6 +30,10 @@
 // v0 is the minimum vertex, v1 is the maximum vertex.
 // =============================================================================
 class bbox {
+	READ_PROPERTY (bool, empty)
+	READ_PROPERTY (vertex, v0)
+	READ_PROPERTY (vertex, v1)
+	
 public:
 	bbox ();
 	void reset ();
@@ -38,7 +42,6 @@
 	void calcObject (LDObject* obj);
 	void calcVertex (vertex v);
 	vertex center () const;
-	bool empty () const;
 	
 	bbox& operator<< (LDObject* obj) {
 		calcObject (obj);
@@ -49,13 +52,6 @@
 		calcVertex (v);
 		return *this;
 	}
-	
-	const vertex& v0 () { return m_v0; }
-	const vertex& v1 () { return m_v1; }
-	
-private:
-	vertex m_v0, m_v1;
-	bool m_empty;
 };
 
 #endif // BBOX_H
\ No newline at end of file

mercurial