37 #ifndef PCL_POINT_CLOUD_COLOR_HANDLERS_H_
38 #define PCL_POINT_CLOUD_COLOR_HANDLERS_H_
41 #pragma GCC system_header
45 #include <pcl/point_cloud.h>
46 #include <pcl/common/io.h>
47 #include <pcl/visualization/common/common.h>
49 #include <vtkSmartPointer.h>
50 #include <vtkDataArray.h>
51 #include <vtkFloatArray.h>
52 #include <vtkUnsignedCharArray.h>
56 namespace visualization
63 template <
typename Po
intT>
71 typedef boost::shared_ptr<PointCloudColorHandler<PointT> >
Ptr;
72 typedef boost::shared_ptr<const PointCloudColorHandler<PointT> >
ConstPtr;
137 template <
typename Po
intT>
145 typedef boost::shared_ptr<PointCloudColorHandlerRandom<PointT> >
Ptr;
146 typedef boost::shared_ptr<const PointCloudColorHandlerRandom<PointT> >
ConstPtr;
164 getName ()
const {
return (
"PointCloudColorHandlerRandom"); }
190 template <
typename Po
intT>
198 typedef boost::shared_ptr<PointCloudColorHandlerCustom<PointT> >
Ptr;
199 typedef boost::shared_ptr<const PointCloudColorHandlerCustom<PointT> >
ConstPtr;
213 double r,
double g,
double b)
227 getName ()
const {
return (
"PointCloudColorHandlerCustom"); }
256 template <
typename Po
intT>
264 typedef boost::shared_ptr<PointCloudColorHandlerRGBField<PointT> >
Ptr;
265 typedef boost::shared_ptr<const PointCloudColorHandlerRGBField<PointT> >
ConstPtr;
304 getName ()
const {
return (
"PointCloudColorHandlerRGBField"); }
319 template <
typename Po
intT>
327 typedef boost::shared_ptr<PointCloudColorHandlerHSVField<PointT> >
Ptr;
328 typedef boost::shared_ptr<const PointCloudColorHandlerHSVField<PointT> >
ConstPtr;
351 getName ()
const {
return (
"PointCloudColorHandlerHSVField"); }
372 template <
typename Po
intT>
380 typedef boost::shared_ptr<PointCloudColorHandlerGenericField<PointT> >
Ptr;
381 typedef boost::shared_ptr<const PointCloudColorHandlerGenericField<PointT> >
ConstPtr;
385 : field_name_ (field_name)
392 const std::string &field_name)
394 , field_name_ (field_name)
422 getName ()
const {
return (
"PointCloudColorHandlerGenericField"); }
431 std::string field_name_;
447 typedef boost::shared_ptr<PointCloudColorHandler<PointCloud> >
Ptr;
448 typedef boost::shared_ptr<const PointCloudColorHandler<PointCloud> >
ConstPtr;
452 cloud_ (cloud), capable_ (false), field_idx_ ()
464 getName ()
const = 0;
468 getFieldName ()
const = 0;
513 typedef boost::shared_ptr<PointCloudColorHandlerRandom<PointCloud> >
Ptr;
514 typedef boost::shared_ptr<const PointCloudColorHandlerRandom<PointCloud> >
ConstPtr;
528 getName ()
const {
return (
"PointCloudColorHandlerRandom"); }
559 double r,
double g,
double b) :
561 r_ (r), g_ (g), b_ (b)
571 getName ()
const {
return (
"PointCloudColorHandlerCustom"); }
604 typedef boost::shared_ptr<PointCloudColorHandlerRGBField<PointCloud> >
Ptr;
605 typedef boost::shared_ptr<const PointCloudColorHandlerRGBField<PointCloud> >
ConstPtr;
624 getName ()
const {
return (
"PointCloudColorHandlerRGBField"); }
644 typedef boost::shared_ptr<PointCloudColorHandlerHSVField<PointCloud> >
Ptr;
645 typedef boost::shared_ptr<const PointCloudColorHandlerHSVField<PointCloud> >
ConstPtr;
664 getName ()
const {
return (
"PointCloudColorHandlerHSVField"); }
691 typedef boost::shared_ptr<PointCloudColorHandlerGenericField<PointCloud> >
Ptr;
692 typedef boost::shared_ptr<const PointCloudColorHandlerGenericField<PointCloud> >
ConstPtr;
696 const std::string &field_name);
712 getName ()
const {
return (
"PointCloudColorHandlerGenericField"); }
720 std::string field_name_;
725 #include <pcl/visualization/impl/point_cloud_color_handlers.hpp>
727 #endif // PCL_POINT_CLOUD_COLOR_HANDLERS_H_