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

#include <nanoply.hpp>

Inheritance diagram for nanoply::DescriptorInterface:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

Constructor of the descriptor.

Parameters:
_ePly entity managed by the descriptor.
_bPointer 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.

Parameters:
_sName of the PlyProperty.
_bPointer to the memory location that contains the data of the property.

Definition at line 1713 of file nanoply.hpp.


Member Function Documentation

virtual bool nanoply::DescriptorInterface::ReadElemAscii ( PlyFile file,
PlyProperty prop 
) [pure virtual]

Read the property data from the ascii file.

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

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.

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

Implemented in nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >.

virtual void nanoply::DescriptorInterface::Restart ( ) [pure virtual]
virtual bool nanoply::DescriptorInterface::WriteElemAscii ( PlyFile file,
PlyProperty prop 
) [pure virtual]

Write the property data in the ascii file.

Parameters:
fileInput file.
propPLY property to write in the file.
Returns:
If successful returns true. Otherwise, it returns false.

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.

Parameters:
fileInput file.
propPLY property to write in the file.
fixEndianIf true the method adjust the endianess of the data.
Returns:
If successful returns true. Otherwise, it returns false.

Implemented in nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >.


Member Data Documentation

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.

Name of the PlyProperty

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