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

Handler for random PointCloud colors (i.e., R, G, B will be randomly chosen). More...

#include <pcl/visualization/point_cloud_color_handlers.h>

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

List of all members.

Public Types

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

Public Member Functions

 PointCloudColorHandlerRandom ()
 Constructor.
 PointCloudColorHandlerRandom (const PointCloudConstPtr &cloud)
 Constructor.
virtual std::string getName () const
 Abstract getName method.
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.

Detailed Description

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

Handler for random PointCloud colors (i.e., R, G, B will be randomly chosen).

Author:
Radu B. Rusu

Definition at line 138 of file point_cloud_color_handlers.h.


Member Typedef Documentation

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

Constructor & Destructor Documentation

template<typename PointT >
pcl::visualization::PointCloudColorHandlerRandom< PointT >::PointCloudColorHandlerRandom ( const PointCloudConstPtr &  cloud  )  [inline]

Member Function Documentation

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

References pcl::visualization::PointCloudColorHandler< PointT >::capable_, pcl::visualization::PointCloudColorHandler< PointT >::cloud_, and pcl::visualization::getRandomColors().

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

Get the name of the field used.

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

Definition at line 168 of file point_cloud_color_handlers.h.

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

Abstract getName method.

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

Definition at line 164 of file point_cloud_color_handlers.h.


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