Point Cloud Library (PCL)  1.7.0
Public Member Functions | Protected Attributes
pcl::visualization::PointCloudColorHandlerCustom< pcl::PCLPointCloud2 > Class Template Reference

Handler for predefined user colors. More...

#include <pcl/visualization/point_cloud_color_handlers.h>

+ Inheritance diagram for pcl::visualization::PointCloudColorHandlerCustom< pcl::PCLPointCloud2 >:

List of all members.

Public Member Functions

 PointCloudColorHandlerCustom (const PointCloudConstPtr &cloud, double r, double g, double b)
 Constructor.
virtual ~PointCloudColorHandlerCustom ()
 Empty destructor.
virtual std::string getName () const
 Get the name of the class.
virtual std::string getFieldName () const
 Get the name of the field used.
virtual bool getColor (vtkSmartPointer< vtkDataArray > &scalars) const
 Obtain the actual color for the input dataset as vtk scalars.

Protected Attributes

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

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.


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

virtual 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 >.

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

Get the name of the field used.

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

Definition at line 575 of file point_cloud_color_handlers.h.

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

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 file: