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. More...
#include <point_cloud_color_handlers.h>
Public Types | |
typedef boost::shared_ptr < const PointCloudColorHandlerGenericField < PointT > > | ConstPtr |
typedef boost::shared_ptr < PointCloudColorHandlerGenericField < PointT > > | Ptr |
Public Member Functions | |
virtual bool | 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. | |
PointCloudColorHandlerGenericField (const std::string &field_name) | |
Constructor. | |
PointCloudColorHandlerGenericField (const PointCloudConstPtr &cloud, const std::string &field_name) | |
Constructor. | |
virtual void | setInputCloud (const PointCloudConstPtr &cloud) |
Set the input cloud to be used. | |
virtual | ~PointCloudColorHandlerGenericField () |
Destructor. | |
Protected Member Functions | |
virtual std::string | getName () const |
Class getName method. | |
Private Types | |
typedef PointCloudColorHandler < PointT >::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. 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 PointCloudColorHandler<PointT>::PointCloud pcl::visualization::PointCloudColorHandlerGenericField< PointT >::PointCloud [private] |
Reimplemented from pcl::visualization::PointCloudColorHandler< PointT >.
Definition at line 375 of file point_cloud_color_handlers.h.
typedef PointCloud::ConstPtr pcl::visualization::PointCloudColorHandlerGenericField< PointT >::PointCloudConstPtr [private] |
Reimplemented from pcl::visualization::PointCloudColorHandler< PointT >.
Definition at line 377 of file point_cloud_color_handlers.h.
typedef PointCloud::Ptr pcl::visualization::PointCloudColorHandlerGenericField< PointT >::PointCloudPtr [private] |
Reimplemented from pcl::visualization::PointCloudColorHandler< PointT >.
Definition at line 376 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.
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.
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 [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.
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 | ) | [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.
std::string pcl::visualization::PointCloudColorHandlerGenericField< PointT >::field_name_ [private] |
Name of the field used to create the color handler.
Definition at line 431 of file point_cloud_color_handlers.h.