2018-09-18 03:17:35 +00:00
|
|
|
#ifndef POSE_MESH_CREATOR_H
|
|
|
|
#define POSE_MESH_CREATOR_H
|
|
|
|
#include <QObject>
|
|
|
|
#include "meshloader.h"
|
|
|
|
#include "jointnodetree.h"
|
|
|
|
#include "meshresultcontext.h"
|
|
|
|
|
|
|
|
class PoseMeshCreator : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
signals:
|
|
|
|
void finished();
|
|
|
|
public:
|
2018-10-02 04:59:30 +00:00
|
|
|
PoseMeshCreator(const std::vector<JointNode> &resultNodes,
|
2018-09-18 03:17:35 +00:00
|
|
|
const MeshResultContext &meshResultContext,
|
|
|
|
const std::map<int, AutoRiggerVertexWeights> &resultWeights);
|
|
|
|
~PoseMeshCreator();
|
|
|
|
void createMesh();
|
|
|
|
MeshLoader *takeResultMesh();
|
|
|
|
public slots:
|
|
|
|
void process();
|
|
|
|
private:
|
|
|
|
std::vector<JointNode> m_resultNodes;
|
|
|
|
MeshResultContext m_meshResultContext;
|
|
|
|
std::map<int, AutoRiggerVertexWeights> m_resultWeights;
|
|
|
|
MeshLoader *m_resultMesh = nullptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|