pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 > Class Template Reference

Generic field handler class for colors. More...

#include <point_cloud_handlers.h>

Inheritance diagram for pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef boost::shared_ptr
< const
PointCloudColorHandlerGenericField
< PointCloud > > 
ConstPtr
typedef boost::shared_ptr
< PointCloudColorHandlerGenericField
< PointCloud > > 
Ptr

Public Member Functions

 PointCloudColorHandlerGenericField (const PointCloud &cloud, const std::string &field_name)
 Constructor.

Protected Member Functions

virtual void getColor (vtkSmartPointer< vtkDataArray > &scalars) const
 Obtain the actual color for the input dataset as vtk scalars.
virtual std::string getFieldName () const
 Get the name of the field used.
virtual std::string getName () const
 Get the name of the class.

Private Types

typedef PointCloudColorHandler
< sensor_msgs::PointCloud2 >
::PointCloud 
PointCloud
typedef PointCloud::ConstPtr PointCloudConstPtr
typedef PointCloud::Ptr PointCloudPtr

Private Attributes

std::string field_name_
 Name of the field used to create the color handler.

Detailed Description

template<>
class pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >

Generic field handler class for colors.

Definition at line 697 of file point_cloud_handlers.h.


Member Typedef Documentation

typedef PointCloudColorHandler<sensor_msgs::PointCloud2>::PointCloud pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::PointCloud [private]
typedef PointCloud::ConstPtr pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::PointCloudConstPtr [private]
typedef PointCloud::Ptr pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::PointCloudPtr [private]

Constructor & Destructor Documentation

pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::PointCloudColorHandlerGenericField ( const PointCloud cloud,
const std::string &  field_name 
)

Constructor.


Member Function Documentation

void pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::getColor ( vtkSmartPointer< vtkDataArray > &  scalars  )  const [protected, virtual]

Obtain the actual color for the input dataset as vtk scalars.

Parameters:
scalars the resultant scalars containing the color for the input dataset

Implements pcl_visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.

Definition at line 216 of file point_cloud_handlers.cpp.

virtual std::string pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::getFieldName (  )  const [inline, protected, virtual]

Get the name of the field used.

Implements pcl_visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.

Definition at line 715 of file point_cloud_handlers.h.

virtual std::string pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::getName (  )  const [inline, protected, virtual]

Get the name of the class.

Implements pcl_visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.

Definition at line 712 of file point_cloud_handlers.h.


Member Data Documentation

std::string pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::field_name_ [private]

Name of the field used to create the color handler.

Definition at line 724 of file point_cloud_handlers.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


pcl_visualization
Author(s): Radu Bogdan Rusu, Bastian Steder, Ethan Rublee
autogenerated on Fri Jan 11 09:59:20 2013