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>
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 |
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.
typedef PointCloudColorHandler<sensor_msgs::PointCloud2>::PointCloud pcl::visualization::PointCloudColorHandlerCustom< sensor_msgs::PointCloud2 >::PointCloud [private] |
Reimplemented from pcl::visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 809 of file point_cloud_handlers.h.
typedef PointCloud::ConstPtr pcl::visualization::PointCloudColorHandlerCustom< sensor_msgs::PointCloud2 >::PointCloudConstPtr [private] |
Reimplemented from pcl::visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 811 of file point_cloud_handlers.h.
typedef PointCloud::Ptr pcl::visualization::PointCloudColorHandlerCustom< sensor_msgs::PointCloud2 >::PointCloudPtr [private] |
Reimplemented from pcl::visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 810 of file point_cloud_handlers.h.
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.
void pcl::visualization::PointCloudColorHandlerCustom< sensor_msgs::PointCloud2 >::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< 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.
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.