Public Member Functions | Protected Attributes | Private Types
pcl::visualization::PointCloudColorHandlerCustom< sensor_msgs::PointCloud2 > Class Template Reference

Handler for predefined user colors. The color at each point will be drawn as the use given R, G, B values. More...

#include <point_cloud_handlers.h>

Inheritance diagram for pcl::visualization::PointCloudColorHandlerCustom< sensor_msgs::PointCloud2 >:
Inheritance graph
[legend]

List of all members.

Public 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.
 PointCloudColorHandlerCustom (const PointCloudConstPtr &cloud, double r, double g, double b)
 Constructor.

Protected Attributes

double b_
double g_
double r_
 Internal R, G, B holding the values given by the user.

Private Types

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

Detailed Description

template<>
class pcl::visualization::PointCloudColorHandlerCustom< sensor_msgs::PointCloud2 >

Handler for predefined user colors. The color at each point will be drawn as the use given R, G, B values.

Definition at line 807 of file point_cloud_handlers.h.


Member Typedef Documentation

typedef PointCloudColorHandler<sensor_msgs::PointCloud2>::PointCloud pcl::visualization::PointCloudColorHandlerCustom< sensor_msgs::PointCloud2 >::PointCloud [private]
typedef PointCloud::Ptr pcl::visualization::PointCloudColorHandlerCustom< sensor_msgs::PointCloud2 >::PointCloudPtr [private]

Constructor & Destructor Documentation

pcl::visualization::PointCloudColorHandlerCustom< sensor_msgs::PointCloud2 >::PointCloudColorHandlerCustom ( const PointCloudConstPtr cloud,
double  r,
double  g,
double  b 
) [inline]

Constructor.

Definition at line 815 of file point_cloud_handlers.h.


Member Function Documentation

void pcl::visualization::PointCloudColorHandlerCustom< sensor_msgs::PointCloud2 >::getColor ( vtkSmartPointer< vtkDataArray > &  scalars) const [virtual]

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

Parameters:
[out]scalarsthe output scalars containing the color for the dataset

Implements pcl::visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.

Definition at line 45 of file point_cloud_handlers.cpp.

virtual std::string pcl::visualization::PointCloudColorHandlerCustom< sensor_msgs::PointCloud2 >::getFieldName ( ) const [inline, virtual]

Get the name of the field used.

Implements pcl::visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.

Definition at line 829 of file point_cloud_handlers.h.

virtual std::string pcl::visualization::PointCloudColorHandlerCustom< sensor_msgs::PointCloud2 >::getName ( ) const [inline, virtual]

Get the name of the class.

Implements pcl::visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.

Definition at line 825 of file point_cloud_handlers.h.


Member Data Documentation

double pcl::visualization::PointCloudColorHandlerCustom< sensor_msgs::PointCloud2 >::b_ [protected]

Definition at line 839 of file point_cloud_handlers.h.

double pcl::visualization::PointCloudColorHandlerCustom< sensor_msgs::PointCloud2 >::g_ [protected]

Definition at line 839 of file point_cloud_handlers.h.

double pcl::visualization::PointCloudColorHandlerCustom< sensor_msgs::PointCloud2 >::r_ [protected]

Internal R, G, B holding the values given by the user.

Definition at line 839 of file point_cloud_handlers.h.


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


pcl
Author(s): Open Perception
autogenerated on Mon Oct 6 2014 03:20:40