18 #ifndef __H__OCULAR_GRAPHICS_MESH_RESOURCE_LOADER_PLY__H__
19 #define __H__OCULAR_GRAPHICS_MESH_RESOURCE_LOADER_PLY__H__
21 #include "Graphics/Mesh/MeshLoaders/MeshResourceLoader.hpp"
22 #include "PLYEnums.hpp"
42 class PLYElementParser;
43 class PLYElementListParser;
63 bool parseElement(std::ifstream& stream, std::string& line,
PLYParser** parser);
64 bool parseElementNameAndCount(std::string
const& line,
PLYParser* parser)
const;
68 bool parseBody(std::ifstream& stream, std::vector<Graphics::Vertex>& vertices, std::vector<uint32_t>& indices, uint32_t& numVertices, uint32_t& numIndices,
Math::Vector3f& min,
Math::Vector3f& max);
70 bool isValidPLYFile(std::ifstream& stream)
const;
71 bool isComment(std::string
const& line)
const;
72 bool isElement(std::string
const& line)
const;
73 bool isElementList(std::string
const& line)
const;
74 bool isFormatASCII(std::string
const& line)
const;
76 PLYPropertyType toPropertyType(std::string
const& str)
const;
77 PLYElementType toElementType(std::string
const& str)
const;
79 void reserveVectorSpace(std::vector<Graphics::Vertex>& vertices, std::vector<uint32_t>& indices)
const;
83 std::list<PLYParser*> m_Parsers;
bool parseHeader(std::ifstream &stream)
Definition: MeshResourceLoader_PLY.cpp:107
virtual bool readFile(Core::File const &file, std::vector< Graphics::Vertex > &vertices, std::vector< uint32_t > &indices, uint32_t &numVertices, uint32_t &numIndices, Math::Vector3f &min, Math::Vector3f &max) override
Definition: MeshResourceLoader_PLY.cpp:60
Definition: MeshResourceLoader.hpp:50
Definition: PLYParser.hpp:45
Definition: MeshResourceLoader_PLY.hpp:51
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: PLYElementParser.hpp:41
Definition: PLYElementListParser.hpp:40