#include <nanoply.hpp>
Public Member Functions | |
DataDescriptor () | |
DataDescriptor (PlyEntity _e, void *_b) | |
DataDescriptor (std::string &_s, void *_b) | |
bool | ReadElemAscii (PlyFile &file, PlyProperty &prop) |
bool | ReadElemBinary (PlyFile &file, PlyProperty &prop, bool fixEndian) |
void | Restart () |
bool | WriteElemAscii (PlyFile &file, PlyProperty &prop) |
bool | WriteElemBinary (PlyFile &file, PlyProperty &prop, bool fixEndian) |
Private Member Functions | |
template<typename C > | |
void | ReadAscii (PlyFile &file, PlyProperty &prop) |
template<typename C > | |
void | ReadBinary (PlyFile &file, PlyProperty &prop, bool fixEndian) |
template<typename C > | |
void | WriteAscii (PlyFile &file, PlyProperty &prop) |
template<typename C > | |
void | WriteBinary (PlyFile &file, PlyProperty &prop, bool fixEndian) |
Memory descriptor of a vector of properties. The class defines how a vector of PlyProperty is saved in memory.
CointainerType | Type of the container of the property |
VectorSize | Number of values stored in the property. |
ScalarType | Type of the values stored in the property. |
Definition at line 1979 of file nanoply.hpp.
nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >::DataDescriptor | ( | ) |
nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >::DataDescriptor | ( | PlyEntity | _e, |
void * | _b | ||
) | [inline] |
Constructor of the descriptor.
_e | Ply entity managed by the descriptor. |
_b | Pointer to the memory location that contains the data of the property. |
Definition at line 1991 of file nanoply.hpp.
nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >::DataDescriptor | ( | std::string & | _s, |
void * | _b | ||
) | [inline] |
Constructor of the descriptor.
_s | Name of the PlyProperty. |
_b | Pointer to the memory location that contains the data of the property. |
Definition at line 1999 of file nanoply.hpp.
void nanoply::DataDescriptor< ContainerType, VectorSize, ScalarType >::ReadAscii | ( | PlyFile & | file, |
PlyProperty & | prop | ||
) | [private] |
Definition at line 2123 of file nanoply.hpp.
void nanoply::DataDescriptor< ContainerType, VectorSize, ScalarType >::ReadBinary | ( | PlyFile & | file, |
PlyProperty & | prop, | ||
bool | fixEndian | ||
) | [private] |
Definition at line 2036 of file nanoply.hpp.
bool nanoply::DataDescriptor< ContainerType, VectorSize, ScalarType >::ReadElemAscii | ( | PlyFile & | file, |
PlyProperty & | prop | ||
) | [virtual] |
Read the property data from the ascii file.
file | Input file. |
prop | PLY property to read from the file. |
Implements nanoply::DescriptorInterface.
Definition at line 2152 of file nanoply.hpp.
bool nanoply::DataDescriptor< ContainerType, VectorSize, ScalarType >::ReadElemBinary | ( | PlyFile & | file, |
PlyProperty & | prop, | ||
bool | fixEndian | ||
) | [virtual] |
Read the property data from the binary file.
file | Input file. |
prop | PLY property to read from the file. |
fixEndian | If true the method adjust the endianess of the data. |
Implements nanoply::DescriptorInterface.
Definition at line 2085 of file nanoply.hpp.
void nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >::Restart | ( | ) | [virtual] |
Restart the descriptor.
Implements nanoply::DescriptorInterface.
Definition at line 2029 of file nanoply.hpp.
void nanoply::DataDescriptor< ContainerType, VectorSize, ScalarType >::WriteAscii | ( | PlyFile & | file, |
PlyProperty & | prop | ||
) | [private] |
Definition at line 2271 of file nanoply.hpp.
void nanoply::DataDescriptor< ContainerType, VectorSize, ScalarType >::WriteBinary | ( | PlyFile & | file, |
PlyProperty & | prop, | ||
bool | fixEndian | ||
) | [private] |
Definition at line 2190 of file nanoply.hpp.
bool nanoply::DataDescriptor< ContainerType, VectorSize, ScalarType >::WriteElemAscii | ( | PlyFile & | file, |
PlyProperty & | prop | ||
) | [virtual] |
Write the property data in the ascii file.
file | Input file. |
prop | PLY property to write in the file. |
Implements nanoply::DescriptorInterface.
Definition at line 2318 of file nanoply.hpp.
bool nanoply::DataDescriptor< ContainerType, VectorSize, ScalarType >::WriteElemBinary | ( | PlyFile & | file, |
PlyProperty & | prop, | ||
bool | fixEndian | ||
) | [virtual] |
Write the property data in the binary file.
file | Input file. |
prop | PLY property to write in the file. |
fixEndian | If true the method adjust the endianess of the data. |
Implements nanoply::DescriptorInterface.
Definition at line 2234 of file nanoply.hpp.