#ifndef DUST3D_APPLICATION_MESH_GENERATOR_H_ #define DUST3D_APPLICATION_MESH_GENERATOR_H_ #include #include #include #include "model.h" class MeshGenerator : public QObject, public dust3d::MeshGenerator { Q_OBJECT public: MeshGenerator(dust3d::Snapshot *snapshot); ~MeshGenerator(); Model *takeResultMesh(); Model *takePartPreviewMesh(const dust3d::Uuid &partId); QImage *takePartPreviewImage(const dust3d::Uuid &partId); public slots: void process(); signals: void finished(); private: Model *m_resultMesh = nullptr; std::map m_partPreviewMeshes; std::map m_partPreviewImages; }; #endif