-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCommandModelAdd.h
More file actions
43 lines (30 loc) · 794 Bytes
/
CommandModelAdd.h
File metadata and controls
43 lines (30 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef COMMANDMODELADD_H
#define COMMANDMODELADD_H
#include <memory>
#include <QUrl>
#include <QThread>
#include "CommandModel.h"
class Model;
class ProcessingEngine;
class vtkRenderer;
class CommandModelAdd : public QThread, public CommandModel
{
Q_OBJECT
public:
CommandModelAdd(vtkRenderer *vtkRenderer, std::shared_ptr<ProcessingEngine> processingEngine, QUrl modelPath);
void run() Q_DECL_OVERRIDE;
bool isReady() const override;
void execute() override;
unsigned typeis() const override {return 2 ;};
signals:
void ready();
void done();
private:
std::shared_ptr<ProcessingEngine> m_processingEngine;
std::shared_ptr<Model> m_model = nullptr;
QUrl m_modelPath;
double m_positionX;
double m_positionY;
bool m_ready = false;
};
#endif // COMMANDMODELADD_H