pcl::visualization::PointCloudColorHandlerRGBField< PointT > Class Template Reference
[Module visualization]

RGB handler class for colors. More...

#include <pcl/visualization/point_cloud_color_handlers.h>

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

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>
pcl::visualization::PointCloudColorHandlerRGBField< PointT >::PointCloudColorHandlerRGBField ( const PointCloudConstPtr &  cloud  )  [inline]
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 [inline, virtual]

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

Parameters:
[out] scalars the 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.

References pcl::visualization::PointCloudColorHandler< PointT >::capable_, pcl::visualization::PointCloudColorHandler< PointT >::cloud_, and pcl::visualization::PointCloudColorHandler< PointT >::fields_.

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  )  [inline, virtual]

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends