Point Cloud Library (PCL)
1.7.0
|
Handler for predefined user colors. More...
#include <pcl/visualization/point_cloud_color_handlers.h>
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_ |
Handler for predefined user colors.
The color at each point will be drawn as the use given R, G, B values.
Definition at line 550 of file point_cloud_color_handlers.h.
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.
virtual pcl::visualization::PointCloudColorHandlerCustom< pcl::PCLPointCloud2 >::~PointCloudColorHandlerCustom | ( | ) | [inline, virtual] |
Empty destructor.
Definition at line 567 of file point_cloud_color_handlers.h.
virtual bool pcl::visualization::PointCloudColorHandlerCustom< pcl::PCLPointCloud2 >::getColor | ( | vtkSmartPointer< vtkDataArray > & | scalars | ) | const [virtual] |
Obtain the actual color for the input dataset as vtk scalars.
[out] | scalars | the output scalars containing the color for the dataset |
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.
double pcl::visualization::PointCloudColorHandlerCustom< pcl::PCLPointCloud2 >::b_ [protected] |
Definition at line 587 of file point_cloud_color_handlers.h.
double pcl::visualization::PointCloudColorHandlerCustom< pcl::PCLPointCloud2 >::g_ [protected] |
Definition at line 587 of file point_cloud_color_handlers.h.
double pcl::visualization::PointCloudColorHandlerCustom< pcl::PCLPointCloud2 >::r_ [protected] |
Internal R, G, B holding the values given by the user.
Definition at line 587 of file point_cloud_color_handlers.h.