RGB handler class for colors. Uses the data present in the "rgb" or "rgba" fields as the color at each point. More...
#include <point_cloud_handlers.h>
Public Types | |
typedef boost::shared_ptr < const PointCloudColorHandlerRGBField < PointCloud > > | ConstPtr |
typedef boost::shared_ptr < PointCloudColorHandlerRGBField < PointCloud > > | Ptr |
Public Member Functions | |
virtual void | getColor (vtkSmartPointer< vtkDataArray > &scalars) const |
Obtain the actual color for the input dataset as vtk scalars. | |
PointCloudColorHandlerRGBField (const PointCloudConstPtr &cloud) | |
Constructor. | |
Protected Member Functions | |
virtual std::string | getFieldName () const |
Get the name of the field used. | |
virtual std::string | getName () const |
Get the name of the class. | |
Private Types | |
typedef PointCloudColorHandler < sensor_msgs::PointCloud2 > ::PointCloud | PointCloud |
typedef PointCloud::ConstPtr | PointCloudConstPtr |
typedef PointCloud::Ptr | PointCloudPtr |
RGB handler class for colors. Uses the data present in the "rgb" or "rgba" fields as the color at each point.
Definition at line 848 of file point_cloud_handlers.h.
typedef boost::shared_ptr<const PointCloudColorHandlerRGBField<PointCloud> > pcl::visualization::PointCloudColorHandlerRGBField< sensor_msgs::PointCloud2 >::ConstPtr |
Reimplemented from pcl::visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 856 of file point_cloud_handlers.h.
typedef PointCloudColorHandler<sensor_msgs::PointCloud2>::PointCloud pcl::visualization::PointCloudColorHandlerRGBField< sensor_msgs::PointCloud2 >::PointCloud [private] |
Reimplemented from pcl::visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 850 of file point_cloud_handlers.h.
typedef PointCloud::ConstPtr pcl::visualization::PointCloudColorHandlerRGBField< sensor_msgs::PointCloud2 >::PointCloudConstPtr [private] |
Reimplemented from pcl::visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 852 of file point_cloud_handlers.h.
typedef PointCloud::Ptr pcl::visualization::PointCloudColorHandlerRGBField< sensor_msgs::PointCloud2 >::PointCloudPtr [private] |
Reimplemented from pcl::visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 851 of file point_cloud_handlers.h.
typedef boost::shared_ptr<PointCloudColorHandlerRGBField<PointCloud> > pcl::visualization::PointCloudColorHandlerRGBField< sensor_msgs::PointCloud2 >::Ptr |
Reimplemented from pcl::visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 855 of file point_cloud_handlers.h.
pcl::visualization::PointCloudColorHandlerRGBField< sensor_msgs::PointCloud2 >::PointCloudColorHandlerRGBField | ( | const PointCloudConstPtr & | cloud | ) |
Constructor.
Definition at line 102 of file point_cloud_handlers.cpp.
void pcl::visualization::PointCloudColorHandlerRGBField< 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 125 of file point_cloud_handlers.cpp.
virtual std::string pcl::visualization::PointCloudColorHandlerRGBField< sensor_msgs::PointCloud2 >::getFieldName | ( | ) | const [inline, protected, virtual] |
Get the name of the field used.
Implements pcl::visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 874 of file point_cloud_handlers.h.
virtual std::string pcl::visualization::PointCloudColorHandlerRGBField< sensor_msgs::PointCloud2 >::getName | ( | ) | const [inline, protected, virtual] |
Get the name of the class.
Implements pcl::visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 870 of file point_cloud_handlers.h.