Generic field handler class for colors. More...
#include <point_cloud_handlers.h>
Public Types | |
typedef boost::shared_ptr < const PointCloudColorHandlerGenericField < PointCloud > > | ConstPtr |
typedef boost::shared_ptr < PointCloudColorHandlerGenericField < PointCloud > > | Ptr |
Public Member Functions | |
PointCloudColorHandlerGenericField (const PointCloud &cloud, const std::string &field_name) | |
Constructor. | |
Protected 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. | |
Private Types | |
typedef PointCloudColorHandler < sensor_msgs::PointCloud2 > ::PointCloud | PointCloud |
typedef PointCloud::ConstPtr | PointCloudConstPtr |
typedef PointCloud::Ptr | PointCloudPtr |
Private Attributes | |
std::string | field_name_ |
Name of the field used to create the color handler. |
Generic field handler class for colors.
Definition at line 697 of file point_cloud_handlers.h.
typedef boost::shared_ptr<const PointCloudColorHandlerGenericField<PointCloud> > pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::ConstPtr |
Reimplemented from pcl_visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 705 of file point_cloud_handlers.h.
typedef PointCloudColorHandler<sensor_msgs::PointCloud2>::PointCloud pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::PointCloud [private] |
Reimplemented from pcl_visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 699 of file point_cloud_handlers.h.
typedef PointCloud::ConstPtr pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::PointCloudConstPtr [private] |
Reimplemented from pcl_visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 701 of file point_cloud_handlers.h.
typedef PointCloud::Ptr pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::PointCloudPtr [private] |
Reimplemented from pcl_visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 700 of file point_cloud_handlers.h.
typedef boost::shared_ptr<PointCloudColorHandlerGenericField<PointCloud> > pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::Ptr |
Reimplemented from pcl_visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 704 of file point_cloud_handlers.h.
pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::PointCloudColorHandlerGenericField | ( | const PointCloud & | cloud, | |
const std::string & | field_name | |||
) |
Constructor.
void pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::getColor | ( | vtkSmartPointer< vtkDataArray > & | scalars | ) | const [protected, virtual] |
Obtain the actual color for the input dataset as vtk scalars.
scalars | the resultant scalars containing the color for the input dataset |
Implements pcl_visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 216 of file point_cloud_handlers.cpp.
virtual std::string pcl_visualization::PointCloudColorHandlerGenericField< 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 715 of file point_cloud_handlers.h.
virtual std::string pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::getName | ( | ) | const [inline, protected, virtual] |
Get the name of the class.
Implements pcl_visualization::PointCloudColorHandler< sensor_msgs::PointCloud2 >.
Definition at line 712 of file point_cloud_handlers.h.
std::string pcl_visualization::PointCloudColorHandlerGenericField< sensor_msgs::PointCloud2 >::field_name_ [private] |
Name of the field used to create the color handler.
Definition at line 724 of file point_cloud_handlers.h.