2018-10-25 00:19:38 +00:00
|
|
|
#ifndef DUST3D_RIG_GENERATOR_H
|
|
|
|
#define DUST3D_RIG_GENERATOR_H
|
2018-09-14 09:45:05 +00:00
|
|
|
#include <QObject>
|
|
|
|
#include <QThread>
|
|
|
|
#include <QDebug>
|
2018-10-25 00:19:38 +00:00
|
|
|
#include "outcome.h"
|
2018-09-14 09:45:05 +00:00
|
|
|
#include "meshloader.h"
|
2018-10-26 23:04:45 +00:00
|
|
|
#include "rigger.h"
|
2018-09-14 09:45:05 +00:00
|
|
|
|
|
|
|
class RigGenerator : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2018-10-25 00:19:38 +00:00
|
|
|
RigGenerator(const Outcome &outcome);
|
2018-09-14 09:45:05 +00:00
|
|
|
~RigGenerator();
|
|
|
|
MeshLoader *takeResultMesh();
|
2018-10-26 23:04:45 +00:00
|
|
|
std::vector<RiggerBone> *takeResultBones();
|
|
|
|
std::map<int, RiggerVertexWeights> *takeResultWeights();
|
2018-09-14 09:45:05 +00:00
|
|
|
const std::vector<QString> &missingMarkNames();
|
|
|
|
const std::vector<QString> &errorMarkNames();
|
2018-10-26 23:04:45 +00:00
|
|
|
Outcome *takeOutcome();
|
2018-10-02 04:59:30 +00:00
|
|
|
bool isSucceed();
|
2018-10-26 23:04:45 +00:00
|
|
|
void generate();
|
2018-09-14 09:45:05 +00:00
|
|
|
signals:
|
|
|
|
void finished();
|
|
|
|
public slots:
|
|
|
|
void process();
|
|
|
|
private:
|
2018-10-25 00:19:38 +00:00
|
|
|
Outcome *m_outcome = nullptr;
|
2018-09-14 09:45:05 +00:00
|
|
|
MeshLoader *m_resultMesh = nullptr;
|
2018-10-26 23:04:45 +00:00
|
|
|
Rigger *m_autoRigger = nullptr;
|
|
|
|
std::vector<RiggerBone> *m_resultBones = nullptr;
|
|
|
|
std::map<int, RiggerVertexWeights> *m_resultWeights = nullptr;
|
2018-09-14 09:45:05 +00:00
|
|
|
std::vector<QString> m_missingMarkNames;
|
|
|
|
std::vector<QString> m_errorMarkNames;
|
2018-10-02 04:59:30 +00:00
|
|
|
bool m_isSucceed = false;
|
2018-09-14 09:45:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|