A helper functor that can set a specific value in a field if the field exists.
More...
#include <pcl/point_traits.h>
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.
Definition at line 291 of file point_traits.h.
template<typename PointOutT , typename InT >
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 300 of file point_traits.h.
template<typename PointOutT , typename InT >
template<typename Key >
The documentation for this struct was generated from the following file:
- /builddir/build/BUILD/pcl-0ddf11a6ad1175b6f1c253da003de20c1295cde0/common/include/pcl/point_traits.h