Public Types | Public Member Functions | Public Attributes | Private Member Functions
nanoply::ElementDescriptor Class Reference

#include <nanoply.hpp>

List of all members.

Public Types

typedef std::vector
< nanoply::DescriptorInterface * > 
PropertyDescriptor

Public Member Functions

void CheckDescriptor (PlyElement &elem)
 ElementDescriptor (PlyElemEntity _e)
 ElementDescriptor (std::string &_s)
bool ReadElemAscii (PlyFile &file, PlyElement &elem)
bool ReadElemBinary (PlyFile &file, PlyElement &elem, bool fixEndian)
bool WriteElemAscii (PlyFile &file, PlyElement &elem)
bool WriteElemBinary (PlyFile &file, PlyElement &elem, bool fixEndian)

Public Attributes

PropertyDescriptor dataDescriptor
PlyElemEntity elem
std::string name

Private Member Functions

void ExtractDescriptor (PropertyDescriptor &descr, PlyElement &elem)

Detailed Description

Memory descriptor of a Ply element. The class defines how a PlyElement is saved in memory.

Definition at line 1764 of file nanoply.hpp.


Member Typedef Documentation

Definition at line 1768 of file nanoply.hpp.


Constructor & Destructor Documentation

Constructor of the Ply element descriptor.

Parameters:
_ePly Element entity managed by the descriptor.

Definition at line 1779 of file nanoply.hpp.

nanoply::ElementDescriptor::ElementDescriptor ( std::string &  _s) [inline]

Constructor of the Ply element descriptor.

Parameters:
_sName of the Ply element managed by the descriptor.

Definition at line 1786 of file nanoply.hpp.


Member Function Documentation

Check if the properties defined in input element have a proper data descriport to write in the file. It sets the variable "validToWrite" for all the Ply properties with a data descriport.

Parameters:
elemPLY element to write from the file.

Definition at line 1952 of file nanoply.hpp.

Definition at line 1841 of file nanoply.hpp.

Read all the property data of the element from the ascii file.

Parameters:
fileInput file.
elemPLY element to read from the file.
Returns:
If successful returns true. Otherwise, it returns false.

Definition at line 1895 of file nanoply.hpp.

bool nanoply::ElementDescriptor::ReadElemBinary ( PlyFile file,
PlyElement elem,
bool  fixEndian 
)

Read all the properties of the element from the binary file.

Parameters:
fileInput file.
elemPLY element to read from the file.
fixEndianIf true the method adjust the endianess of the data.
Returns:
If successful returns true. Otherwise, it returns false.

Definition at line 1876 of file nanoply.hpp.

Write all the property data of the element in the ascii file.

Parameters:
fileInput file.
elemPLY element to write from the file.
Returns:
If successful returns true. Otherwise, it returns false.

Definition at line 1928 of file nanoply.hpp.

bool nanoply::ElementDescriptor::WriteElemBinary ( PlyFile file,
PlyElement elem,
bool  fixEndian 
)

Write all the property data of the element in the binary file.

Parameters:
fileInput file.
elemPLY element to write from the file.
fixEndianIf true the method adjust the endianess of the data.
Returns:
If successful returns true. Otherwise, it returns false.

Definition at line 1913 of file nanoply.hpp.


Member Data Documentation

Vector of property descriptor.

Definition at line 1772 of file nanoply.hpp.

PLY Element Entity.

Definition at line 1771 of file nanoply.hpp.

Name of the Ply element.

Definition at line 1770 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