Point Cloud Library (PCL)  1.7.0
Public Types | Public Member Functions | Protected Member Functions
pcl::visualization::PointCloudColorHandlerRGBField< PointT > Class Template Reference

RGB handler class for colors. More...

#include <pcl/visualization/point_cloud_color_handlers.h>

+ Inheritance diagram for pcl::visualization::PointCloudColorHandlerRGBField< PointT >:

List of all members.

Public Types

typedef boost::shared_ptr
< PointCloudColorHandlerRGBField
< PointT > > 
Ptr
typedef boost::shared_ptr
< const
PointCloudColorHandlerRGBField
< PointT > > 
ConstPtr

Public Member Functions

 PointCloudColorHandlerRGBField ()
 Constructor.
 PointCloudColorHandlerRGBField (const PointCloudConstPtr &cloud)
 Constructor.
virtual ~PointCloudColorHandlerRGBField ()
 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.

Detailed Description

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

RGB handler class for colors.

Uses the data present in the "rgb" or "rgba" fields as the color at each point.

Author:
Radu B. Rusu

Definition at line 257 of file point_cloud_color_handlers.h.


Member Typedef Documentation

template<typename PointT>
typedef boost::shared_ptr<const PointCloudColorHandlerRGBField<PointT> > pcl::visualization::PointCloudColorHandlerRGBField< PointT >::ConstPtr
template<typename PointT>
typedef boost::shared_ptr<PointCloudColorHandlerRGBField<PointT> > pcl::visualization::PointCloudColorHandlerRGBField< PointT >::Ptr

Constructor & Destructor Documentation

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

Destructor.

Definition at line 281 of file point_cloud_color_handlers.h.


Member Function Documentation

template<typename PointT >
bool pcl::visualization::PointCloudColorHandlerRGBField< 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 130 of file point_cloud_color_handlers.hpp.

template<typename PointT>
virtual std::string pcl::visualization::PointCloudColorHandlerRGBField< PointT >::getFieldName ( ) const [inline, virtual]

Get the name of the field used.

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

Definition at line 285 of file point_cloud_color_handlers.h.

template<typename PointT>
virtual std::string pcl::visualization::PointCloudColorHandlerRGBField< PointT >::getName ( ) const [inline, protected, virtual]

Class getName method.

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

Definition at line 304 of file point_cloud_color_handlers.h.

template<typename PointT >
void pcl::visualization::PointCloudColorHandlerRGBField< 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 107 of file point_cloud_color_handlers.hpp.

References pcl::getFieldIndex().

Referenced by pcl::visualization::PointCloudColorHandlerRGBField< PointT >::PointCloudColorHandlerRGBField().


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