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>
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 |
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.
typedef PointCloudColorHandler<pcl::PCLPointCloud2>::PointCloud pcl::visualization::PointCloudColorHandlerCustom< pcl::PCLPointCloud2 >::PointCloud [private] |
Reimplemented from pcl::visualization::PointCloudColorHandler< pcl::PCLPointCloud2 >.
Definition at line 552 of file point_cloud_color_handlers.h.
typedef PointCloud::ConstPtr pcl::visualization::PointCloudColorHandlerCustom< pcl::PCLPointCloud2 >::PointCloudConstPtr [private] |
Reimplemented from pcl::visualization::PointCloudColorHandler< pcl::PCLPointCloud2 >.
Definition at line 554 of file point_cloud_color_handlers.h.
typedef PointCloud::Ptr pcl::visualization::PointCloudColorHandlerCustom< pcl::PCLPointCloud2 >::PointCloudPtr [private] |
Reimplemented from pcl::visualization::PointCloudColorHandler< pcl::PCLPointCloud2 >.
Definition at line 553 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.
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 >.
Definition at line 48 of file point_cloud_handlers.cpp.
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.