Fawkes API  Fawkes Development Version
fawkes::PointCloudManager::StorageAdapter Class Referenceabstract

Adapter base class. More...

#include <>>

Inheritance diagram for fawkes::PointCloudManager::StorageAdapter:

Public Member Functions

virtual ~StorageAdapter ()
 Virtual empty destructor. More...
 
template<typename PointT >
bool is_pointtype () const
 Check if storage adapter is for specified point type. More...
 
template<typename PointT >
PointCloudStorageAdapter< PointT > * as_pointtype ()
 Transform to specific PointCloudStorageAdapter. More...
 
virtual const char * get_typename ()=0
 Get typename of storage adapter. More...
 
virtual StorageAdapterclone () const =0
 Clone this storage adapter. More...
 
virtual size_t point_size () const =0
 Get size of a point. More...
 
virtual unsigned int width () const =0
 Get width of point cloud. More...
 
virtual unsigned int height () const =0
 Get height of point cloud. More...
 
virtual size_t num_points () const =0
 Get numer of points in point cloud. More...
 
virtual void * data_ptr () const =0
 Get pointer on data. More...
 
virtual void get_time (fawkes::Time &time) const =0
 Get last capture time. More...
 
template<typename PointT >
PointCloudManager::PointCloudStorageAdapter< PointT > * as_pointtype ()
 

Detailed Description

Adapter base class.

The adapter base class is required to store point clouds of arbitrary point types.

Author
Tim Niemueller

Definition at line 85 of file pointcloud_manager.h.

Constructor & Destructor Documentation

fawkes::PointCloudManager::StorageAdapter::~StorageAdapter ( )
virtual

Virtual empty destructor.

Definition at line 101 of file pointcloud_manager.cpp.

Member Function Documentation

template<typename PointT >
template< PointT > PointCloudManager::PointCloudStorageAdapter< PointT > * fawkes::PointCloudManager::StorageAdapter::as_pointtype ( )

Transform to specific PointCloudStorageAdapter.

Returns
transformed PointCloudStorageAdapter
Exceptions
Exceptionthrown if storage adapter is not of requested point type or does not exist
PointCloudManager::StorageAdapter * fawkes::PointCloudManager::StorageAdapter::clone ( ) const
pure virtual

Clone this storage adapter.

Returns
cloned copy

Implemented in fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >.

void * fawkes::PointCloudManager::StorageAdapter::data_ptr ( ) const
pure virtual

Get pointer on data.

Returns
pointer on data

Implemented in fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >.

Referenced by RosPointCloudAdapter::get_data().

void fawkes::PointCloudManager::StorageAdapter::get_time ( fawkes::Time time) const
pure virtual

Get last capture time.

Parameters
timeupon return contains last capture time

Implemented in fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >.

Referenced by RosPointCloudAdapter::get_data().

const char * fawkes::PointCloudManager::StorageAdapter::get_typename ( )
pure virtual

Get typename of storage adapter.

Returns
type name

Implemented in fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >.

unsigned int fawkes::PointCloudManager::StorageAdapter::height ( ) const
pure virtual

Get height of point cloud.

Returns
height of point cloud

Implemented in fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >.

Referenced by RosPointCloudAdapter::get_data().

template<typename PointT >
bool fawkes::PointCloudManager::StorageAdapter::is_pointtype ( ) const

Check if storage adapter is for specified point type.

Returns
true if storage adapter is for specified point type, false otherwise

Definition at line 146 of file pointcloud_manager.h.

size_t fawkes::PointCloudManager::StorageAdapter::num_points ( ) const
pure virtual

Get numer of points in point cloud.

Returns
number of points

Implemented in fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >.

Referenced by RosPointCloudAdapter::get_data().

size_t fawkes::PointCloudManager::StorageAdapter::point_size ( ) const
pure virtual

Get size of a point.

Returns
size in bytes of a single point

Implemented in fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >.

Referenced by RosPointCloudAdapter::get_data().

unsigned int fawkes::PointCloudManager::StorageAdapter::width ( ) const
pure virtual

Get width of point cloud.

Returns
width of point cloud

Implemented in fawkes::PointCloudManager::PointCloudStorageAdapter< PointT >.

Referenced by RosPointCloudAdapter::get_data().


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