Interface for all PLY elements. Implementations must provide definition of getPMType() More...
#include <IO.h>
Public Member Functions | |
void | addProperty (PLYProperty &prop) |
add a property to vector of properties | |
const PLYDescPropMap & | getDescPropMap () const |
return map, descriptor name -> vector of PLY desc properties | |
const std::vector< PLYProperty > & | getDescriptorProps () const |
return vector of descriptor properties | |
const std::vector< PLYProperty > & | getFeatureProps () const |
return vector of feature properties | |
int | getNumDescProp () const |
get number of PM supported descriptor properties | |
int | getNumDescriptors () const |
get number of PM descriptors in element | |
int | getNumFeatures () const |
get number of PM supported feature properties | |
size_t | getNumSupportedProperties () const |
return number 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 | num |
number of occurences of the element | |
unsigned | offset |
line at which data starts | |
unsigned | total_props |
total number of properties in PLY element | |
Protected Types | |
enum | PMPropTypes { FEATURE, DESCRIPTOR, UNSUPPORTED } |
possible properties: either a libpointmatcher feature, descriptor, or it is unsupported and will be ignored More... | |
Protected Member Functions | |
virtual PMPropTypes | getPMType (const PLYProperty &prop) const =0 |
return the relation to pointmatcher | |
Protected Attributes | |
PLYDescPropMap | descriptor_map |
Map descriptor -> descriptor PLY property. | |
std::vector< PLYProperty > | descriptors |
Vector which holds element properties corresponding to PM features. | |
std::vector< PLYProperty > | features |
Vector which holds element properties corresponding to PM features. |
Interface for all PLY elements. Implementations must provide definition of getPMType()
enum PointMatcherIO::PLYElement::PMPropTypes [protected] |
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 | ) |
const PointMatcherIO< T >::PLYDescPropMap & PointMatcherIO< T >::PLYElement::getDescPropMap | ( | ) | const |
const std::vector< typename PointMatcherIO< T >::PLYProperty > & PointMatcherIO< T >::PLYElement::getDescriptorProps | ( | ) | const |
const std::vector< typename PointMatcherIO< T >::PLYProperty > & PointMatcherIO< T >::PLYElement::getFeatureProps | ( | ) | const |
int PointMatcherIO< T >::PLYElement::getNumDescProp | ( | ) | const |
int PointMatcherIO< T >::PLYElement::getNumDescriptors | ( | ) | const |
int PointMatcherIO< T >::PLYElement::getNumFeatures | ( | ) | const |
size_t PointMatcherIO< T >::PLYElement::getNumSupportedProperties | ( | ) | const |
virtual PMPropTypes PointMatcherIO< T >::PLYElement::getPMType | ( | const PLYProperty & | prop | ) | const [protected, pure virtual] |
return the relation to pointmatcher
Implemented in PointMatcherIO< T >::PLYVertex.
bool PointMatcherIO< T >::PLYElement::operator== | ( | const PLYElement & | other | ) | const |
bool PointMatcherIO< T >::PLYElement::supportsProperty | ( | const PLYProperty & | prop | ) | const |
PLYDescPropMap PointMatcherIO< T >::PLYElement::descriptor_map [protected] |
std::vector<PLYProperty> PointMatcherIO< T >::PLYElement::descriptors [protected] |
std::vector<PLYProperty> PointMatcherIO< T >::PLYElement::features [protected] |
std::string PointMatcherIO< T >::PLYElement::name |
unsigned PointMatcherIO< T >::PLYElement::num |
unsigned PointMatcherIO< T >::PLYElement::offset |
unsigned PointMatcherIO< T >::PLYElement::total_props |