Public Member Functions | Private Member Functions
nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType > Class Template Reference

#include <nanoply.hpp>

Inheritance diagram for nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >:
Inheritance graph
[legend]

List of all members.

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)

Detailed Description

template<class CointainerType, int VectorSize, typename ScalarType>
class nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >

Memory descriptor of a vector of properties. The class defines how a vector of PlyProperty is saved in memory.

Template Parameters:
CointainerTypeType of the container of the property
VectorSizeNumber of values stored in the property.
ScalarTypeType of the values stored in the property.

Definition at line 1979 of file nanoply.hpp.


Constructor & Destructor Documentation

template<class CointainerType, int VectorSize, typename ScalarType>
nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >::DataDescriptor ( )
template<class CointainerType, int VectorSize, typename ScalarType>
nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >::DataDescriptor ( PlyEntity  _e,
void *  _b 
) [inline]

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 1991 of file nanoply.hpp.

template<class CointainerType, int VectorSize, typename ScalarType>
nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >::DataDescriptor ( 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 1999 of file nanoply.hpp.


Member Function Documentation

template<class ContainerType , int VectorSize, typename ScalarType >
template<typename C >
void nanoply::DataDescriptor< ContainerType, VectorSize, ScalarType >::ReadAscii ( PlyFile file,
PlyProperty prop 
) [private]

Definition at line 2123 of file nanoply.hpp.

template<class ContainerType , int VectorSize, typename ScalarType >
template<typename C >
void nanoply::DataDescriptor< ContainerType, VectorSize, ScalarType >::ReadBinary ( PlyFile file,
PlyProperty prop,
bool  fixEndian 
) [private]

Definition at line 2036 of file nanoply.hpp.

template<class ContainerType , int VectorSize, typename ScalarType >
bool nanoply::DataDescriptor< ContainerType, VectorSize, ScalarType >::ReadElemAscii ( PlyFile file,
PlyProperty prop 
) [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.

Implements nanoply::DescriptorInterface.

Definition at line 2152 of file nanoply.hpp.

template<class ContainerType , int VectorSize, typename ScalarType >
bool nanoply::DataDescriptor< ContainerType, VectorSize, ScalarType >::ReadElemBinary ( PlyFile file,
PlyProperty prop,
bool  fixEndian 
) [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.

Implements nanoply::DescriptorInterface.

Definition at line 2085 of file nanoply.hpp.

template<class CointainerType , int VectorSize, typename ScalarType >
void nanoply::DataDescriptor< CointainerType, VectorSize, ScalarType >::Restart ( ) [virtual]

Restart the descriptor.

Implements nanoply::DescriptorInterface.

Definition at line 2029 of file nanoply.hpp.

template<class ContainerType , int VectorSize, typename ScalarType >
template<typename C >
void nanoply::DataDescriptor< ContainerType, VectorSize, ScalarType >::WriteAscii ( PlyFile file,
PlyProperty prop 
) [private]

Definition at line 2271 of file nanoply.hpp.

template<class ContainerType , int VectorSize, typename ScalarType >
template<typename C >
void nanoply::DataDescriptor< ContainerType, VectorSize, ScalarType >::WriteBinary ( PlyFile file,
PlyProperty prop,
bool  fixEndian 
) [private]

Definition at line 2190 of file nanoply.hpp.

template<class ContainerType , int VectorSize, typename ScalarType >
bool nanoply::DataDescriptor< ContainerType, VectorSize, ScalarType >::WriteElemAscii ( PlyFile file,
PlyProperty prop 
) [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.

Implements nanoply::DescriptorInterface.

Definition at line 2318 of file nanoply.hpp.

template<class ContainerType , int VectorSize, typename ScalarType >
bool nanoply::DataDescriptor< ContainerType, VectorSize, ScalarType >::WriteElemBinary ( PlyFile file,
PlyProperty prop,
bool  fixEndian 
) [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.

Implements nanoply::DescriptorInterface.

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