|
Point Cloud Library (PCL)
1.15.1-dev
|
Generic field handler class for colors. More...
#include <pcl/visualization/point_cloud_color_handlers.h>
Inheritance diagram for pcl::visualization::PointCloudColorHandlerGenericField< PointT >:
Collaboration diagram for pcl::visualization::PointCloudColorHandlerGenericField< PointT >:Public Types | |
| using | Ptr = std::shared_ptr< PointCloudColorHandlerGenericField< PointT > > |
| using | ConstPtr = std::shared_ptr< const PointCloudColorHandlerGenericField< PointT > > |
Public Types inherited from pcl::visualization::PointCloudColorHandler< PointT > | |
| using | PointCloud = pcl::PointCloud< PointT > |
| using | PointCloudPtr = typename PointCloud::Ptr |
| using | PointCloudConstPtr = typename PointCloud::ConstPtr |
| using | Ptr = shared_ptr< PointCloudColorHandler< PointT > > |
| using | ConstPtr = shared_ptr< const PointCloudColorHandler< PointT > > |
Public Member Functions | |
| PointCloudColorHandlerGenericField (const PointCloudConstPtr &cloud, const std::string &field_name) | |
| constructor More... | |
| PointCloudColorHandlerGenericField (const std::string &field_name) | |
| void | setInputCloud (const PointCloudConstPtr &cloud) |
| Set the input cloud to be used. More... | |
| vtkSmartPointer< vtkDataArray > | getColor () const override |
| Obtain the actual color for the input dataset as a VTK data array. More... | |
| std::string | getFieldName () const override |
| Get the name of the field used. More... | |
Public Member Functions inherited from pcl::visualization::PointCloudColorHandler< PointT > | |
| PointCloudColorHandler () | |
| Constructor. More... | |
| PointCloudColorHandler (const PointCloudConstPtr &cloud) | |
| Constructor. More... | |
| virtual | ~PointCloudColorHandler ()=default |
| Destructor. More... | |
| bool | isCapable () const |
| Check if this handler is capable of handling the input data or not. More... | |
Protected Member Functions | |
| std::string | getName () const override |
| Class getName method. More... | |
Protected Attributes | |
| std::vector< pcl::PCLPointField > | fields_ |
Protected Attributes inherited from pcl::visualization::PointCloudColorHandler< PointT > | |
| PointCloudConstPtr | cloud_ |
| A pointer to the input dataset. More... | |
| bool | capable_ |
| True if this handler is capable of handling the input data, false otherwise. More... | |
| int | field_idx_ |
| The index of the field holding the data that represents the color. More... | |
| std::vector< pcl::PCLPointField > | fields_ |
| The list of fields available for this PointCloud. More... | |
Generic field handler class for colors.
Uses an user given field to extract 1D data and display the color at each point.
Definition at line 343 of file point_cloud_color_handlers.h.
| using pcl::visualization::PointCloudColorHandlerGenericField< PointT >::ConstPtr = std::shared_ptr<const PointCloudColorHandlerGenericField<PointT> > |
Definition at line 353 of file point_cloud_color_handlers.h.
| using pcl::visualization::PointCloudColorHandlerGenericField< PointT >::Ptr = std::shared_ptr<PointCloudColorHandlerGenericField<PointT> > |
Definition at line 352 of file point_cloud_color_handlers.h.
| pcl::visualization::PointCloudColorHandlerGenericField< PointT >::PointCloudColorHandlerGenericField | ( | const PointCloudConstPtr & | cloud, |
| const std::string & | field_name | ||
| ) |
constructor
Definition at line 564 of file point_cloud_color_handlers.hpp.
References pcl::visualization::PointCloudColorHandlerGenericField< PointT >::setInputCloud().
| pcl::visualization::PointCloudColorHandlerGenericField< PointT >::PointCloudColorHandlerGenericField | ( | const std::string & | field_name | ) |
Definition at line 572 of file point_cloud_color_handlers.hpp.
|
overridevirtual |
Obtain the actual color for the input dataset as a VTK data array.
Deriving handlers should override this method.
Implements pcl::visualization::PointCloudColorHandler< PointT >.
Definition at line 589 of file point_cloud_color_handlers.hpp.
References pcl::visualization::isXYZFiniteAt().
|
overridevirtual |
Get the name of the field used.
Implements pcl::visualization::PointCloudColorHandler< PointT >.
Definition at line 584 of file point_cloud_color_handlers.hpp.
|
inlineoverrideprotectedvirtual |
Class getName method.
Implements pcl::visualization::PointCloudColorHandler< PointT >.
Definition at line 376 of file point_cloud_color_handlers.h.
|
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 575 of file point_cloud_color_handlers.hpp.
References pcl::visualization::getFieldIndex(), pcl::getFields(), and pcl::visualization::PointCloudColorHandler< PointT >::setInputCloud().
Referenced by pcl::visualization::PointCloudColorHandlerGenericField< PointT >::PointCloudColorHandlerGenericField().
|
protected |
Definition at line 373 of file point_cloud_color_handlers.h.