]> git.sur5r.net Git - fstl/blob - src/loader.h
Added check for stl corruption
[fstl] / src / loader.h
1 #ifndef LOADER_H
2 #define LOADER_H
3
4 #include <QThread>
5
6 #include "mesh.h"
7
8 class Loader : public QThread
9 {
10     Q_OBJECT
11 public:
12     explicit Loader(QObject* parent, const QString& filename);
13     void run();
14
15 signals:
16     void loaded_file(QString filename);
17     void got_mesh(Mesh* m);
18     void error_ascii_stl();
19     void error_bad_stl();
20
21 private:
22     const QString filename;
23
24 };
25
26 #endif // LOADER_H