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_color_handlers.h>
Public Types | |
typedef boost::shared_ptr < const PointCloudColorHandlerRGBField < PointCloud > > | ConstPtr |
typedef boost::shared_ptr < PointCloudColorHandlerRGBField < PointCloud > > | Ptr |
Public Member Functions | |
virtual bool | getColor (vtkSmartPointer< vtkDataArray > &scalars) const |
Obtain the actual color for the input dataset as vtk scalars. | |
PointCloudColorHandlerRGBField (const PointCloudConstPtr &cloud) | |
Constructor. | |
virtual | ~PointCloudColorHandlerRGBField () |
Empty destructor. | |
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 < pcl::PCLPointCloud2 > ::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 597 of file point_cloud_color_handlers.h.
typedef boost::shared_ptr<const PointCloudColorHandlerRGBField<PointCloud> > pcl::visualization::PointCloudColorHandlerRGBField< pcl::PCLPointCloud2 >::ConstPtr |
Reimplemented from pcl::visualization::PointCloudColorHandler< pcl::PCLPointCloud2 >.
Definition at line 605 of file point_cloud_color_handlers.h.
typedef PointCloudColorHandler<pcl::PCLPointCloud2>::PointCloud pcl::visualization::PointCloudColorHandlerRGBField< pcl::PCLPointCloud2 >::PointCloud [private] |
Reimplemented from pcl::visualization::PointCloudColorHandler< pcl::PCLPointCloud2 >.
Definition at line 599 of file point_cloud_color_handlers.h.
typedef PointCloud::ConstPtr pcl::visualization::PointCloudColorHandlerRGBField< pcl::PCLPointCloud2 >::PointCloudConstPtr [private] |
Reimplemented from pcl::visualization::PointCloudColorHandler< pcl::PCLPointCloud2 >.
Definition at line 601 of file point_cloud_color_handlers.h.
typedef PointCloud::Ptr pcl::visualization::PointCloudColorHandlerRGBField< pcl::PCLPointCloud2 >::PointCloudPtr [private] |
Reimplemented from pcl::visualization::PointCloudColorHandler< pcl::PCLPointCloud2 >.
Definition at line 600 of file point_cloud_color_handlers.h.
typedef boost::shared_ptr<PointCloudColorHandlerRGBField<PointCloud> > pcl::visualization::PointCloudColorHandlerRGBField< pcl::PCLPointCloud2 >::Ptr |
Reimplemented from pcl::visualization::PointCloudColorHandler< pcl::PCLPointCloud2 >.
Definition at line 604 of file point_cloud_color_handlers.h.
pcl::visualization::PointCloudColorHandlerRGBField< pcl::PCLPointCloud2 >::PointCloudColorHandlerRGBField | ( | const PointCloudConstPtr & | cloud | ) |
Constructor.
Definition at line 107 of file point_cloud_handlers.cpp.
virtual pcl::visualization::PointCloudColorHandlerRGBField< pcl::PCLPointCloud2 >::~PointCloudColorHandlerRGBField | ( | ) | [inline, virtual] |
Empty destructor.
Definition at line 611 of file point_cloud_color_handlers.h.
bool pcl::visualization::PointCloudColorHandlerRGBField< 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 130 of file point_cloud_handlers.cpp.
virtual std::string pcl::visualization::PointCloudColorHandlerRGBField< pcl::PCLPointCloud2 >::getFieldName | ( | ) | const [inline, protected, virtual] |
Get the name of the field used.
Implements pcl::visualization::PointCloudColorHandler< pcl::PCLPointCloud2 >.
Definition at line 628 of file point_cloud_color_handlers.h.
virtual std::string pcl::visualization::PointCloudColorHandlerRGBField< pcl::PCLPointCloud2 >::getName | ( | ) | const [inline, protected, virtual] |
Get the name of the class.
Implements pcl::visualization::PointCloudColorHandler< pcl::PCLPointCloud2 >.
Definition at line 624 of file point_cloud_color_handlers.h.