dust3d/application/sources/bone_generator.h

28 lines
789 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();
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;
};
#endif