summaryrefslogtreecommitdiff
path: root/src/dxfdata.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-03 20:44:41 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-03 20:44:41 (GMT)
commit6096f2734a9a2f2c789f2e948c021def6b41f85b (patch)
treeed87e8732c45c19413de488ccd16fafe049111b2 /src/dxfdata.h
parent946605234c7cf35cadfe9bde5531ebe6655f1b42 (diff)
De-Qt-ification continues, almost done with DxfData
Diffstat (limited to 'src/dxfdata.h')
-rw-r--r--src/dxfdata.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/dxfdata.h b/src/dxfdata.h
index a513edf..c467160 100644
--- a/src/dxfdata.h
+++ b/src/dxfdata.h
@@ -1,7 +1,7 @@
#ifndef DXFDATA_H_
#define DXFDATA_H_
-#include <QList>
+#include <vector>
#include <QString>
#include <Eigen/Dense>
@@ -11,7 +11,7 @@ class DxfData
{
public:
struct Path {
- QList<Vector2d*> points;
+ std::vector<int> indices; // indices into DxfData::points
bool is_closed, is_inner;
Path() : is_closed(false), is_inner(false) { }
};
@@ -20,7 +20,7 @@ public:
double coords[7][2];
double angle;
double length;
- QString name;
+ std::string name;
Dim() {
for (int i = 0; i < 7; i++)
for (int j = 0; j < 2; j++)
@@ -31,14 +31,16 @@ public:
}
};
- QList<Vector2d> points;
- QList<Path> paths;
- QList<Dim> dims;
+ std::vector<Vector2d> points;
+ std::vector<Path> paths;
+ std::vector<Dim> dims;
DxfData();
- DxfData(double fn, double fs, double fa, QString filename, QString layername = QString(), double xorigin = 0.0, double yorigin = 0.0, double scale = 1.0);
+ DxfData(double fn, double fs, double fa,
+ const std::string &filename, const std::string &layername = "",
+ double xorigin = 0.0, double yorigin = 0.0, double scale = 1.0);
- Vector2d *addPoint(double x, double y);
+ int addPoint(double x, double y);
void fixup_path_direction();
};
contact: Jan Huwald // Impressum