summaryrefslogtreecommitdiff
path: root/src/cgalworker.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-12-25 22:00:30 (GMT)
committerMarius Kintel <marius@kintel.net>2011-12-25 22:00:30 (GMT)
commit7c48b345b12981085bf6741208893a8206d77578 (patch)
treedec80733c559903f6c463a3827e4bf2e2cea562e /src/cgalworker.h
parent3e64e63b0113a99666ad68aa3e82bb7b80324d9b (diff)
Perform CGAL evaluation in a separate thread. First steps towards better GUI responsiveness and parallelization
Diffstat (limited to 'src/cgalworker.h')
-rw-r--r--src/cgalworker.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/cgalworker.h b/src/cgalworker.h
new file mode 100644
index 0000000..cf60c24
--- /dev/null
+++ b/src/cgalworker.h
@@ -0,0 +1,28 @@
+#ifndef CGALWORKER_H_
+#define CGALWORKER_H_
+
+#include <QObject>
+
+class CGALWorker : public QObject
+{
+ Q_OBJECT;
+public:
+ CGALWorker();
+ virtual ~CGALWorker();
+
+public slots:
+ void start(const class Tree &tree);
+
+protected slots:
+ void work();
+
+signals:
+ void done(class CGAL_Nef_polyhedron *);
+
+protected:
+
+ class QThread *thread;
+ const class Tree *tree;
+};
+
+#endif
contact: Jan Huwald // Impressum