dust3d/application/sources/bone_generator.h

30 lines
893 B
C
Raw Normal View History

#ifndef DUST3D_APPLICATION_BONE_GENERATOR_H_
#define DUST3D_APPLICATION_BONE_GENERATOR_H_
#include "model_mesh.h"
#include <QObject>
2022-12-03 16:58:33 +00:00
#include <dust3d/base/snapshot.h>
#include <dust3d/rig/bone_generator.h>
#include <map>
#include <memory>
class BoneGenerator : public QObject, public dust3d::BoneGenerator {
Q_OBJECT
public:
2022-12-03 16:58:33 +00:00
BoneGenerator(std::unique_ptr<dust3d::Object> object, std::unique_ptr<dust3d::Snapshot> snapshot);
std::map<dust3d::Uuid, std::unique_ptr<ModelMesh>>* takeBonePreviewMeshes();
2022-12-06 09:01:22 +00:00
std::unique_ptr<ModelMesh> takeBodyPreviewMesh();
public slots:
void process();
signals:
void finished();
private:
std::unique_ptr<std::map<dust3d::Uuid, std::unique_ptr<ModelMesh>>> m_bonePreviewMeshes;
2022-12-03 16:58:33 +00:00
std::unique_ptr<dust3d::Object> m_object;
std::unique_ptr<dust3d::Snapshot> m_snapshot;
2022-12-06 09:01:22 +00:00
std::unique_ptr<ModelMesh> m_bodyPreviewMesh;
};
#endif