#include <nanoply.hpp>
Public Member Functions | |
void | AddPlyElement (PlyElement &pe) |
void | Clear () |
size_t | GetEdgeCount () |
PlyElement * | GetEdgeElement () |
PlyElement * | GetElement (std::string &name) |
PlyElement * | GetElement (PlyElemEntity e) |
size_t | GetElementCount (std::string &name) |
size_t | GetElementCount (PlyElemEntity e) |
size_t | GetFaceCount () |
PlyElement * | GetFaceElement () |
size_t | GetVertexCount () |
PlyElement * | GetVertexElement () |
Info () | |
Info (const std::string &filename) | |
bool | LoadHeader (const std::string &filename) |
bool | WriteHeader (PlyFile &file) |
Public Attributes | |
bool | bigEndian |
bool | binary |
std::vector< PlyElement > | elemVec |
ErrorCode | errInfo |
std::string | filename |
std::vector< std::string > | textureFile |
PLY header info. Define the data of the PLY header
Definition at line 1353 of file nanoply.hpp.
Default Constructor
Definition at line 1481 of file nanoply.hpp.
nanoply::Info::Info | ( | const std::string & | filename | ) |
Constructor that reads the header info from a file.
filename | Path of the file to read. |
Definition at line 1489 of file nanoply.hpp.
void nanoply::Info::AddPlyElement | ( | PlyElement & | pe | ) |
Add the ply element to the header.
pe | Ply element to write in the header. |
Definition at line 1600 of file nanoply.hpp.
void nanoply::Info::Clear | ( | void | ) | [inline] |
Clear the error code.
Definition at line 1402 of file nanoply.hpp.
size_t nanoply::Info::GetEdgeCount | ( | ) |
Return the number of edge instances
Definition at line 1636 of file nanoply.hpp.
Return a reference to the edge element
Definition at line 1676 of file nanoply.hpp.
PlyElement * nanoply::Info::GetElement | ( | std::string & | name | ) |
Return a reference to the element with a specific name
name | Name of the element. |
Definition at line 1642 of file nanoply.hpp.
Return a reference to the element with a specific element type
e | Element type. |
Definition at line 1653 of file nanoply.hpp.
size_t nanoply::Info::GetElementCount | ( | std::string & | name | ) |
Return the number of instances of the element with the input name
name | Name of the element. |
Definition at line 1606 of file nanoply.hpp.
size_t nanoply::Info::GetElementCount | ( | PlyElemEntity | e | ) |
Return the number of instances of the element with the input element type
e | Element type. |
Definition at line 1615 of file nanoply.hpp.
size_t nanoply::Info::GetFaceCount | ( | ) |
Return the number of face instances
Definition at line 1630 of file nanoply.hpp.
Return a reference to the face element
Definition at line 1670 of file nanoply.hpp.
size_t nanoply::Info::GetVertexCount | ( | ) |
Return the number of vertex instances
Definition at line 1624 of file nanoply.hpp.
Return a reference to the vertex element
Definition at line 1664 of file nanoply.hpp.
bool nanoply::Info::LoadHeader | ( | const std::string & | filename | ) |
Load the ply info from the header of the input filename.
filename | Path of the file to read. |
Definition at line 1495 of file nanoply.hpp.
bool nanoply::Info::WriteHeader | ( | PlyFile & | file | ) |
Write the ply info in the header of the input file.
file | File to write. |
Definition at line 1582 of file nanoply.hpp.
Endianess of the binary file.
Definition at line 1360 of file nanoply.hpp.
Boolean about the file format (Binary = true, ASCII = false).
Definition at line 1358 of file nanoply.hpp.
std::vector<PlyElement> nanoply::Info::elemVec |
Elements defined in the header.
Definition at line 1359 of file nanoply.hpp.
Error code returned by the reading of a PLY file.
Definition at line 1357 of file nanoply.hpp.
std::string nanoply::Info::filename |
Filename.
Definition at line 1361 of file nanoply.hpp.
std::vector<std::string> nanoply::Info::textureFile |
Texture file names.
Definition at line 1362 of file nanoply.hpp.