summaryrefslogtreecommitdiff
path: root/src/dxfdata.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-08-05 00:11:20 (GMT)
committerMarius Kintel <marius@kintel.net>2011-08-05 00:11:20 (GMT)
commit80e526880a0b44361fe6793ac740a19e65df44b2 (patch)
treeb2b209f24e5e8d582ea52e0d3edccb011d3b578a /src/dxfdata.h
parenta586a9650386abeb6588ee8216e9fb9659a8c56d (diff)
Started on getBoundingBox functionality, refactored some vector code as part of this initiative
Diffstat (limited to 'src/dxfdata.h')
-rw-r--r--src/dxfdata.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/dxfdata.h b/src/dxfdata.h
index d59ff5a..e71a740 100644
--- a/src/dxfdata.h
+++ b/src/dxfdata.h
@@ -3,17 +3,15 @@
#include <QList>
#include <QString>
+#include <Eigen/Dense>
+
+using Eigen::Vector2d;
class DxfData
{
public:
- struct Point {
- double x, y;
- Point() : x(0), y(0) { }
- Point(double x, double y) : x(x), y(y) { }
- };
struct Path {
- QList<Point*> points;
+ QList<Vector2d*> points;
bool is_closed, is_inner;
Path() : is_closed(false), is_inner(false) { }
};
@@ -33,7 +31,7 @@ public:
}
};
- QList<Point> points;
+ QList<Vector2d> points;
QList<Path> paths;
QList<Dim> dims;
@@ -43,7 +41,7 @@ public:
DxfData(const struct CGAL_Nef_polyhedron &N);
#endif
- Point *addPoint(double x, double y);
+ Vector2d *addPoint(double x, double y);
private:
void fixup_path_direction();
contact: Jan Huwald // Impressum