#include <nanoply.hpp>
Public Member Functions | |
DescriptorInterface (PlyEntity _e, void *_b) | |
DescriptorInterface (std::string &_s, void *_b) | |
virtual bool | ReadElemAscii (PlyFile &file, PlyProperty &prop)=0 |
virtual bool | ReadElemBinary (PlyFile &file, PlyProperty &prop, bool fixEndian)=0 |
virtual void | Restart ()=0 |
virtual bool | WriteElemAscii (PlyFile &file, PlyProperty &prop)=0 |
virtual bool | WriteElemBinary (PlyFile &file, PlyProperty &prop, bool fixEndian)=0 |
Public Attributes | |
void * | base |
int64_t | curPos |
PlyEntity | elem |
std::string | name |
Abstract class for the descriptor of a Ply propertie. The class defines how a PlyProperty is saved in memory.
Definition at line 1686 of file nanoply.hpp.
nanoply::DescriptorInterface::DescriptorInterface | ( | 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 1705 of file nanoply.hpp.
nanoply::DescriptorInterface::DescriptorInterface | ( | 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 1713 of file nanoply.hpp.
virtual bool nanoply::DescriptorInterface::ReadElemAscii | ( | PlyFile & | file, |
PlyProperty & | prop | ||
) | [pure virtual] |
Read the property data from the ascii file.
file | Input file. |
prop | PLY property to read from the file. |
Implemented in nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >.
virtual bool nanoply::DescriptorInterface::ReadElemBinary | ( | PlyFile & | file, |
PlyProperty & | prop, | ||
bool | fixEndian | ||
) | [pure 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. |
Implemented in nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >.
virtual void nanoply::DescriptorInterface::Restart | ( | ) | [pure virtual] |
Restart the descriptor.
Implemented in nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >.
virtual bool nanoply::DescriptorInterface::WriteElemAscii | ( | PlyFile & | file, |
PlyProperty & | prop | ||
) | [pure virtual] |
Write the property data in the ascii file.
file | Input file. |
prop | PLY property to write in the file. |
Implemented in nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >.
virtual bool nanoply::DescriptorInterface::WriteElemBinary | ( | PlyFile & | file, |
PlyProperty & | prop, | ||
bool | fixEndian | ||
) | [pure 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. |
Implemented in nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >.
Pointer to the memory location that contains the data of the property.
Definition at line 1693 of file nanoply.hpp.
Position of the next property to read or to write.
Definition at line 1691 of file nanoply.hpp.
Ply entity managed by the descriptor.
Definition at line 1695 of file nanoply.hpp.
std::string nanoply::DescriptorInterface::name |
Name of the PlyProperty
Definition at line 1697 of file nanoply.hpp.