dust3d/src/riggenerator.h

39 lines
1.1 KiB
C++

#ifndef RIG_GENERATOR_H
#define RIG_GENERATOR_H
#include <QObject>
#include <QThread>
#include <QDebug>
#include "meshresultcontext.h"
#include "meshloader.h"
#include "autorigger.h"
class RigGenerator : public QObject
{
Q_OBJECT
public:
RigGenerator(const MeshResultContext &meshResultContext);
~RigGenerator();
MeshLoader *takeResultMesh();
std::vector<AutoRiggerBone> *takeResultBones();
std::map<int, AutoRiggerVertexWeights> *takeResultWeights();
const std::vector<QString> &missingMarkNames();
const std::vector<QString> &errorMarkNames();
MeshResultContext *takeMeshResultContext();
bool isSucceed();
signals:
void finished();
public slots:
void process();
private:
MeshResultContext *m_meshResultContext = nullptr;
MeshLoader *m_resultMesh = nullptr;
AutoRigger *m_autoRigger = nullptr;
std::vector<AutoRiggerBone> *m_resultBones = nullptr;
std::map<int, AutoRiggerVertexWeights> *m_resultWeights = nullptr;
std::vector<QString> m_missingMarkNames;
std::vector<QString> m_errorMarkNames;
bool m_isSucceed = false;
};
#endif