Generic field handler class for colors. More...
#include <pcl/visualization/point_cloud_color_handlers.h>


Public Types | |
| typedef boost::shared_ptr < PointCloudColorHandlerGenericField < PointT > > | Ptr |
| typedef boost::shared_ptr < const PointCloudColorHandlerGenericField < PointT > > | ConstPtr |
Public Member Functions | |
| PointCloudColorHandlerGenericField (const std::string &field_name) | |
| Constructor. | |
| PointCloudColorHandlerGenericField (const PointCloudConstPtr &cloud, const std::string &field_name) | |
| Constructor. | |
| virtual | ~PointCloudColorHandlerGenericField () |
| Destructor. | |
| virtual std::string | getFieldName () const |
| Get the name of the field used. | |
| virtual bool | getColor (vtkSmartPointer< vtkDataArray > &scalars) const |
| Obtain the actual color for the input dataset as vtk scalars. | |
| virtual void | setInputCloud (const PointCloudConstPtr &cloud) |
| Set the input cloud to be used. | |
Protected Member Functions | |
| virtual std::string | getName () const |
| Class getName method. | |
Generic field handler class for colors.
Uses an user given field to extract 1D data and display the color at each point using a min-max lookup table.
Definition at line 373 of file point_cloud_color_handlers.h.
| typedef boost::shared_ptr<const PointCloudColorHandlerGenericField<PointT> > pcl::visualization::PointCloudColorHandlerGenericField< PointT >::ConstPtr |
Reimplemented from pcl::visualization::PointCloudColorHandler< PointT >.
Definition at line 381 of file point_cloud_color_handlers.h.
| typedef boost::shared_ptr<PointCloudColorHandlerGenericField<PointT> > pcl::visualization::PointCloudColorHandlerGenericField< PointT >::Ptr |
Reimplemented from pcl::visualization::PointCloudColorHandler< PointT >.
Definition at line 380 of file point_cloud_color_handlers.h.
| pcl::visualization::PointCloudColorHandlerGenericField< PointT >::PointCloudColorHandlerGenericField | ( | const std::string & | field_name | ) | [inline] |
Constructor.
Definition at line 384 of file point_cloud_color_handlers.h.
References pcl::visualization::PointCloudColorHandler< PointT >::capable_.
| pcl::visualization::PointCloudColorHandlerGenericField< PointT >::PointCloudColorHandlerGenericField | ( | const PointCloudConstPtr & | cloud, | |
| const std::string & | field_name | |||
| ) | [inline] |
Constructor.
Definition at line 391 of file point_cloud_color_handlers.h.
References pcl::visualization::PointCloudColorHandlerGenericField< PointT >::setInputCloud().
| virtual pcl::visualization::PointCloudColorHandlerGenericField< PointT >::~PointCloudColorHandlerGenericField | ( | ) | [inline, virtual] |
Destructor.
Definition at line 400 of file point_cloud_color_handlers.h.
| bool pcl::visualization::PointCloudColorHandlerGenericField< PointT >::getColor | ( | vtkSmartPointer< vtkDataArray > & | scalars | ) | const [inline, 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< PointT >.
Definition at line 336 of file point_cloud_color_handlers.hpp.
References pcl::visualization::PointCloudColorHandler< PointT >::capable_, pcl::visualization::PointCloudColorHandler< PointT >::cloud_, pcl::visualization::PointCloudColorHandler< PointT >::field_idx_, pcl::visualization::PointCloudColorHandler< PointT >::fields_, and pcl::getFieldSize().
| virtual std::string pcl::visualization::PointCloudColorHandlerGenericField< PointT >::getFieldName | ( | ) | const [inline, virtual] |
Get the name of the field used.
Implements pcl::visualization::PointCloudColorHandler< PointT >.
Definition at line 403 of file point_cloud_color_handlers.h.
| virtual std::string pcl::visualization::PointCloudColorHandlerGenericField< PointT >::getName | ( | ) | const [inline, protected, virtual] |
Class getName method.
Implements pcl::visualization::PointCloudColorHandler< PointT >.
Definition at line 422 of file point_cloud_color_handlers.h.
| void pcl::visualization::PointCloudColorHandlerGenericField< PointT >::setInputCloud | ( | const PointCloudConstPtr & | cloud | ) | [inline, virtual] |
Set the input cloud to be used.
| [in] | cloud | the input cloud to be used by the handler |
Reimplemented from pcl::visualization::PointCloudColorHandler< PointT >.
Definition at line 323 of file point_cloud_color_handlers.hpp.
References pcl::visualization::PointCloudColorHandler< PointT >::capable_, pcl::visualization::PointCloudColorHandler< PointT >::field_idx_, pcl::visualization::PointCloudColorHandler< PointT >::fields_, and pcl::getFieldIndex().
Referenced by pcl::visualization::PointCloudColorHandlerGenericField< PointT >::PointCloudColorHandlerGenericField().