Public Member Functions | Protected Attributes | Private Types
pcl::visualization::PointCloudColorHandlerCustom< pcl::PCLPointCloud2 > 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_color_handlers.h>

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

List of all members.

Public Member Functions

virtual bool 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.
virtual ~PointCloudColorHandlerCustom ()
 Empty destructor.

Protected Attributes

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

Private Types

typedef PointCloudColorHandler
< pcl::PCLPointCloud2 >
::PointCloud 
PointCloud
typedef PointCloud::ConstPtr PointCloudConstPtr
typedef PointCloud::Ptr PointCloudPtr

Detailed Description

template<>
class pcl::visualization::PointCloudColorHandlerCustom< pcl::PCLPointCloud2 >

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

Author:
Radu B. Rusu

Definition at line 550 of file point_cloud_color_handlers.h.


Member Typedef Documentation


Constructor & Destructor Documentation

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

Constructor.

Definition at line 558 of file point_cloud_color_handlers.h.

Empty destructor.

Definition at line 567 of file point_cloud_color_handlers.h.


Member Function Documentation

bool pcl::visualization::PointCloudColorHandlerCustom< pcl::PCLPointCloud2 >::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
Returns:
true if the operation was successful (the handler is capable and the input cloud was given as a valid pointer), false otherwise

Implements pcl::visualization::PointCloudColorHandler< pcl::PCLPointCloud2 >.

Definition at line 48 of file point_cloud_handlers.cpp.

Get the name of the field used.

Implements pcl::visualization::PointCloudColorHandler< pcl::PCLPointCloud2 >.

Definition at line 575 of file point_cloud_color_handlers.h.

Get the name of the class.

Implements pcl::visualization::PointCloudColorHandler< pcl::PCLPointCloud2 >.

Definition at line 571 of file point_cloud_color_handlers.h.


Member Data Documentation

Definition at line 587 of file point_cloud_color_handlers.h.

Definition at line 587 of file point_cloud_color_handlers.h.

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

Definition at line 587 of file point_cloud_color_handlers.h.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:47:36