Interface for all PLY elements. More...
#include <IO.h>
Public Member Functions | |
void | addProperty (PLYProperty &prop) |
add a property to vector of properties | |
bool | operator== (const PLYElement &other) const |
comparison operator for elements | |
PLYElement (const std::string &name, const unsigned num, const unsigned offset) | |
PLY Element constructor. | |
bool | supportsProperty (const PLYProperty &prop) const |
Returns true if property pro is supported by element. | |
Public Attributes | |
std::string | name |
name identifying the PLY element | |
unsigned | nbDescriptors |
number of valid descriptors found in the header | |
unsigned | nbFeatures |
number of valid features found in the header | |
unsigned | num |
number of occurences of the element | |
unsigned | offset |
line at which data starts | |
PLYProperties | properties |
all properties found in the header | |
unsigned | total_props |
total number of properties in PLY element |
Interface for all PLY elements.
PointMatcherIO< T >::PLYElement::PLYElement | ( | const std::string & | name, |
const unsigned | num, | ||
const unsigned | offset | ||
) | [inline] |
PLY Element constructor.
name | name of the ply element (case-sensitive) |
num | number of times the element appears in the file |
offset | if there are several elements, the line offset at which this element begins. Note that, as of writing, only one (vertex) element is supported. |
This object holds information about a PLY element contained in the file. It is filled out when reading the header and used when parsing the data.
void PointMatcherIO< T >::PLYElement::addProperty | ( | PLYProperty & | prop | ) |
add a property to vector of properties
Definition at line 1702 of file pointmatcher/IO.cpp.
bool PointMatcherIO< T >::PLYElement::operator== | ( | const PLYElement & | other | ) | const |
comparison operator for elements
Definition at line 1765 of file pointmatcher/IO.cpp.
bool PointMatcherIO< T >::PLYElement::supportsProperty | ( | const PLYProperty & | prop | ) | const |
Returns true if property pro is supported by element.
Definition at line 1719 of file pointmatcher/IO.cpp.
std::string PointMatcherIO< T >::PLYElement::name |
unsigned PointMatcherIO< T >::PLYElement::nbDescriptors |
unsigned PointMatcherIO< T >::PLYElement::nbFeatures |
unsigned PointMatcherIO< T >::PLYElement::num |
unsigned PointMatcherIO< T >::PLYElement::offset |
PLYProperties PointMatcherIO< T >::PLYElement::properties |
unsigned PointMatcherIO< T >::PLYElement::total_props |