dust3d/src/posemeshcreator.h

30 lines
719 B
C
Raw Normal View History

#ifndef DUST3D_POSE_MESH_CREATOR_H
#define DUST3D_POSE_MESH_CREATOR_H
#include <QObject>
#include "meshloader.h"
#include "jointnodetree.h"
#include "outcome.h"
class PoseMeshCreator : public QObject
{
Q_OBJECT
signals:
void finished();
public:
PoseMeshCreator(const std::vector<JointNode> &resultNodes,
const Outcome &outcome,
const std::map<int, AutoRiggerVertexWeights> &resultWeights);
~PoseMeshCreator();
void createMesh();
MeshLoader *takeResultMesh();
public slots:
void process();
private:
std::vector<JointNode> m_resultNodes;
Outcome m_outcome;
std::map<int, AutoRiggerVertexWeights> m_resultWeights;
MeshLoader *m_resultMesh = nullptr;
};
#endif