A helper functor that can set a specific value in a field if the field exists.
More...
#include <pcl/type_traits.h>
|
using | Pod = typename traits::POD< PointOutT >::type |
|
template<typename PointOutT, typename InT>
struct pcl::SetIfFieldExists< PointOutT, InT >
A helper functor that can set a specific value in a field if the field exists.
- Note
- In order to actually set the value an instance of this functor should be passed to a pcl::for_each_type loop. See the example below.
using FieldList = typename pcl::traits::fieldList<PointT>::type;
A point structure representing Euclidean xyz coordinates, and the RGB color.
A helper functor that can set a specific value in a field if the field exists.
Definition at line 197 of file type_traits.h.
◆ Pod
template<typename PointOutT , typename InT >
◆ SetIfFieldExists()
template<typename PointOutT , typename InT >
Constructor.
- Parameters
-
[in] | pt | the input point |
[in] | field | the name of the field |
[out] | value | the value to set |
Definition at line 206 of file type_traits.h.
◆ operator()()
template<typename PointOutT , typename InT >
template<typename Key >
The documentation for this struct was generated from the following file: