#include <nanoply.hpp>
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) |
Memory descriptor of a Ply element. The class defines how a PlyElement is saved in memory.
Definition at line 1764 of file nanoply.hpp.
| typedef std::vector<nanoply::DescriptorInterface*> nanoply::ElementDescriptor::PropertyDescriptor |
Definition at line 1768 of file nanoply.hpp.
| nanoply::ElementDescriptor::ElementDescriptor | ( | PlyElemEntity | _e | ) | [inline] |
Constructor of the Ply element descriptor.
| _e | Ply 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.
| _s | Name of the Ply element managed by the descriptor. |
Definition at line 1786 of file nanoply.hpp.
| void nanoply::ElementDescriptor::CheckDescriptor | ( | PlyElement & | elem | ) |
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.
| elem | PLY element to write from the file. |
Definition at line 1952 of file nanoply.hpp.
| void nanoply::ElementDescriptor::ExtractDescriptor | ( | PropertyDescriptor & | descr, |
| PlyElement & | elem | ||
| ) | [private] |
Definition at line 1841 of file nanoply.hpp.
| bool nanoply::ElementDescriptor::ReadElemAscii | ( | PlyFile & | file, |
| PlyElement & | elem | ||
| ) |
Read all the property data of the element from the ascii file.
| file | Input file. |
| elem | PLY element to read from the file. |
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.
| file | Input file. |
| elem | PLY element to read from the file. |
| fixEndian | If true the method adjust the endianess of the data. |
Definition at line 1876 of file nanoply.hpp.
| bool nanoply::ElementDescriptor::WriteElemAscii | ( | PlyFile & | file, |
| PlyElement & | elem | ||
| ) |
Write all the property data of the element in the ascii file.
| file | Input file. |
| elem | PLY element to write from the file. |
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.
| file | Input file. |
| elem | PLY element to write from the file. |
| fixEndian | If true the method adjust the endianess of the data. |
Definition at line 1913 of file nanoply.hpp.
Vector of property descriptor.
Definition at line 1772 of file nanoply.hpp.
PLY Element Entity.
Definition at line 1771 of file nanoply.hpp.
| std::string nanoply::ElementDescriptor::name |
Name of the Ply element.
Definition at line 1770 of file nanoply.hpp.