2018-09-14 09:45:05 +00:00
|
|
|
#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();
|
2018-09-18 03:17:35 +00:00
|
|
|
MeshResultContext *takeMeshResultContext();
|
2018-09-14 09:45:05 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|