Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Attributes
pcl::visualization::PointCloudColorHandlerGenericField< PointT > Class Template Reference

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>

Inheritance diagram for pcl::visualization::PointCloudColorHandlerGenericField< PointT >:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

template<typename PointT>
class pcl::visualization::PointCloudColorHandlerGenericField< PointT >

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.

Author:
Radu B. Rusu

Definition at line 373 of file point_cloud_color_handlers.h.


Member Typedef Documentation


Constructor & Destructor Documentation

Constructor.

Definition at line 384 of file point_cloud_color_handlers.h.

template<typename PointT>
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.

template<typename PointT>
virtual pcl::visualization::PointCloudColorHandlerGenericField< PointT >::~PointCloudColorHandlerGenericField ( ) [inline, virtual]

Destructor.

Definition at line 400 of file point_cloud_color_handlers.h.


Member Function Documentation

template<typename PointT >
bool pcl::visualization::PointCloudColorHandlerGenericField< PointT >::getColor ( vtkSmartPointer< vtkDataArray > &  scalars) const [virtual]

Obtain the actual color for the input dataset as vtk scalars.

Parameters:
[out]scalarsthe output scalars containing the color for the dataset
Returns:
true if the operation was successful (the handler is capable and the input cloud was given as a valid pointer), false otherwise

Implements pcl::visualization::PointCloudColorHandler< PointT >.

Definition at line 336 of file point_cloud_color_handlers.hpp.

template<typename PointT>
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.

template<typename PointT>
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.

template<typename PointT >
void pcl::visualization::PointCloudColorHandlerGenericField< PointT >::setInputCloud ( const PointCloudConstPtr cloud) [virtual]

Set the input cloud to be used.

Parameters:
[in]cloudthe 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.


Member Data Documentation

Name of the field used to create the color handler.

Definition at line 431 of file point_cloud_color_handlers.h.


The documentation for this class was generated from the following files:


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:47:36