diff --git a/io/include/pcl/io/impl/vtk_lib_io.hpp b/io/include/pcl/io/impl/vtk_lib_io.hpp index 695e3464303..68a8574efe3 100644 --- a/io/include/pcl/io/impl/vtk_lib_io.hpp +++ b/io/include/pcl/io/impl/vtk_lib_io.hpp @@ -61,6 +61,12 @@ #include #include +#ifdef vtkGenericDataArray_h +#define SetTupleValue SetTypedTuple +#define InsertNextTupleValue InsertNextTypedTuple +#define GetTupleValue GetTypedTuple +#endif + /////////////////////////////////////////////////////////////////////////////////////////// template void pcl::io::vtkPolyDataToPointCloud (vtkPolyData* const polydata, pcl::PointCloud& cloud) @@ -503,5 +509,11 @@ pcl::io::pointCloudTovtkStructuredGrid (const pcl::PointCloud& cloud, vt } } +#ifdef vtkGenericDataArray_h +#undef SetTupleValue +#undef InsertNextTupleValue +#undef GetTupleValue +#endif + #endif //#ifndef PCL_IO_VTK_IO_H_ diff --git a/io/src/vtk_lib_io.cpp b/io/src/vtk_lib_io.cpp index 3e70df0a816..2760ca332cb 100644 --- a/io/src/vtk_lib_io.cpp +++ b/io/src/vtk_lib_io.cpp @@ -46,6 +46,12 @@ #include #include +#ifdef vtkGenericDataArray_h +#define SetTupleValue SetTypedTuple +#define InsertNextTupleValue InsertNextTypedTuple +#define GetTupleValue GetTypedTuple +#endif + /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// int pcl::io::loadPolygonFile (const std::string &file_name, pcl::PolygonMesh& mesh) diff --git a/surface/src/vtk_smoothing/vtk_utils.cpp b/surface/src/vtk_smoothing/vtk_utils.cpp index ed8dc770e3d..f575a2817a2 100644 --- a/surface/src/vtk_smoothing/vtk_utils.cpp +++ b/surface/src/vtk_smoothing/vtk_utils.cpp @@ -49,6 +49,11 @@ #include #include +#ifdef vtkGenericDataArray_h +#define SetTupleValue SetTypedTuple +#define InsertNextTupleValue InsertNextTypedTuple +#define GetTupleValue GetTypedTuple +#endif ////////////////////////////////////////////////////////////////////////////////////////////// int diff --git a/visualization/include/pcl/visualization/impl/pcl_visualizer.hpp b/visualization/include/pcl/visualization/impl/pcl_visualizer.hpp index 3706f6182d6..5dec1eaa136 100644 --- a/visualization/include/pcl/visualization/impl/pcl_visualizer.hpp +++ b/visualization/include/pcl/visualization/impl/pcl_visualizer.hpp @@ -64,6 +64,12 @@ #include +#ifdef vtkGenericDataArray_h +#define SetTupleValue SetTypedTuple +#define InsertNextTupleValue InsertNextTypedTuple +#define GetTupleValue GetTypedTuple +#endif + ////////////////////////////////////////////////////////////////////////////////////////////// template bool pcl::visualization::PCLVisualizer::addPointCloud ( @@ -1843,4 +1849,10 @@ pcl::visualization::PCLVisualizer::updatePolygonMesh ( return (true); } +#ifdef vtkGenericDataArray_h +#undef SetTupleValue +#undef InsertNextTupleValue +#undef GetTupleValue +#endif + #endif diff --git a/visualization/src/pcl_visualizer.cpp b/visualization/src/pcl_visualizer.cpp index 7c84b7543ee..eff81dc109c 100644 --- a/visualization/src/pcl_visualizer.cpp +++ b/visualization/src/pcl_visualizer.cpp @@ -104,6 +104,12 @@ #include #include +#ifdef vtkGenericDataArray_h +#define SetTupleValue SetTypedTuple +#define InsertNextTupleValue InsertNextTypedTuple +#define GetTupleValue GetTypedTuple +#endif + #if defined(_WIN32) // Remove macros defined in Windows.h #undef near