31 lines
870 B
C++
31 lines
870 B
C++
#ifndef DUST3D_APPLICATION_MESH_GENERATOR_H_
|
|
#define DUST3D_APPLICATION_MESH_GENERATOR_H_
|
|
|
|
#include "model_mesh.h"
|
|
#include "monochrome_mesh.h"
|
|
#include <QImage>
|
|
#include <QObject>
|
|
#include <dust3d/mesh/mesh_generator.h>
|
|
#include <memory>
|
|
|
|
class MeshGenerator : public QObject, public dust3d::MeshGenerator {
|
|
Q_OBJECT
|
|
public:
|
|
MeshGenerator(dust3d::Snapshot* snapshot);
|
|
~MeshGenerator();
|
|
ModelMesh* takeResultMesh();
|
|
std::map<dust3d::Uuid, std::unique_ptr<ModelMesh>>* takeComponentPreviewMeshes();
|
|
MonochromeMesh* takeWireframeMesh();
|
|
public slots:
|
|
void process();
|
|
signals:
|
|
void finished();
|
|
|
|
private:
|
|
std::unique_ptr<ModelMesh> m_resultMesh;
|
|
std::unique_ptr<std::map<dust3d::Uuid, std::unique_ptr<ModelMesh>>> m_componentPreviewMeshes;
|
|
std::unique_ptr<MonochromeMesh> m_wireframeMesh;
|
|
};
|
|
|
|
#endif
|