Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes
PointMatcherIO< T >::PLYElement Class Reference

Interface for all PLY elements. Implementations must provide definition of getPMType() More...

#include <IO.h>

Inheritance diagram for PointMatcherIO< T >::PLYElement:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addProperty (PLYProperty &prop)
 add a property to vector of properties
const PLYDescPropMapgetDescPropMap () 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< PLYPropertydescriptors
 Vector which holds element properties corresponding to PM features.
std::vector< PLYPropertyfeatures
 Vector which holds element properties corresponding to PM features.

Detailed Description

template<typename T>
class PointMatcherIO< T >::PLYElement

Interface for all PLY elements. Implementations must provide definition of getPMType()

Definition at line 163 of file IO.h.


Member Enumeration Documentation

template<typename T>
enum PointMatcherIO::PLYElement::PMPropTypes [protected]

possible properties: either a libpointmatcher feature, descriptor, or it is unsupported and will be ignored

Enumerator:
FEATURE 
DESCRIPTOR 
UNSUPPORTED 

Definition at line 205 of file IO.h.


Constructor & Destructor Documentation

template<typename T>
PointMatcherIO< T >::PLYElement::PLYElement ( const std::string &  name,
const unsigned  num,
const unsigned  offset 
) [inline]

PLY Element constructor.

Parameters:
namename of the ply element (case-sensitive)
numnumber of times the element appears in the file
offsetif 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.

Definition at line 180 of file IO.h.


Member Function Documentation

template<typename T >
void PointMatcherIO< T >::PLYElement::addProperty ( PLYProperty prop)

add a property to vector of properties

Definition at line 1602 of file IO.cpp.

template<typename T >
const PointMatcherIO< T >::PLYDescPropMap & PointMatcherIO< T >::PLYElement::getDescPropMap ( ) const

return map, descriptor name -> vector of PLY desc properties

Definition at line 1676 of file IO.cpp.

template<typename T >
const std::vector< typename PointMatcherIO< T >::PLYProperty > & PointMatcherIO< T >::PLYElement::getDescriptorProps ( ) const

return vector of descriptor properties

Definition at line 1670 of file IO.cpp.

template<typename T >
const std::vector< typename PointMatcherIO< T >::PLYProperty > & PointMatcherIO< T >::PLYElement::getFeatureProps ( ) const

return vector of feature properties

Definition at line 1664 of file IO.cpp.

template<typename T >
int PointMatcherIO< T >::PLYElement::getNumDescProp ( ) const

get number of PM supported descriptor properties

Definition at line 1658 of file IO.cpp.

template<typename T >
int PointMatcherIO< T >::PLYElement::getNumDescriptors ( ) const

get number of PM descriptors in element

Definition at line 1652 of file IO.cpp.

template<typename T >
int PointMatcherIO< T >::PLYElement::getNumFeatures ( ) const

get number of PM supported feature properties

Definition at line 1646 of file IO.cpp.

template<typename T >
size_t PointMatcherIO< T >::PLYElement::getNumSupportedProperties ( ) const

return number of properties

Definition at line 1682 of file IO.cpp.

template<typename T>
virtual PMPropTypes PointMatcherIO< T >::PLYElement::getPMType ( const PLYProperty prop) const [protected, pure virtual]

return the relation to pointmatcher

Implemented in PointMatcherIO< T >::PLYVertex.

template<typename T >
bool PointMatcherIO< T >::PLYElement::operator== ( const PLYElement other) const

comparison operator for elements

Definition at line 1742 of file IO.cpp.

template<typename T >
bool PointMatcherIO< T >::PLYElement::supportsProperty ( const PLYProperty prop) const

Returns true if property pro is supported by element.

Definition at line 1687 of file IO.cpp.


Member Data Documentation

template<typename T>
PLYDescPropMap PointMatcherIO< T >::PLYElement::descriptor_map [protected]

Map descriptor -> descriptor PLY property.

Definition at line 214 of file IO.h.

template<typename T>
std::vector<PLYProperty> PointMatcherIO< T >::PLYElement::descriptors [protected]

Vector which holds element properties corresponding to PM features.

Definition at line 213 of file IO.h.

template<typename T>
std::vector<PLYProperty> PointMatcherIO< T >::PLYElement::features [protected]

Vector which holds element properties corresponding to PM features.

Definition at line 212 of file IO.h.

template<typename T>
std::string PointMatcherIO< T >::PLYElement::name

name identifying the PLY element

Definition at line 166 of file IO.h.

template<typename T>
unsigned PointMatcherIO< T >::PLYElement::num

number of occurences of the element

Definition at line 167 of file IO.h.

template<typename T>
unsigned PointMatcherIO< T >::PLYElement::offset

line at which data starts

Definition at line 169 of file IO.h.

template<typename T>
unsigned PointMatcherIO< T >::PLYElement::total_props

total number of properties in PLY element

Definition at line 168 of file IO.h.


The documentation for this class was generated from the following files:


upstream_src
Author(s):
autogenerated on Wed Sep 24 2014 10:42:01