-
Notifications
You must be signed in to change notification settings - Fork 3
/
ProcessingEngine.h
37 lines (28 loc) · 960 Bytes
/
ProcessingEngine.h
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
#ifndef PROCESSINGENGINE_H
#define PROCESSINGENGINE_H
#include <array>
#include <cstdint>
#include <vector>
#include <mutex>
#include <memory>
#include <QUrl>
#include <vtkActor.h>
#include <vtkPolyData.h>
#include <vtkSmartPointer.h>
class Model;
class ProcessingEngine
{
public:
ProcessingEngine();
const std::shared_ptr<Model>& addModel(const QUrl &modelFilePath);
void placeModel(Model &model) const;
void setModelsRepresentation(const int modelsRepresentationOption) const;
void setModelsOpacity(const double modelsOpacity) const;
void setModelsGouraudInterpolation(const bool enableGouraudInterpolation) const;
void updateModelsColor() const;
std::shared_ptr<Model> getModelFromActor(const vtkSmartPointer<vtkActor> modelActor) const;
private:
vtkSmartPointer<vtkPolyData> preprocessPolydata(const vtkSmartPointer<vtkPolyData> inputData) const;
std::vector<std::shared_ptr<Model>> m_models;
};
#endif // PROCESSINGENGINE_H