Skip to content

File SkeletonSetup.hpp

File List > api > cppSDK > SDKBase > SkeletonSetup.hpp

Go to the documentation of this file

#ifndef __SKELETON_SETUP_HPP__
#define __SKELETON_SETUP_HPP__

struct Vertex;
struct Triangle;

struct SkeletonSetupInfo;

struct NodeSetup;
struct ChainSetup;
struct ColliderSetup;

namespace ManusSDK
{
    class MeshSetup
    {
    public:
        MeshSetup();
        MeshSetup(uint32_t p_NodeId);
        ~MeshSetup();

        void ClearVertices();
        void ClearTriangles();

        uint32_t nodeID;
        uint32_t expectedVertexCount;
        uint32_t expectedTriangleCount;
        std::vector<Vertex*> vertices;
        std::vector<Triangle*> triangles;
    };

    class SkeletonSetup
    {
    public:
        SkeletonSetup();
        SkeletonSetup(const SkeletonSetupInfo& p_SetupInfo);
        ~SkeletonSetup();

        void ClearNodes();
        void ClearChains();
        void ClearColliders();
        void ClearMeshes();

        SkeletonSetupInfo* info;
        std::vector<NodeSetup*> nodes;
        std::vector<ChainSetup*> chains;
        std::vector<ColliderSetup*> colliders;
        std::vector<MeshSetup*> meshes;
    };

} // namespace ManusSDK

#endif // #ifndef HPP_MANUSCONVERT