Public Member Functions | Public Attributes
nanoply::Info Class Reference

#include <nanoply.hpp>

List of all members.

Public Member Functions

void AddPlyElement (PlyElement &pe)
void Clear ()
size_t GetEdgeCount ()
PlyElementGetEdgeElement ()
PlyElementGetElement (std::string &name)
PlyElementGetElement (PlyElemEntity e)
size_t GetElementCount (std::string &name)
size_t GetElementCount (PlyElemEntity e)
size_t GetFaceCount ()
PlyElementGetFaceElement ()
size_t GetVertexCount ()
PlyElementGetVertexElement ()
 Info ()
 Info (const std::string &filename)
bool LoadHeader (const std::string &filename)
bool WriteHeader (PlyFile &file)

Public Attributes

bool bigEndian
bool binary
std::vector< PlyElementelemVec
ErrorCode errInfo
std::string filename
std::vector< std::string > textureFile

Detailed Description

PLY header info. Define the data of the PLY header

Definition at line 1353 of file nanoply.hpp.


Constructor & Destructor Documentation

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.

Parameters:
filenamePath of the file to read.

Definition at line 1489 of file nanoply.hpp.


Member Function Documentation

Add the ply element to the header.

Parameters:
pePly 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.

Return the number of edge instances

Returns:
The number of edge instances

Definition at line 1636 of file nanoply.hpp.

Return a reference to the edge element

Returns:
The 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

Parameters:
nameName of the element.
Returns:
The reference to the element

Definition at line 1642 of file nanoply.hpp.

Return a reference to the element with a specific element type

Parameters:
eElement type.
Returns:
The reference to the element

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

Parameters:
nameName of the element.
Returns:
The number of instances

Definition at line 1606 of file nanoply.hpp.

Return the number of instances of the element with the input element type

Parameters:
eElement type.
Returns:
The number of instances

Definition at line 1615 of file nanoply.hpp.

Return the number of face instances

Returns:
The number of face instances

Definition at line 1630 of file nanoply.hpp.

Return a reference to the face element

Returns:
The reference to the face element

Definition at line 1670 of file nanoply.hpp.

Return the number of vertex instances

Returns:
The number of vertex instances

Definition at line 1624 of file nanoply.hpp.

Return a reference to the vertex element

Returns:
The 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.

Parameters:
filenamePath of the file to read.
Returns:
If successful returns true. Otherwise, it returns false.

Definition at line 1495 of file nanoply.hpp.

Write the ply info in the header of the input file.

Parameters:
fileFile to write.
Returns:
If successful returns true. Otherwise, it returns false.

Definition at line 1582 of file nanoply.hpp.


Member Data Documentation

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.

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.

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.


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


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:09