MIRA
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
GenericPointCloud Class Reference

#include <maps/PointCloud.h>

Inheritance diagram for GenericPointCloud:
Inheritance graph
[legend]

Public Types

typedef GenericPointCloudConstIterator const_iterator
 
typedef GenericPointCloudIterator iterator
 

Public Member Functions

 GenericPointCloud ()
 
 GenericPointCloud (const PCFormat &format)
 
 GenericPointCloud (Buffer< uint8 > iData, const PCFormat &format)
 
template<typename Reflector >
void reflect (Reflector &r)
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator end () const
 
iterator end ()
 
template<typename T >
const T & at (std::size_t idx, const PCDataField &field) const
 
std::size_t size () const
 Returns number of points in the point cloud. More...
 
const PCFormatgetFormat () const
 
void setFormat (const PCFormat &format)
 Prefer convertTo(), only use this to handle generic format field collections for which no respective type exists! More...
 
std::size_t pointStep () const
 
template<typename TPointCloud >
TPointCloud & castTo ()
 
template<typename TPointCloud >
const TPointCloud & castTo () const
 
template<typename TPointCloud >
TPointCloud & convertTo ()
 

Static Public Member Functions

template<typename PointType >
static GenericPointCloud fromStdVector (std::vector< PointType > &data)
 Creates a GenericPointCloud from an std::vector with existing data, without copying any data. More...
 
template<typename PointType >
static const GenericPointCloud fromStdVector (const std::vector< PointType > &data)
 Creates a GenericPointCloud from a const std::vector with existing data, without copying any data. More...
 

Public Attributes

Buffer< uint8data
 

Member Typedef Documentation

◆ const_iterator

◆ iterator

Constructor & Destructor Documentation

◆ GenericPointCloud() [1/3]

GenericPointCloud ( )
inline

◆ GenericPointCloud() [2/3]

GenericPointCloud ( const PCFormat format)
inline

◆ GenericPointCloud() [3/3]

GenericPointCloud ( Buffer< uint8 iData,
const PCFormat format 
)
inline

Member Function Documentation

◆ reflect()

void reflect ( Reflector &  r)
inline

◆ begin() [1/2]

const_iterator begin ( ) const
inline

◆ begin() [2/2]

iterator begin ( )
inline

◆ end() [1/2]

const_iterator end ( ) const
inline

◆ end() [2/2]

iterator end ( )
inline

◆ at()

const T& at ( std::size_t  idx,
const PCDataField field 
) const
inline

◆ size()

std::size_t size ( ) const
inline

Returns number of points in the point cloud.

This actually is: data.size() / pointStep().

◆ getFormat()

const PCFormat& getFormat ( ) const
inline

◆ setFormat()

void setFormat ( const PCFormat format)
inline

Prefer convertTo(), only use this to handle generic format field collections for which no respective type exists!

◆ pointStep()

std::size_t pointStep ( ) const
inline

◆ castTo() [1/2]

TPointCloud& castTo ( )
inline

◆ castTo() [2/2]

const TPointCloud& castTo ( ) const
inline

◆ convertTo()

TPointCloud& convertTo ( )
inline

◆ fromStdVector() [1/2]

static GenericPointCloud fromStdVector ( std::vector< PointType > &  data)
inlinestatic

Creates a GenericPointCloud from an std::vector with existing data, without copying any data.

Note, that the created point cloud does NOT take the ownership of the vector, hence the vector must exist as long as the point cloud object is used!

This method allows to convert PCL point clouds to a GenericPointCloud without copying data.

◆ fromStdVector() [2/2]

static const GenericPointCloud fromStdVector ( const std::vector< PointType > &  data)
inlinestatic

Creates a GenericPointCloud from a const std::vector with existing data, without copying any data.

Note, that the created point cloud does NOT take the ownership of the vector, hence the vector must exist as long as the point cloud object is used!

This method allows to convert PCL point clouds to a GenericPointCloud without copying data.

Member Data Documentation

◆ data

Buffer<uint8> data

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