#ifndef Export_Export_h__ #define Export_Export_h__ #include #include #include "MayaIncludes.h" #include "Material.h" #include "Mesh.h" #include "Skeleton.h" #include "WriteToFile.h" class Export { public: Export(); ~Export(); struct AnimationInfo { std::string Name; int Start; int End; }; bool Meshes(std::string pathName, bool selectedOnly = false); bool Materials(std::string pathName); bool Animations(std::string pathName, std::vector animInfo); private: bool GetMeshData(MObjectArray object); bool GetMaterialData(); bool GetAnimationData(AnimationInfo info); void WriteMeshData(std::string pathName); void WriteAnimData(std::string pathName); void WriteMaterialData(std::string pathName); Material m_MaterialHandler; Skeleton m_SkeletonHandler; MeshClass m_MeshHandler; //File export WriteToFile m_MeshFile; WriteToFile m_AnimFile; WriteToFile m_MtrlFile; //Mesh Data Mesh meshes; //Animation Data std::vector allBindPoses; std::vector allAnimations; //Material Data std::vector* AllMaterials; }; #endif