Ocular Engine
Ocular::Graphics::PLYElementListParser Class Reference
Inheritance diagram for Ocular::Graphics::PLYElementListParser:
Ocular::Graphics::PLYParser

Public Member Functions

virtual bool parse (std::string const &line, std::vector< Vertex > &vertices, std::vector< uint32_t > &indices, uint32_t &currVert, uint32_t &currIndex, Math::Vector3f &min, Math::Vector3f &max, bool isASCII=true) override
 

Additional Inherited Members

- Public Attributes inherited from Ocular::Graphics::PLYParser
PLYElementType type
 
uint32_t count
 
- Protected Member Functions inherited from Ocular::Graphics::PLYParser
bool splitProperty (std::string const &line, uint32_t tokenCount, uint32_t *tokens)
 

Member Function Documentation

bool Ocular::Graphics::PLYElementListParser::parse ( std::string const &  line,
std::vector< Vertex > &  vertices,
std::vector< uint32_t > &  indices,
uint32_t &  currVert,
uint32_t &  currIndex,
Math::Vector3f min,
Math::Vector3f max,
bool  isASCII = true 
)
overridevirtual

Parses a single line of a PLY file.

Parameters
[in]lineThe currently line of the PLY file to parse
[out]verticesVector of mesh vertices
[out]indicesVector of mesh indices
[out]currVertThe current vertices index. If one or more indices were added in this parse, increment this accordingly.
[out]currIndexThe current indices index. If one or more indices were added in this parse, increment this accordingly.
Returns
TRUE if the line was parsed without any errors.

Implements Ocular::Graphics::PLYParser.


The documentation for this class was generated from the following files: