]> git.pld-linux.org Git - packages/pcl.git/blame - pcl-vtk6.patch
- updated to 1.7.0
[packages/pcl.git] / pcl-vtk6.patch
CommitLineData
40dd16fa
JB
1diff -up ./apps/src/render_views_tesselated_sphere.cpp.vtk6 ./apps/src/render_views_tesselated_sphere.cpp
2--- ./apps/src/render_views_tesselated_sphere.cpp.vtk6 2013-07-23 17:21:02.000000000 +0000
3+++ ./apps/src/render_views_tesselated_sphere.cpp 2013-08-21 00:45:59.009844777 +0000
4@@ -61,7 +61,7 @@ pcl::apps::RenderViewsTesselatedSphere::
5
6 vtkSmartPointer<vtkTransformFilter> trans_filter_center = vtkSmartPointer<vtkTransformFilter>::New ();
7 trans_filter_center->SetTransform (trans_center);
8- trans_filter_center->SetInput (polydata_);
9+ trans_filter_center->SetInputData (polydata_);
10 trans_filter_center->Update ();
11
12 vtkSmartPointer<vtkPolyDataMapper> mapper = vtkSmartPointer<vtkPolyDataMapper>::New ();
13diff -up ./common/CMakeLists.txt.vtk6 ./common/CMakeLists.txt
14diff -up ./io/CMakeLists.txt.vtk6 ./io/CMakeLists.txt
15--- ./io/CMakeLists.txt.vtk6 2013-08-21 01:00:05.542130262 +0000
16+++ ./io/CMakeLists.txt 2013-08-21 01:08:03.636174342 +0000
17@@ -94,7 +94,8 @@ if(build)
18 src/vtk_lib_io.cpp
19 src/png_io.cpp
20 )
21- set(VTK_IO_TARGET_LINK_LIBRARIES vtkCommon vtkWidgets vtkIO vtkImaging vtkHybrid vtkGraphics vtkRendering vtkFiltering vtkVolumeRendering)
22+ set(VTK_IO_TARGET_LINK_LIBRARIES vtkCommonCore vtkIOCore vtkIOImage vtkIOLegacy vtkIOPLY vtkImagingCore)
23+ #set(VTK_IO_TARGET_LINK_LIBRARIES vtkCommonCore vtkInteractionWidgets vtkIOCore vtkImaging vtkHybrid vtkGraphics vtkRendering vtkFiltering vtkVolumeRendering)
24 # Indicates that we can rely on VTK to be present
25 set(VTK_DEFINES -DPCL_BUILT_WITH_VTK)
26 endif ()
27diff -up ./io/src/vtk_lib_io.cpp.vtk6 ./io/src/vtk_lib_io.cpp
28--- ./io/src/vtk_lib_io.cpp.vtk6 2013-07-23 17:21:02.000000000 +0000
29+++ ./io/src/vtk_lib_io.cpp 2013-08-21 00:56:28.418488030 +0000
30@@ -178,7 +178,7 @@ pcl::io::savePolygonFileVTK (const std::
31 pcl::io::mesh2vtk (mesh, poly_data);
32
33 vtkSmartPointer<vtkPolyDataWriter> poly_writer = vtkSmartPointer<vtkPolyDataWriter>::New ();
34- poly_writer->SetInput (poly_data);
35+ poly_writer->SetInputData (poly_data);
36 poly_writer->SetFileName (file_name.c_str ());
37 poly_writer->Write ();
38
39@@ -194,7 +194,7 @@ pcl::io::savePolygonFilePLY (const std::
40 pcl::io::mesh2vtk (mesh, poly_data);
41
42 vtkSmartPointer<vtkPLYWriter> poly_writer = vtkSmartPointer<vtkPLYWriter>::New ();
43- poly_writer->SetInput (poly_data);
44+ poly_writer->SetInputData (poly_data);
45 poly_writer->SetFileName (file_name.c_str ());
46 poly_writer->SetArrayName ("Colors");
47 poly_writer->Write ();
48@@ -209,9 +209,9 @@ pcl::io::savePolygonFileSTL (const std::
49 vtkSmartPointer<vtkPolyData> poly_data = vtkSmartPointer<vtkPolyData>::New ();
50
51 pcl::io::mesh2vtk (mesh, poly_data);
52- poly_data->Update ();
53+
54 vtkSmartPointer<vtkSTLWriter> poly_writer = vtkSmartPointer<vtkSTLWriter>::New ();
55- poly_writer->SetInput (poly_data);
56+ poly_writer->SetInputData (poly_data);
57 poly_writer->SetFileName (file_name.c_str ());
58 poly_writer->Write ();
59
60@@ -483,9 +483,7 @@ pcl::io::saveRangeImagePlanarFilePNG (
61 {
62 vtkSmartPointer<vtkImageData> image = vtkSmartPointer<vtkImageData>::New();
63 image->SetDimensions(range_image.width, range_image.height, 1);
64- image->SetNumberOfScalarComponents(1);
65- image->SetScalarTypeToFloat();
66- image->AllocateScalars();
67+ image->AllocateScalars(VTK_FLOAT, 1);
68
69 int* dims = image->GetDimensions();
70
71@@ -504,7 +502,7 @@ pcl::io::saveRangeImagePlanarFilePNG (
72
73 vtkSmartPointer<vtkImageShiftScale> shiftScaleFilter = vtkSmartPointer<vtkImageShiftScale>::New();
74 shiftScaleFilter->SetOutputScalarTypeToUnsignedChar();
75- shiftScaleFilter->SetInputConnection(image->GetProducerPort());
76+ shiftScaleFilter->SetInputData(image);
77 shiftScaleFilter->SetShift(-1.0f * image->GetScalarRange()[0]); // brings the lower bound to 0
78 shiftScaleFilter->SetScale(newRange/oldRange);
79 shiftScaleFilter->Update();
80diff -up ./outofcore/include/pcl/outofcore/visualization/axes.h.vtk6 ./outofcore/include/pcl/outofcore/visualization/axes.h
81--- ./outofcore/include/pcl/outofcore/visualization/axes.h.vtk6 2013-08-21 03:00:40.617165806 +0000
82+++ ./outofcore/include/pcl/outofcore/visualization/axes.h 2013-08-21 03:01:25.741106196 +0000
83@@ -42,17 +42,17 @@ public:
84 axes_colors->InsertNextValue (1.0);
85
86 vtkSmartPointer<vtkPolyData> axes_data = axes_->GetOutput ();
87- axes_data->Update ();
88+ axes_->Update ();
89 axes_data->GetPointData ()->SetScalars (axes_colors);
90
91 vtkSmartPointer<vtkTubeFilter> axes_tubes = vtkSmartPointer<vtkTubeFilter>::New ();
92- axes_tubes->SetInput (axes_data);
93+ axes_tubes->SetInputData (axes_data);
94 axes_tubes->SetRadius (axes_->GetScaleFactor () / 100.0);
95 axes_tubes->SetNumberOfSides (6);
96
97 vtkSmartPointer<vtkPolyDataMapper> axes_mapper = vtkSmartPointer<vtkPolyDataMapper>::New ();
98 axes_mapper->SetScalarModeToUsePointData ();
99- axes_mapper->SetInput (axes_tubes->GetOutput ());
100+ axes_mapper->SetInputData (axes_tubes->GetOutput ());
101
102 axes_actor_ = vtkSmartPointer<vtkActor>::New ();
103 axes_actor_->GetProperty ()->SetLighting (false);
104diff -up ./outofcore/src/visualization/outofcore_cloud.cpp.vtk6 ./outofcore/src/visualization/outofcore_cloud.cpp
105--- ./outofcore/src/visualization/outofcore_cloud.cpp.vtk6 2013-08-21 03:02:35.847575422 +0000
106+++ ./outofcore/src/visualization/outofcore_cloud.cpp 2013-08-21 03:02:50.185875912 +0000
107@@ -159,10 +159,10 @@ OutofcoreCloud::updateVoxelData ()
108 double y = voxel_centers[i].y;
109 double z = voxel_centers[i].z;
110
111- voxel_data->AddInput (getVtkCube (x - s, x + s, y - s, y + s, z - s, z + s));
112+ voxel_data->AddInputData (getVtkCube (x - s, x + s, y - s, y + s, z - s, z + s));
113 }
114
115- voxel_mapper->SetInput (voxel_data->GetOutput ());
116+ voxel_mapper->SetInputData (voxel_data->GetOutput ());
117
118 voxel_actor_->SetMapper (voxel_mapper);
119 voxel_actor_->GetProperty ()->SetRepresentationToWireframe ();
120diff -up ./surface/CMakeLists.txt.vtk6 ./surface/CMakeLists.txt
121--- ./surface/CMakeLists.txt.vtk6 2013-08-21 11:46:59.239250137 +0000
122+++ ./surface/CMakeLists.txt 2013-08-21 11:58:58.245855578 +0000
123@@ -44,7 +44,7 @@ if(build)
124 src/vtk_smoothing/vtk_mesh_quadric_decimation.cpp
125 src/vtk_smoothing/vtk_mesh_smoothing_laplacian.cpp
126 src/vtk_smoothing/vtk_mesh_smoothing_windowed_sinc.cpp)
127- set(VTK_SMOOTHING_TARGET_LINK_LIBRARIES vtkCommon vtkWidgets vtkGraphics)
128+ set(VTK_SMOOTHING_TARGET_LINK_LIBRARIES vtkCommonCore vtkFiltersModeling)
129 endif()
130
131 SET(BUILD_surface_on_nurbs 0 CACHE BOOL "Fitting NURBS to point-clouds using openNURBS" )
132diff -up ./surface/src/vtk_smoothing/vtk_mesh_quadric_decimation.cpp.vtk6 ./surface/src/vtk_smoothing/vtk_mesh_quadric_decimation.cpp
133--- ./surface/src/vtk_smoothing/vtk_mesh_quadric_decimation.cpp.vtk6 2013-08-21 11:44:17.076092636 +0000
134+++ ./surface/src/vtk_smoothing/vtk_mesh_quadric_decimation.cpp 2013-08-21 11:44:31.965381729 +0000
135@@ -59,7 +59,7 @@ pcl::MeshQuadricDecimationVTK::performPr
136 // Apply the VTK algorithm
137 vtkSmartPointer<vtkQuadricDecimation> vtk_quadric_decimation_filter = vtkSmartPointer<vtkQuadricDecimation>::New();
138 vtk_quadric_decimation_filter->SetTargetReduction (target_reduction_factor_);
139- vtk_quadric_decimation_filter->SetInput (vtk_polygons_);
140+ vtk_quadric_decimation_filter->SetInputData (vtk_polygons_);
141 vtk_quadric_decimation_filter->Update ();
142
143 vtk_polygons_ = vtk_quadric_decimation_filter->GetOutput ();
144diff -up ./surface/src/vtk_smoothing/vtk_mesh_smoothing_laplacian.cpp.vtk6 ./surface/src/vtk_smoothing/vtk_mesh_smoothing_laplacian.cpp
145--- ./surface/src/vtk_smoothing/vtk_mesh_smoothing_laplacian.cpp.vtk6 2013-07-23 17:21:02.000000000 +0000
146+++ ./surface/src/vtk_smoothing/vtk_mesh_smoothing_laplacian.cpp 2013-08-21 00:45:59.009844777 +0000
147@@ -51,7 +51,7 @@ pcl::MeshSmoothingLaplacianVTK::performP
148
149 // Apply the VTK algorithm
150 vtkSmartPointer<vtkSmoothPolyDataFilter> vtk_smoother = vtkSmoothPolyDataFilter::New ();
151- vtk_smoother->SetInput (vtk_polygons_);
152+ vtk_smoother->SetInputData (vtk_polygons_);
153 vtk_smoother->SetNumberOfIterations (num_iter_);
154 if (convergence_ != 0.0f)
155 vtk_smoother->SetConvergence (convergence_);
156diff -up ./surface/src/vtk_smoothing/vtk_mesh_smoothing_windowed_sinc.cpp.vtk6 ./surface/src/vtk_smoothing/vtk_mesh_smoothing_windowed_sinc.cpp
157--- ./surface/src/vtk_smoothing/vtk_mesh_smoothing_windowed_sinc.cpp.vtk6 2013-07-23 17:21:02.000000000 +0000
158+++ ./surface/src/vtk_smoothing/vtk_mesh_smoothing_windowed_sinc.cpp 2013-08-21 00:45:59.009844777 +0000
159@@ -51,7 +51,7 @@ pcl::MeshSmoothingWindowedSincVTK::perfo
160
161 // Apply the VTK algorithm
162 vtkSmartPointer<vtkWindowedSincPolyDataFilter> vtk_smoother = vtkWindowedSincPolyDataFilter::New ();
163- vtk_smoother->SetInput (vtk_polygons_);
164+ vtk_smoother->SetInputData (vtk_polygons_);
165 vtk_smoother->SetNumberOfIterations (num_iter_);
166 vtk_smoother->SetPassBand (pass_band_);
167 vtk_smoother->SetNormalizeCoordinates (normalize_coordinates_);
168diff -up ./surface/src/vtk_smoothing/vtk_mesh_subdivision.cpp.vtk6 ./surface/src/vtk_smoothing/vtk_mesh_subdivision.cpp
169--- ./surface/src/vtk_smoothing/vtk_mesh_subdivision.cpp.vtk6 2013-07-23 17:21:02.000000000 +0000
170+++ ./surface/src/vtk_smoothing/vtk_mesh_subdivision.cpp 2013-08-21 00:45:59.009844777 +0000
171@@ -78,7 +78,7 @@ pcl::MeshSubdivisionVTK::performProcessi
172 break;
173 }
174
175- vtk_subdivision_filter->SetInput (vtk_polygons_);
176+ vtk_subdivision_filter->SetInputData (vtk_polygons_);
177 vtk_subdivision_filter->Update ();
178
179 vtk_polygons_ = vtk_subdivision_filter->GetOutput ();
180diff -up ./surface/src/vtk_smoothing/vtk_utils.cpp.vtk6 ./surface/src/vtk_smoothing/vtk_utils.cpp
181--- ./surface/src/vtk_smoothing/vtk_utils.cpp.vtk6 2013-07-23 17:21:02.000000000 +0000
182+++ ./surface/src/vtk_smoothing/vtk_utils.cpp 2013-08-21 00:45:59.009844777 +0000
183@@ -63,7 +63,7 @@ pcl::VTKUtils::convertToVTK (const pcl::
184 mesh2vtk (triangles, vtk_polygons);
185
186 vtkSmartPointer<vtkTriangleFilter> vtk_triangles = vtkTriangleFilter::New ();
187- vtk_triangles->SetInput (vtk_polygons);
188+ vtk_triangles->SetInputData (vtk_polygons);
189 vtk_triangles->Update();
190
191 triangles_out_vtk = vtk_triangles->GetOutput ();
192diff -up ./tools/CMakeLists.txt.vtk6 ./tools/CMakeLists.txt
193--- ./tools/CMakeLists.txt.vtk6 2013-08-21 12:03:18.889571490 +0000
194+++ ./tools/CMakeLists.txt 2013-08-21 21:52:31.977816445 +0000
195@@ -157,7 +157,7 @@ if (build)
196 target_link_libraries (pcl_organized_pcd_to_png pcl_common pcl_io)
197
198 PCL_ADD_EXECUTABLE(pcl_tiff2pcd ${SUBSYS_NAME} tiff2pcd.cpp)
199- target_link_libraries(pcl_tiff2pcd pcl_common pcl_io)
200+ target_link_libraries(pcl_tiff2pcd pcl_common pcl_io vtkRenderingCore vtkRenderingOpenGL vtkRenderingFreeType vtkRenderingFreeTypeOpenGL vtkRenderingVolume vtkRenderingVolumeOpenGL vtkFiltersStatistics vtkFiltersStatisticsGnuR vtkInteractionStyle vtkFiltersStatistics)
201
202 PCL_ADD_EXECUTABLE(pcl_ply2vtk ${SUBSYS_NAME} ply2vtk.cpp)
203 target_link_libraries(pcl_ply2vtk pcl_common pcl_io)
204@@ -172,7 +172,7 @@ if (build)
205 target_link_libraries(pcl_obj2vtk pcl_common pcl_io)
206
207 PCL_ADD_EXECUTABLE(pcl_vtk2pcd ${SUBSYS_NAME} vtk2pcd.cpp)
208- target_link_libraries(pcl_vtk2pcd pcl_common pcl_io)
209+ target_link_libraries(pcl_vtk2pcd pcl_common pcl_io vtkFiltersCore)
210
211 if(BUILD_visualization)
212
213@@ -206,13 +206,13 @@ if (build)
214 target_link_libraries(pcl_octree_viewer pcl_common pcl_io pcl_octree pcl_visualization pcl_kdtree pcl_filters)
215
216 PCL_ADD_EXECUTABLE(pcl_mesh2pcd ${SUBSYS_NAME} mesh2pcd.cpp)
217- target_link_libraries(pcl_mesh2pcd pcl_common pcl_io pcl_visualization pcl_filters vtkCommon)
218+ target_link_libraries(pcl_mesh2pcd pcl_common pcl_io pcl_visualization pcl_filters vtkCommonCore)
219
220 PCL_ADD_EXECUTABLE(pcl_mesh_sampling ${SUBSYS_NAME} mesh_sampling.cpp)
221- target_link_libraries(pcl_mesh_sampling pcl_common pcl_io pcl_visualization pcl_filters vtkCommon)
222+ target_link_libraries(pcl_mesh_sampling pcl_common pcl_io pcl_visualization pcl_filters vtkCommonCore)
223
224 PCL_ADD_EXECUTABLE(pcl_virtual_scanner ${SUBSYS_NAME} virtual_scanner.cpp)
225- target_link_libraries(pcl_virtual_scanner pcl_common pcl_io pcl_filters pcl_visualization vtkCommon vtkGraphics)
226+ target_link_libraries(pcl_virtual_scanner pcl_common pcl_io pcl_filters pcl_visualization vtkCommonCore vtkRenderingCore)
227
228 PCL_ADD_EXECUTABLE (pcl_voxel_grid_occlusion_estimation ${SUBSYS_NAME} voxel_grid_occlusion_estimation.cpp)
229 target_link_libraries (pcl_voxel_grid_occlusion_estimation pcl_common pcl_io pcl_filters pcl_visualization)
230diff -up ./tools/mesh2pcd.cpp.vtk6 ./tools/mesh2pcd.cpp
231--- ./tools/mesh2pcd.cpp.vtk6 2013-08-21 12:02:28.533640909 +0000
232+++ ./tools/mesh2pcd.cpp 2013-08-21 12:02:57.648177984 +0000
233@@ -112,14 +112,14 @@ main (int argc, char **argv)
234 vtkSmartPointer<vtkPLYReader> readerQuery = vtkSmartPointer<vtkPLYReader>::New ();
235 readerQuery->SetFileName (argv[ply_file_indices[0]]);
236 polydata1 = readerQuery->GetOutput ();
237- polydata1->Update ();
238+ readerQuery->Update ();
239 }
240 else if (obj_file_indices.size () == 1)
241 {
242 vtkSmartPointer<vtkOBJReader> readerQuery = vtkSmartPointer<vtkOBJReader>::New ();
243 readerQuery->SetFileName (argv[obj_file_indices[0]]);
244 polydata1 = readerQuery->GetOutput ();
245- polydata1->Update ();
246+ readerQuery->Update ();
247 }
248
249 bool INTER_VIS = false;
250diff -up ./tools/mesh_sampling.cpp.vtk6 ./tools/mesh_sampling.cpp
251--- ./tools/mesh_sampling.cpp.vtk6 2013-07-23 17:21:02.000000000 +0000
252+++ ./tools/mesh_sampling.cpp 2013-08-21 12:04:48.924253782 +0000
253@@ -197,19 +197,19 @@ main (int argc, char **argv)
254 vtkSmartPointer<vtkOBJReader> readerQuery = vtkSmartPointer<vtkOBJReader>::New ();
255 readerQuery->SetFileName (argv[obj_file_indices[0]]);
256 polydata1 = readerQuery->GetOutput ();
257- polydata1->Update ();
258+ readerQuery->Update ();
259 }
260
261 //make sure that the polygons are triangles!
262 vtkSmartPointer<vtkTriangleFilter> triangleFilter = vtkSmartPointer<vtkTriangleFilter>::New ();
263- triangleFilter->SetInput (polydata1);
264+ triangleFilter->SetInputData (polydata1);
265 triangleFilter->Update ();
266
267 vtkSmartPointer<vtkPolyDataMapper> triangleMapper = vtkSmartPointer<vtkPolyDataMapper>::New ();
268 triangleMapper->SetInputConnection (triangleFilter->GetOutputPort ());
269 triangleMapper->Update();
270 polydata1 = triangleMapper->GetInput();
271- polydata1->Update ();
272+ triangleMapper->Update ();
273
274 bool INTER_VIS = false;
275 bool VIS = true;
276diff -up ./tools/obj2vtk.cpp.vtk6 ./tools/obj2vtk.cpp
277--- ./tools/obj2vtk.cpp.vtk6 2013-08-21 12:19:09.415203938 +0000
278+++ ./tools/obj2vtk.cpp 2013-08-21 12:20:53.422308400 +0000
279@@ -77,11 +77,11 @@ main (int argc, char** argv)
280 vtkSmartPointer<vtkOBJReader> reader = vtkSmartPointer<vtkOBJReader>::New ();
281 reader->SetFileName (argv[obj_file_indices[0]]);
282 polydata = reader->GetOutput ();
283- polydata->Update ();
284+ reader->Update ();
285
286 // Convert to VTK and save
287 vtkSmartPointer<vtkPolyDataWriter> writer = vtkSmartPointer<vtkPolyDataWriter>::New ();
288- writer->SetInput (polydata);
289+ writer->SetInputData (polydata);
290 writer->SetFileName (argv[vtk_file_indices[0]]);
291 writer->Write ();
292 }
293diff -up ./tools/obj_rec_ransac_accepted_hypotheses.cpp.vtk6 ./tools/obj_rec_ransac_accepted_hypotheses.cpp
294--- ./tools/obj_rec_ransac_accepted_hypotheses.cpp.vtk6 2013-08-21 12:21:36.920187867 +0000
295+++ ./tools/obj_rec_ransac_accepted_hypotheses.cpp 2013-08-21 12:21:55.581565073 +0000
296@@ -323,13 +323,13 @@ update (CallbackParameters* params)
297 // Setup the transformator
298 vtkSmartPointer<vtkTransformPolyDataFilter> vtk_transformator = vtkSmartPointer<vtkTransformPolyDataFilter>::New ();
299 vtk_transformator->SetTransform (vtk_transform);
300- vtk_transformator->SetInput (vtk_model);
301+ vtk_transformator->SetInputData (vtk_model);
302 vtk_transformator->Update ();
303
304 // Visualize
305 vtkSmartPointer<vtkActor> vtk_actor = vtkSmartPointer<vtkActor>::New();
306 vtkSmartPointer<vtkPolyDataMapper> vtk_mapper = vtkSmartPointer<vtkPolyDataMapper>::New ();
307- vtk_mapper->SetInput(vtk_transformator->GetOutput ());
308+ vtk_mapper->SetInputData(vtk_transformator->GetOutput ());
309 vtk_actor->SetMapper(vtk_mapper);
310 // Set the appearance & add to the renderer
311 vtk_actor->GetProperty ()->SetColor (0.6, 0.7, 0.9);
312diff -up ./tools/obj_rec_ransac_model_opps.cpp.vtk6 ./tools/obj_rec_ransac_model_opps.cpp
313--- ./tools/obj_rec_ransac_model_opps.cpp.vtk6 2013-08-21 12:22:50.385672453 +0000
314+++ ./tools/obj_rec_ransac_model_opps.cpp 2013-08-21 12:23:04.255952621 +0000
315@@ -215,7 +215,7 @@ void showModelOpps (PCLVisualizer& viz,
316 // Save the normals
317 vtk_opps->GetPointData ()->SetNormals (vtk_normals);
318 // Setup the hedge hog object
319- vtk_hedge_hog->SetInput (vtk_opps);
320+ vtk_hedge_hog->SetInputData (vtk_opps);
321 vtk_hedge_hog->SetVectorModeToUseNormal ();
322 vtk_hedge_hog->SetScaleFactor (0.5f*pair_width);
323 vtk_hedge_hog->Update ();
324diff -up ./tools/obj_rec_ransac_orr_octree.cpp.vtk6 ./tools/obj_rec_ransac_orr_octree.cpp
325--- ./tools/obj_rec_ransac_orr_octree.cpp.vtk6 2013-08-21 12:23:59.602070262 +0000
326+++ ./tools/obj_rec_ransac_orr_octree.cpp 2013-08-21 12:24:21.623514810 +0000
327@@ -304,7 +304,7 @@ void node_to_cube (ORROctree::Node* node
328 cube->SetBounds (b[0], b[1], b[2], b[3], b[4], b[5]);
329 cube->Update ();
330
331- additive_octree->AddInput (cube->GetOutput ());
332+ additive_octree->AddInputData (cube->GetOutput ());
333 }
334
335 //===============================================================================================================================
336@@ -363,7 +363,7 @@ void show_octree (ORROctree* octree, PCL
337 vtkRenderer *renderer = viz.getRenderWindow ()->GetRenderers ()->GetFirstRenderer ();
338 vtkSmartPointer<vtkActor> octree_actor = vtkSmartPointer<vtkActor>::New();
339 vtkSmartPointer<vtkDataSetMapper> mapper = vtkSmartPointer<vtkDataSetMapper>::New ();
340- mapper->SetInput(vtk_octree);
341+ mapper->SetInputData(vtk_octree);
342 octree_actor->SetMapper(mapper);
343
344 // Set the appearance & add to the renderer
345diff -up ./tools/obj_rec_ransac_orr_octree_zprojection.cpp.vtk6 ./tools/obj_rec_ransac_orr_octree_zprojection.cpp
346--- ./tools/obj_rec_ransac_orr_octree_zprojection.cpp.vtk6 2013-08-21 21:26:26.090325485 +0000
347+++ ./tools/obj_rec_ransac_orr_octree_zprojection.cpp 2013-08-21 21:27:15.501360394 +0000
348@@ -206,7 +206,7 @@ void show_octree (ORROctree* octree, PCL
349 vtkRenderer *renderer = viz.getRenderWindow ()->GetRenderers ()->GetFirstRenderer ();
350 vtkSmartPointer<vtkActor> octree_actor = vtkSmartPointer<vtkActor>::New();
351 vtkSmartPointer<vtkDataSetMapper> mapper = vtkSmartPointer<vtkDataSetMapper>::New ();
352- mapper->SetInput(vtk_octree);
353+ mapper->SetInputData(vtk_octree);
354 octree_actor->SetMapper(mapper);
355
356 // Set the appearance & add to the renderer
357@@ -250,9 +250,9 @@ void show_octree_zproj (ORROctreeZProjec
358 vtkRenderer *renderer = viz.getRenderWindow ()->GetRenderers ()->GetFirstRenderer ();
359 vtkSmartPointer<vtkActor> upper_actor = vtkSmartPointer<vtkActor>::New(), lower_actor = vtkSmartPointer<vtkActor>::New();
360 vtkSmartPointer<vtkDataSetMapper> upper_mapper = vtkSmartPointer<vtkDataSetMapper>::New (), lower_mapper = vtkSmartPointer<vtkDataSetMapper>::New ();
361- upper_mapper->SetInput(upper_bound->GetOutput ());
362+ upper_mapper->SetInputData(upper_bound->GetOutput ());
363 upper_actor->SetMapper(upper_mapper);
364- lower_mapper->SetInput(lower_bound->GetOutput ());
365+ lower_mapper->SetInputData(lower_bound->GetOutput ());
366 lower_actor->SetMapper(lower_mapper);
367
368 // Set the appearance & add to the renderer
369@@ -272,7 +272,7 @@ void node_to_cube (ORROctree::Node* node
370 cube->SetBounds (b[0], b[1], b[2], b[3], b[4], b[5]);
371 cube->Update ();
372
373- additive_octree->AddInput (cube->GetOutput ());
374+ additive_octree->AddInputData (cube->GetOutput ());
375 }
376
377 //===============================================================================================================================
378@@ -284,7 +284,7 @@ void rectangle_to_vtk (float x1, float x
379 cube->SetBounds (x1, x2, y1, y2, z, z);
380 cube->Update ();
381
382- additive_rectangle->AddInput (cube->GetOutput ());
383+ additive_rectangle->AddInputData (cube->GetOutput ());
384 }
385
386 //===============================================================================================================================
387diff -up ./tools/obj_rec_ransac_result.cpp.vtk6 ./tools/obj_rec_ransac_result.cpp
388--- ./tools/obj_rec_ransac_result.cpp.vtk6 2013-08-21 21:27:49.210066401 +0000
389+++ ./tools/obj_rec_ransac_result.cpp 2013-08-21 21:28:04.681390430 +0000
390@@ -281,13 +281,13 @@ update (CallbackParameters* params)
391 // Setup the transformator
392 vtkSmartPointer<vtkTransformPolyDataFilter> vtk_transformator = vtkSmartPointer<vtkTransformPolyDataFilter>::New ();
393 vtk_transformator->SetTransform (vtk_transform);
394- vtk_transformator->SetInput (vtk_model);
395+ vtk_transformator->SetInputData (vtk_model);
396 vtk_transformator->Update ();
397
398 // Visualize
399 vtkSmartPointer<vtkActor> vtk_actor = vtkSmartPointer<vtkActor>::New();
400 vtkSmartPointer<vtkPolyDataMapper> vtk_mapper = vtkSmartPointer<vtkPolyDataMapper>::New ();
401- vtk_mapper->SetInput(vtk_transformator->GetOutput ());
402+ vtk_mapper->SetInputData(vtk_transformator->GetOutput ());
403 vtk_actor->SetMapper(vtk_mapper);
404 // Set the appearance & add to the renderer
405 vtk_actor->GetProperty ()->SetColor (0.6, 0.7, 0.9);
406diff -up ./tools/obj_rec_ransac_scene_opps.cpp.vtk6 ./tools/obj_rec_ransac_scene_opps.cpp
407--- ./tools/obj_rec_ransac_scene_opps.cpp.vtk6 2013-08-21 21:29:21.909007870 +0000
408+++ ./tools/obj_rec_ransac_scene_opps.cpp 2013-08-21 21:29:32.698233839 +0000
409@@ -173,7 +173,7 @@ void update (CallbackParameters* params)
410 vtkSmartPointer<vtkHedgeHog> vtk_hh = vtkSmartPointer<vtkHedgeHog>::New ();
411 vtk_hh->SetVectorModeToUseNormal ();
412 vtk_hh->SetScaleFactor (0.5f*params->objrec_.getPairWidth ());
413- vtk_hh->SetInput (vtk_opps);
414+ vtk_hh->SetInputData (vtk_opps);
415 vtk_hh->Update ();
416
417 // The lines
418diff -up ./tools/octree_viewer.cpp.vtk6 ./tools/octree_viewer.cpp
419--- ./tools/octree_viewer.cpp.vtk6 2013-07-23 17:21:02.000000000 +0000
420+++ ./tools/octree_viewer.cpp 2013-08-21 21:30:09.428003080 +0000
421@@ -294,13 +294,13 @@ private:
422 double y = displayCloud->points[i].y;
423 double z = displayCloud->points[i].z;
424
425- treeWireframe->AddInput(GetCuboid(x - s, x + s, y - s, y + s, z - s, z + s));
426+ treeWireframe->AddInputData(GetCuboid(x - s, x + s, y - s, y + s, z - s, z + s));
427 }
428
429 vtkSmartPointer<vtkActor> treeActor = vtkSmartPointer<vtkActor>::New();
430
431 vtkSmartPointer<vtkDataSetMapper> mapper = vtkSmartPointer<vtkDataSetMapper>::New();
432- mapper->SetInput(treeWireframe->GetOutput());
433+ mapper->SetInputConnection(treeWireframe->GetOutputPort());
434 treeActor->SetMapper(mapper);
435
436 treeActor->GetProperty()->SetColor(1.0, 1.0, 1.0);
437diff -up ./tools/ply2vtk.cpp.vtk6 ./tools/ply2vtk.cpp
438--- ./tools/ply2vtk.cpp.vtk6 2013-08-21 21:33:03.894656841 +0000
439+++ ./tools/ply2vtk.cpp 2013-08-21 21:33:52.922683565 +0000
440@@ -77,12 +77,12 @@ main (int argc, char** argv)
441 vtkSmartPointer<vtkPLYReader> reader = vtkSmartPointer<vtkPLYReader>::New ();
442 reader->SetFileName (argv[ply_file_indices[0]]);
443 polydata = reader->GetOutput ();
444- polydata->Update ();
445+ reader->Update ();
446 print_info ("Loaded %s with %zu points/vertices.\n", argv[ply_file_indices[0]], polydata->GetNumberOfPoints ());
447
448 // Convert to VTK and save
449 vtkSmartPointer<vtkPolyDataWriter> writer = vtkSmartPointer<vtkPolyDataWriter>::New ();
450- writer->SetInput (polydata);
451+ writer->SetInputData (polydata);
452 writer->SetFileName (argv[vtk_file_indices[0]]);
453 writer->SetFileTypeToBinary ();
454 writer->Write ();
455diff -up ./tools/png2pcd.cpp.vtk6 ./tools/png2pcd.cpp
456--- ./tools/png2pcd.cpp.vtk6 2013-08-21 21:38:51.232930286 +0000
457+++ ./tools/png2pcd.cpp 2013-08-21 21:39:07.930279915 +0000
458@@ -135,7 +135,7 @@ main (int argc, char** argv)
459 vtkSmartPointer<vtkPNGReader> reader = vtkSmartPointer<vtkPNGReader>::New ();
460 reader->SetFileName (argv[png_file_indices[0]]);
461 image_data = reader->GetOutput ();
462- image_data->Update ();
463+ reader->Update ();
464
465 // Retrieve the entries from the image data and copy them into the output RGB cloud
466 int components = image_data->GetNumberOfScalarComponents();
467diff -up ./tools/tiff2pcd.cpp.vtk6 ./tools/tiff2pcd.cpp
468--- ./tools/tiff2pcd.cpp.vtk6 2013-08-21 21:40:40.661221583 +0000
469+++ ./tools/tiff2pcd.cpp 2013-08-21 21:41:04.837727812 +0000
470@@ -343,7 +343,7 @@ int main(int argc, char ** argv)
471 {
472 reader->SetFileName (tiff_rgb_files[i].c_str());
473 rgb_data = reader->GetOutput ();
474- rgb_data->Update ();
475+ reader->Update ();
476
477 std::string rgb_filename = tiff_rgb_paths[i].filename().string();
478 std::string rgb_time = rgb_filename.substr(6,22);
479@@ -381,7 +381,7 @@ int main(int argc, char ** argv)
480 {
481 depth_reader->SetFileName (tiff_depth_files[j].c_str());
482 depth_data = depth_reader->GetOutput ();
483- depth_data->Update ();
484+ depth_reader->Update ();
485
486 processAndSave(depth_data, rgb_data, depth_time, focal_length, format, color, depth, use_output_path, output_path_);
487 }
488diff -up ./tools/virtual_scanner.cpp.vtk6 ./tools/virtual_scanner.cpp
489--- ./tools/virtual_scanner.cpp.vtk6 2013-08-21 21:46:18.703160995 +0000
490+++ ./tools/virtual_scanner.cpp 2013-08-21 21:46:36.537526230 +0000
491@@ -221,7 +221,7 @@ main (int argc, char** argv)
492
493 // Get camera positions
494 vtkPolyData *sphere = subdivide->GetOutput ();
495- sphere->Update ();
496+ subdivide->Update ();
497 if (!single_view)
498 PCL_INFO ("Created %ld camera position points.\n", sphere->GetNumberOfPoints ());
499
500diff -up ./tools/voxel_grid_occlusion_estimation.cpp.vtk6 ./tools/voxel_grid_occlusion_estimation.cpp
501--- ./tools/voxel_grid_occlusion_estimation.cpp.vtk6 2013-08-21 21:48:52.163305550 +0000
502+++ ./tools/voxel_grid_occlusion_estimation.cpp 2013-08-21 21:50:58.043887848 +0000
503@@ -99,13 +99,13 @@ getVoxelActors (pcl::PointCloud<pcl::Poi
504 double y = voxelCenters.points[i].y;
505 double z = voxelCenters.points[i].z;
506
507- treeWireframe->AddInput (getCuboid (x - s, x + s, y - s, y + s, z - s, z + s));
508+ treeWireframe->AddInputData (getCuboid (x - s, x + s, y - s, y + s, z - s, z + s));
509 }
510
511 vtkSmartPointer < vtkLODActor > treeActor = vtkSmartPointer<vtkLODActor>::New ();
512
513 vtkSmartPointer < vtkDataSetMapper > mapper = vtkSmartPointer<vtkDataSetMapper>::New ();
514- mapper->SetInput (treeWireframe->GetOutput ());
515+ mapper->SetInputData (treeWireframe->GetOutput ());
516 treeActor->SetMapper (mapper);
517
518 treeActor->GetProperty ()->SetRepresentationToWireframe ();
519@@ -119,12 +119,12 @@ displayBoundingBox (Eigen::Vector3f& min
520 vtkSmartPointer<vtkActorCollection> coll)
521 {
522 vtkSmartPointer < vtkAppendPolyData > treeWireframe = vtkSmartPointer<vtkAppendPolyData>::New ();
523- treeWireframe->AddInput (getCuboid (min_b[0], max_b[0], min_b[1], max_b[1], min_b[2], max_b[2]));
524+ treeWireframe->AddInputData (getCuboid (min_b[0], max_b[0], min_b[1], max_b[1], min_b[2], max_b[2]));
525
526 vtkSmartPointer < vtkActor > treeActor = vtkSmartPointer<vtkActor>::New ();
527
528 vtkSmartPointer < vtkDataSetMapper > mapper = vtkSmartPointer<vtkDataSetMapper>::New ();
529- mapper->SetInput (treeWireframe->GetOutput ());
530+ mapper->SetInputData (treeWireframe->GetOutput ());
531 treeActor->SetMapper (mapper);
532
533 treeActor->GetProperty ()->SetRepresentationToWireframe ();
534diff -up ./tools/vtk2pcd.cpp.vtk6 ./tools/vtk2pcd.cpp
535--- ./tools/vtk2pcd.cpp.vtk6 2013-08-21 21:51:08.163095564 +0000
536+++ ./tools/vtk2pcd.cpp 2013-08-21 21:51:18.089299305 +0000
537@@ -107,7 +107,7 @@ main (int argc, char** argv)
538 if (copy_normals)
539 {
540 vtkSmartPointer<vtkPolyDataNormals> ng = vtkSmartPointer<vtkPolyDataNormals>::New ();
541- ng->SetInput (polydata);
542+ ng->SetInputData (polydata);
543 ng->ComputePointNormalsOn ();
544 ng->ComputeCellNormalsOff ();
545 ng->Update ();
546diff -up ./tools/vtk2ply.cpp.vtk6 ./tools/vtk2ply.cpp
547--- ./tools/vtk2ply.cpp.vtk6 2013-08-21 21:52:57.293336401 +0000
548+++ ./tools/vtk2ply.cpp 2013-08-21 21:53:16.847738110 +0000
549@@ -77,12 +77,12 @@ main (int argc, char** argv)
550 vtkSmartPointer<vtkPolyDataReader> reader = vtkSmartPointer<vtkPolyDataReader>::New ();
551 reader->SetFileName (argv[vtk_file_indices[0]]);
552 polydata = reader->GetOutput ();
553- polydata->Update ();
554+ reader->Update ();
555 print_info ("Loaded %s with %zu points/vertices.\n", argv[vtk_file_indices[0]], polydata->GetNumberOfPoints ());
556
557 // Convert to PLY and save
558 vtkSmartPointer<vtkPLYWriter> writer = vtkSmartPointer<vtkPLYWriter>::New ();
559- writer->SetInput (polydata);
560+ writer->SetInputData (polydata);
561 writer->SetArrayName ("Colors");
562 writer->SetFileTypeToASCII ();
563 writer->SetFileName (argv[ply_file_indices[0]]);
564diff -up ./visualization/CMakeLists.txt.vtk6 ./visualization/CMakeLists.txt
565--- ./visualization/CMakeLists.txt.vtk6 2013-08-21 02:43:15.375525780 +0000
566+++ ./visualization/CMakeLists.txt 2013-08-21 02:57:55.536733573 +0000
567@@ -152,8 +152,10 @@ if(build)
568
569 if("${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION}" VERSION_LESS "5.6")
570 target_link_libraries(${LIB_NAME} pcl_common pcl_io pcl_kdtree vtkCommon vtkWidgets vtkHybrid vtkFiltering vtkRendering ${OPENGL_LIBRARIES})
571- else()
572+ elseif(${VTK_MAJOR_VERSION} LESS 6)
573 target_link_libraries(${LIB_NAME} pcl_common pcl_io pcl_kdtree vtkCommon vtkWidgets vtkHybrid vtkCharts vtkFiltering vtkRendering ${OPENGL_LIBRARIES})
574+ else()
575+ target_link_libraries(${LIB_NAME} pcl_common pcl_io pcl_kdtree vtkCommonCore vtkChartsCore vtkInteractionStyle vtkImagingSources vtkRenderingCore vtkRenderingContext2D vtkRenderingAnnotation vtkRenderingLOD vtkRenderingVolume vtkRenderingOpenGL vtkRenderingVolumeOpenGL vtkRenderingFreeType vtkRenderingFreeTypeOpenGL vtkInteractionWidgets vtkFiltersStatistics vtkFiltersStatisticsGnuR vtkViewsContext2D ${OPENGL_LIBRARIES})
576 endif()
577
578 set(EXT_DEPS "")
579diff -up ./visualization/include/pcl/visualization/common/impl/shapes.hpp.vtk6 ./visualization/include/pcl/visualization/common/impl/shapes.hpp
580--- ./visualization/include/pcl/visualization/common/impl/shapes.hpp.vtk6 2013-08-21 01:44:28.135763915 +0000
581+++ ./visualization/include/pcl/visualization/common/impl/shapes.hpp 2013-08-21 01:52:43.507042740 +0000
582@@ -67,7 +67,7 @@ pcl::visualization::createPolygon (const
583 poly_grid->Allocate (1, 1);
584 poly_grid->InsertNextCell (polygon->GetCellType (), polygon->GetPointIds ());
585 poly_grid->SetPoints (poly_points);
586- poly_grid->Update ();
587+ //poly_grid->Update ();
588
589 return (poly_grid);
590 }
591@@ -104,7 +104,7 @@ pcl::visualization::createPolygon (const
592 poly_grid->Allocate (1, 1);
593 poly_grid->InsertNextCell (polygon->GetCellType (), polygon->GetPointIds ());
594 poly_grid->SetPoints (poly_points);
595- poly_grid->Update ();
596+ //poly_grid->Update ();
597
598 return (poly_grid);
599 }
600diff -up ./visualization/include/pcl/visualization/image_viewer.h.vtk6 ./visualization/include/pcl/visualization/image_viewer.h
601--- ./visualization/include/pcl/visualization/image_viewer.h.vtk6 2013-08-21 23:11:02.627949762 +0000
602+++ ./visualization/include/pcl/visualization/image_viewer.h 2013-08-21 02:29:21.229120143 +0000
603@@ -952,7 +952,7 @@ namespace pcl
604 /** \brief The renderer. */
605 vtkSmartPointer<vtkRenderer> ren_;
606
607-#if ((VTK_MAJOR_VERSION == 5) && (VTK_MINOR_VERSION >= 10))
608+#if (((VTK_MAJOR_VERSION == 5) && (VTK_MINOR_VERSION >= 10)) || (VTK_MAJOR_VERSION > 5))
609 /** \brief Global prop. This is the actual "actor". */
610 vtkSmartPointer<vtkImageSlice> slice_;
611 #endif
612diff -up ./visualization/include/pcl/visualization/impl/image_viewer.hpp.vtk6 ./visualization/include/pcl/visualization/impl/image_viewer.hpp
613--- ./visualization/include/pcl/visualization/impl/image_viewer.hpp.vtk6 2013-08-21 02:22:42.987745331 +0000
614+++ ./visualization/include/pcl/visualization/impl/image_viewer.hpp 2013-08-21 02:23:08.182278421 +0000
615@@ -435,9 +435,7 @@ pcl::visualization::ImageViewer::showCor
616
617 vtkSmartPointer<vtkImageData> image = vtkSmartPointer<vtkImageData>::New ();
618 image->SetDimensions (source_img.width + target_img.width, std::max (source_img.height, target_img.height), 1);
619- image->SetScalarTypeToUnsignedChar ();
620- image->SetNumberOfScalarComponents (3);
621- image->AllocateScalars ();
622+ image->AllocateScalars (VTK_UNSIGNED_CHAR, 3);
623 image->GetPointData ()->GetScalars ()->SetVoidArray (data, data_size_, 1);
624 vtkSmartPointer<PCLContextImageItem> image_item = vtkSmartPointer<PCLContextImageItem>::New ();
625 #if ((VTK_MAJOR_VERSION == 5) && (VTK_MINOR_VERSION <= 10))
626diff -up ./visualization/include/pcl/visualization/impl/pcl_visualizer.hpp.vtk6 ./visualization/include/pcl/visualization/impl/pcl_visualizer.hpp
627--- ./visualization/include/pcl/visualization/impl/pcl_visualizer.hpp.vtk6 2013-08-21 01:53:19.555789272 +0000
628+++ ./visualization/include/pcl/visualization/impl/pcl_visualizer.hpp 2013-08-21 02:15:15.723273700 +0000
629@@ -322,13 +322,13 @@ pcl::visualization::PCLVisualizer::addPo
630 vtkSmartPointer<vtkAppendPolyData> all_data = vtkSmartPointer<vtkAppendPolyData>::New ();
631
632 // Add old data
633- all_data->AddInput (reinterpret_cast<vtkPolyDataMapper*> ((vtkActor::SafeDownCast (am_it->second))->GetMapper ())->GetInput ());
634+ all_data->AddInputData (reinterpret_cast<vtkPolyDataMapper*> ((vtkActor::SafeDownCast (am_it->second))->GetMapper ())->GetInput ());
635
636 // Add new data
637 vtkSmartPointer<vtkDataSetSurfaceFilter> surface_filter = vtkSmartPointer<vtkDataSetSurfaceFilter>::New ();
638- surface_filter->SetInput (vtkUnstructuredGrid::SafeDownCast (data));
639+ surface_filter->SetInputData (vtkUnstructuredGrid::SafeDownCast (data));
640 vtkSmartPointer<vtkPolyData> poly_data = surface_filter->GetOutput ();
641- all_data->AddInput (poly_data);
642+ all_data->AddInputData (poly_data);
643
644 // Create an Actor
645 vtkSmartPointer<vtkActor> actor;
646@@ -376,13 +376,13 @@ pcl::visualization::PCLVisualizer::addPo
647 vtkSmartPointer<vtkAppendPolyData> all_data = vtkSmartPointer<vtkAppendPolyData>::New ();
648
649 // Add old data
650- all_data->AddInput (reinterpret_cast<vtkPolyDataMapper*> ((vtkActor::SafeDownCast (am_it->second))->GetMapper ())->GetInput ());
651+ all_data->AddInputData (reinterpret_cast<vtkPolyDataMapper*> ((vtkActor::SafeDownCast (am_it->second))->GetMapper ())->GetInput ());
652
653 // Add new data
654 vtkSmartPointer<vtkDataSetSurfaceFilter> surface_filter = vtkSmartPointer<vtkDataSetSurfaceFilter>::New ();
655- surface_filter->SetInput (vtkUnstructuredGrid::SafeDownCast (data));
656+ surface_filter->SetInputData (vtkUnstructuredGrid::SafeDownCast (data));
657 vtkSmartPointer<vtkPolyData> poly_data = surface_filter->GetOutput ();
658- all_data->AddInput (poly_data);
659+ all_data->AddInputData (poly_data);
660
661 // Create an Actor
662 vtkSmartPointer<vtkActor> actor;
663@@ -613,7 +613,7 @@ pcl::visualization::PCLVisualizer::updat
664 //////////////////////////////////////////////////////////////////////////
665 // Get the actor pointer
666 vtkLODActor* actor = vtkLODActor::SafeDownCast (am_it->second);
667- vtkAlgorithm *algo = actor->GetMapper ()->GetInput ()->GetProducerPort ()->GetProducer ();
668+ vtkAlgorithm *algo = actor->GetMapper ()->GetInput ();
669 vtkSphereSource *src = vtkSphereSource::SafeDownCast (algo);
670
671 src->SetCenter (double (center.x), double (center.y), double (center.z));
672@@ -796,7 +796,7 @@ pcl::visualization::PCLVisualizer::addPo
673 polyData->SetLines (lines);
674
675 vtkSmartPointer<vtkDataSetMapper> mapper = vtkSmartPointer<vtkDataSetMapper>::New ();
676- mapper->SetInput (polyData);
677+ mapper->SetInputData (polyData);
678 mapper->SetColorModeToMapScalars();
679 mapper->SetScalarModeToUsePointData();
680
681@@ -871,7 +871,7 @@ pcl::visualization::PCLVisualizer::addPo
682 polyData->SetLines(lines);
683
684 vtkSmartPointer<vtkDataSetMapper> mapper = vtkSmartPointer<vtkDataSetMapper>::New ();
685- mapper->SetInput (polyData);
686+ mapper->SetInputData (polyData);
687 mapper->SetColorModeToMapScalars();
688 mapper->SetScalarModeToUsePointData();
689
690@@ -970,7 +970,7 @@ pcl::visualization::PCLVisualizer::addCo
691 line_data->SetLines (line_cells);
692 line_data->GetPointData ()->SetTCoords (line_tcoords);
693 line_data->GetCellData ()->SetScalars (line_colors);
694- line_data->Update ();
695+ //line_data->Update ();
696
697 // Create an Actor
698 vtkSmartPointer<vtkLODActor> actor;
699@@ -1075,7 +1075,7 @@ pcl::visualization::PCLVisualizer::addCo
700 line_data->SetLines (line_cells);
701 line_data->GetPointData ()->SetTCoords (line_tcoords);
702 line_data->GetCellData ()->SetScalars (line_colors);
703- line_data->Update ();
704+ //line_data->Update ();
705
706 // Create an Actor
707 vtkSmartPointer<vtkLODActor> actor;
708@@ -1178,10 +1178,10 @@ pcl::visualization::PCLVisualizer::updat
709 line_data->SetLines (line_cells);
710 line_data->GetPointData ()->SetTCoords (line_tcoords);
711 line_data->GetCellData ()->SetScalars (line_colors);
712- line_data->Update ();
713+ //line_data->Update ();
714
715 // Update the mapper
716- reinterpret_cast<vtkPolyDataMapper*>(actor->GetMapper ())->SetInput (line_data);
717+ reinterpret_cast<vtkPolyDataMapper*>(actor->GetMapper ())->SetInputData (line_data);
718
719 return (true);
720 }
721@@ -1213,7 +1213,7 @@ pcl::visualization::PCLVisualizer::fromH
722 // Convert the PointCloud to VTK PolyData
723 convertPointCloudToVTKPolyData<PointT> (geometry_handler, polydata, initcells);
724 // use the given geometry handler
725- polydata->Update ();
726+ //polydata->Update ();
727
728 // Get the colors from the handler
729 bool has_colors = false;
730@@ -1277,7 +1277,7 @@ pcl::visualization::PCLVisualizer::fromH
731 // Convert the PointCloud to VTK PolyData
732 convertPointCloudToVTKPolyData<PointT> (geometry_handler, polydata, initcells);
733 // use the given geometry handler
734- polydata->Update ();
735+ //polydata->Update ();
736
737 // Get the colors from the handler
738 bool has_colors = false;
739@@ -1342,7 +1342,7 @@ pcl::visualization::PCLVisualizer::fromH
740 // Convert the PointCloud to VTK PolyData
741 convertPointCloudToVTKPolyData (geometry_handler, polydata, initcells);
742 // use the given geometry handler
743- polydata->Update ();
744+ //polydata->Update ();
745
746 // Get the colors from the handler
747 bool has_colors = false;
748@@ -1394,12 +1394,12 @@ pcl::visualization::PCLVisualizer::updat
749 vtkSmartPointer<vtkPolyData> polydata = reinterpret_cast<vtkPolyDataMapper*>(am_it->second.actor->GetMapper ())->GetInput ();
750 // Convert the PointCloud to VTK PolyData
751 convertPointCloudToVTKPolyData<PointT> (cloud, polydata, am_it->second.cells);
752- polydata->Update ();
753+ //polydata->Update ();
754
755 // Set scalars to blank, since there is no way we can update them here.
756 vtkSmartPointer<vtkDataArray> scalars;
757 polydata->GetPointData ()->SetScalars (scalars);
758- polydata->Update ();
759+ //polydata->Update ();
760 double minmax[2];
761 minmax[0] = std::numeric_limits<double>::min ();
762 minmax[1] = std::numeric_limits<double>::max ();
763@@ -1407,7 +1407,7 @@ pcl::visualization::PCLVisualizer::updat
764 am_it->second.actor->GetMapper ()->SetScalarRange (minmax);
765
766 // Update the mapper
767- reinterpret_cast<vtkPolyDataMapper*>(am_it->second.actor->GetMapper ())->SetInput (polydata);
768+ reinterpret_cast<vtkPolyDataMapper*>(am_it->second.actor->GetMapper ())->SetInputData (polydata);
769 return (true);
770 }
771
772@@ -1432,7 +1432,7 @@ pcl::visualization::PCLVisualizer::updat
773 // Set scalars to blank, since there is no way we can update them here.
774 vtkSmartPointer<vtkDataArray> scalars;
775 polydata->GetPointData ()->SetScalars (scalars);
776- polydata->Update ();
777+ //polydata->Update ();
778 double minmax[2];
779 minmax[0] = std::numeric_limits<double>::min ();
780 minmax[1] = std::numeric_limits<double>::max ();
781@@ -1440,7 +1440,7 @@ pcl::visualization::PCLVisualizer::updat
782 am_it->second.actor->GetMapper ()->SetScalarRange (minmax);
783
784 // Update the mapper
785- reinterpret_cast<vtkPolyDataMapper*>(am_it->second.actor->GetMapper ())->SetInput (polydata);
786+ reinterpret_cast<vtkPolyDataMapper*>(am_it->second.actor->GetMapper ())->SetInputData (polydata);
787 return (true);
788 }
789
790@@ -1507,13 +1507,13 @@ pcl::visualization::PCLVisualizer::updat
791 scalars->GetRange (minmax);
792 // Update the data
793 polydata->GetPointData ()->SetScalars (scalars);
794- polydata->Update ();
795+ //polydata->Update ();
796
797 am_it->second.actor->GetMapper ()->ImmediateModeRenderingOff ();
798 am_it->second.actor->GetMapper ()->SetScalarRange (minmax);
799
800 // Update the mapper
801- reinterpret_cast<vtkPolyDataMapper*>(am_it->second.actor->GetMapper ())->SetInput (polydata);
802+ reinterpret_cast<vtkPolyDataMapper*>(am_it->second.actor->GetMapper ())->SetInputData (polydata);
803 return (true);
804 }
805
806@@ -1668,7 +1668,7 @@ pcl::visualization::PCLVisualizer::addPo
807 poly_grid->Allocate (1, 1);
808 poly_grid->InsertNextCell (polygon->GetCellType (), polygon->GetPointIds ());
809 poly_grid->SetPoints (points);
810- poly_grid->Update ();
811+ //poly_grid->Update ();
812 if (colors)
813 poly_grid->GetPointData ()->SetScalars (colors);
814
815@@ -1813,7 +1813,7 @@ pcl::visualization::PCLVisualizer::updat
816 cells->Squeeze ();
817 // Set the the vertices
818 polydata->SetStrips (cells);
819- polydata->Update ();
820+ //polydata->Update ();
821
822 return (true);
823 }
824diff -up ./visualization/src/.vtk6 ./visualization/src/
825diff -up ./visualization/src/common/io.cpp.vtk6 ./visualization/src/common/io.cpp
826--- ./visualization/src/common/io.cpp.vtk6 2013-07-23 17:21:02.000000000 +0000
827+++ ./visualization/src/common/io.cpp 2013-08-21 00:45:59.010844800 +0000
828@@ -89,7 +89,7 @@ pcl::visualization::savePointData (vtkPo
829 // Clean the data (no duplicates!)
830 vtkSmartPointer<vtkCleanPolyData> cleaner = vtkSmartPointer<vtkCleanPolyData>::New ();
831 cleaner->SetTolerance (0.0);
832- cleaner->SetInput (data);
833+ cleaner->SetInputData (data);
834 cleaner->ConvertLinesToPointsOff ();
835 cleaner->ConvertPolysToLinesOff ();
836 cleaner->ConvertStripsToPolysOff ();
837diff -up ./visualization/src/common/shapes.cpp.vtk6 ./visualization/src/common/shapes.cpp
838--- ./visualization/src/common/shapes.cpp.vtk6 2013-07-23 17:21:02.000000000 +0000
839+++ ./visualization/src/common/shapes.cpp 2013-08-21 00:45:59.010844800 +0000
840@@ -224,7 +224,7 @@ pcl::visualization::create2DCircle (cons
841 circle->SetNumberOfSides (100);
842
843 vtkSmartPointer<vtkTubeFilter> tube = vtkSmartPointer<vtkTubeFilter>::New();
844- tube->SetInput (circle->GetOutput());
845+ tube->SetInputConnection (circle->GetOutputPort());
846 tube->SetNumberOfSides (25);
847 tube->SetRadius (0.001);
848 */
849diff -up ./visualization/src/histogram_visualizer.cpp.vtk6 ./visualization/src/histogram_visualizer.cpp
850--- ./visualization/src/histogram_visualizer.cpp.vtk6 2013-08-21 02:18:27.494336735 +0000
851+++ ./visualization/src/histogram_visualizer.cpp 2013-08-21 02:22:29.553461057 +0000
852@@ -260,7 +260,7 @@ pcl::visualization::PCLHistogramVisualiz
853 const vtkSmartPointer<vtkDoubleArray> &xy_array, RenWinInteract* renwinupd, const int hsize)
854 {
855 renwinupd->ren_->RemoveActor2D (renwinupd->xy_plot_);
856- renwinupd->xy_plot_->RemoveAllInputs ();
857+ renwinupd->xy_plot_->RemoveAllDataSetInputConnections ();
858
859 double min_max[2];
860 xy_array->GetRange (min_max, 1);
861diff -up ./visualization/src/image_viewer.cpp.vtk6 ./visualization/src/image_viewer.cpp
862--- ./visualization/src/image_viewer.cpp.vtk6 2013-08-21 02:24:01.801412800 +0000
863+++ ./visualization/src/image_viewer.cpp 2013-08-21 02:31:50.889239852 +0000
864@@ -37,6 +37,8 @@
865 */
866
867 #include <vtkImageViewer.h>
868+#include <vtkImageSlice.h>
869+#include <vtkImageSliceMapper.h>
870 #include <vtkCallbackCommand.h>
871 #include <vtkRenderer.h>
872 #include <vtkCamera.h>
873@@ -117,7 +119,7 @@ pcl::visualization::ImageViewer::ImageVi
874
875 vtkSmartPointer<vtkImageData> empty_image = vtkSmartPointer<vtkImageData>::New ();
876 vtkSmartPointer<vtkImageSliceMapper> map = vtkSmartPointer<vtkImageSliceMapper>::New ();
877- map->SetInput (empty_image);
878+ map->SetInputData (empty_image);
879 slice_->SetMapper (map);
880 ren_->AddViewProp (slice_);
881 interactor_->SetInteractorStyle (interactor_style_);
882@@ -180,9 +182,7 @@ pcl::visualization::ImageViewer::addRGBI
883
884 vtkSmartPointer<vtkImageData> image = vtkSmartPointer<vtkImageData>::New ();
885 image->SetExtent (0, width - 1, 0, height - 1, 0, 0);
886- image->SetScalarTypeToUnsignedChar ();
887- image->SetNumberOfScalarComponents (3);
888- image->AllocateScalars ();
889+ image->AllocateScalars (VTK_UNSIGNED_CHAR, 3);
890 image->GetPointData ()->GetScalars ()->SetVoidArray (data, 3 * width * height, 1);
891 #if ((VTK_MAJOR_VERSION == 5) && (VTK_MINOR_VERSION <= 10))
892 // Now create filter and set previously created transformation
893@@ -231,9 +231,7 @@ pcl::visualization::ImageViewer::addMono
894
895 vtkSmartPointer<vtkImageData> image = vtkSmartPointer<vtkImageData>::New ();
896 image->SetExtent (0, width - 1, 0, height - 1, 0, 0);
897- image->SetScalarTypeToUnsignedChar ();
898- image->SetNumberOfScalarComponents (1);
899- image->AllocateScalars ();
900+ image->AllocateScalars (VTK_UNSIGNED_CHAR, 1);
901 image->GetPointData ()->GetScalars ()->SetVoidArray (data, width * height, 1);
902
903 #if ((VTK_MAJOR_VERSION == 5) && (VTK_MINOR_VERSION <= 10))
904diff -up ./visualization/src/interactor_style.cpp.vtk6 ./visualization/src/interactor_style.cpp
905--- ./visualization/src/interactor_style.cpp.vtk6 2013-08-21 01:15:47.308900484 +0000
906+++ ./visualization/src/interactor_style.cpp 2013-08-21 01:18:42.048639938 +0000
907@@ -357,7 +357,7 @@ pcl::visualization::PCLVisualizerInterac
908 else
909 {
910 vtkPolyDataMapper* mapper = static_cast<vtkPolyDataMapper*>(act->actor->GetMapper ());
911- mapper->SetInput (data);
912+ mapper->SetInputData (data);
913 // Modify the actor
914 act->actor->SetMapper (mapper);
915 }
916@@ -386,7 +386,7 @@ pcl::visualization::PCLVisualizerInterac
917 // Update the data
918 vtkPolyData *data = static_cast<vtkPolyData*>(act->actor->GetMapper ()->GetInput ());
919 data->GetPointData ()->SetScalars (scalars);
920- data->Update ();
921+ //data->Update ();
922 // Modify the mapper
923 if (use_vbos_)
924 {
925@@ -402,7 +402,7 @@ pcl::visualization::PCLVisualizerInterac
926 vtkPolyDataMapper* mapper = static_cast<vtkPolyDataMapper*>(act->actor->GetMapper ());
927 mapper->SetScalarRange (minmax);
928 mapper->SetScalarModeToUsePointData ();
929- mapper->SetInput (data);
930+ mapper->SetInputData (data);
931 // Modify the actor
932 act->actor->SetMapper (mapper);
933 }
934diff -up ./visualization/src/pcl_plotter.cpp.vtk6 ./visualization/src/pcl_plotter.cpp
935--- ./visualization/src/pcl_plotter.cpp.vtk6 2013-08-21 02:42:40.584799051 +0000
936+++ ./visualization/src/pcl_plotter.cpp 2013-08-21 02:42:56.513131764 +0000
937@@ -120,7 +120,7 @@ pcl::visualization::PCLPlotter::addPlotD
938 //adding to chart
939 //vtkPlot *line = chart_->AddPlot(vtkChart::LINE);
940 vtkPlot *line = chart_->AddPlot (type);
941- line->SetInput (table, 0, 1);
942+ line->SetInputData (table, 0, 1);
943 line->SetWidth (1);
944
945 if (color == NULL) //color automatically based on the ColorScheme
946diff -up ./visualization/src/pcl_visualizer.cpp.vtk6 ./visualization/src/pcl_visualizer.cpp
947--- ./visualization/src/pcl_visualizer.cpp.vtk6 2013-07-23 17:21:02.000000000 +0000
948+++ ./visualization/src/pcl_visualizer.cpp 2013-08-21 02:18:07.410911372 +0000
949@@ -508,17 +508,17 @@ pcl::visualization::PCLVisualizer::addCo
950 axes_colors->InsertNextValue (1.0);
951
952 vtkSmartPointer<vtkPolyData> axes_data = axes->GetOutput ();
953- axes_data->Update ();
954+ axes->Update ();
955 axes_data->GetPointData ()->SetScalars (axes_colors);
956
957 vtkSmartPointer<vtkTubeFilter> axes_tubes = vtkSmartPointer<vtkTubeFilter>::New ();
958- axes_tubes->SetInput (axes_data);
959+ axes_tubes->SetInputData (axes_data);
960 axes_tubes->SetRadius (axes->GetScaleFactor () / 50.0);
961 axes_tubes->SetNumberOfSides (6);
962
963 vtkSmartPointer<vtkPolyDataMapper> axes_mapper = vtkSmartPointer<vtkPolyDataMapper>::New ();
964 axes_mapper->SetScalarModeToUsePointData ();
965- axes_mapper->SetInput (axes_tubes->GetOutput ());
966+ axes_mapper->SetInputConnection (axes_tubes->GetOutputPort ());
967
968 vtkSmartPointer<vtkLODActor> axes_actor = vtkSmartPointer<vtkLODActor>::New ();
969 axes_actor->SetMapper (axes_mapper);
970@@ -547,17 +547,17 @@ pcl::visualization::PCLVisualizer::addCo
971 axes_colors->InsertNextValue (1.0);
972
973 vtkSmartPointer<vtkPolyData> axes_data = axes->GetOutput ();
974- axes_data->Update ();
975+ axes->Update ();
976 axes_data->GetPointData ()->SetScalars (axes_colors);
977
978 vtkSmartPointer<vtkTubeFilter> axes_tubes = vtkSmartPointer<vtkTubeFilter>::New ();
979- axes_tubes->SetInput (axes_data);
980+ axes_tubes->SetInputData (axes_data);
981 axes_tubes->SetRadius (axes->GetScaleFactor () / 50.0);
982 axes_tubes->SetNumberOfSides (6);
983
984 vtkSmartPointer<vtkPolyDataMapper> axes_mapper = vtkSmartPointer<vtkPolyDataMapper>::New ();
985 axes_mapper->SetScalarModeToUsePointData ();
986- axes_mapper->SetInput (axes_tubes->GetOutput ());
987+ axes_mapper->SetInputConnection (axes_tubes->GetOutputPort ());
988
989 vtkSmartPointer<vtkLODActor> axes_actor = vtkSmartPointer<vtkLODActor>::New ();
990 axes_actor->SetMapper (axes_mapper);
991@@ -617,17 +617,17 @@ pcl::visualization::PCLVisualizer::addCo
992 axes_colors->InsertNextValue (1.0);
993
994 vtkSmartPointer<vtkPolyData> axes_data = axes->GetOutput ();
995- axes_data->Update ();
996+ axes->Update ();
997 axes_data->GetPointData ()->SetScalars (axes_colors);
998
999 vtkSmartPointer<vtkTubeFilter> axes_tubes = vtkSmartPointer<vtkTubeFilter>::New ();
1000- axes_tubes->SetInput (axes_data);
1001+ axes_tubes->SetInputData (axes_data);
1002 axes_tubes->SetRadius (axes->GetScaleFactor () / 50.0);
1003 axes_tubes->SetNumberOfSides (6);
1004
1005 vtkSmartPointer<vtkPolyDataMapper> axes_mapper = vtkSmartPointer<vtkPolyDataMapper>::New ();
1006 axes_mapper->SetScalarModeToUsePointData ();
1007- axes_mapper->SetInput (axes_tubes->GetOutput ());
1008+ axes_mapper->SetInputConnection (axes_tubes->GetOutputPort ());
1009
1010 vtkSmartPointer<vtkLODActor> axes_actor = vtkSmartPointer<vtkLODActor>::New ();
1011 axes_actor->SetMapper (axes_mapper);
1012@@ -835,7 +835,7 @@ pcl::visualization::PCLVisualizer::addPo
1013 line_1->SetPoint1 (cloud->points[i].x, cloud->points[i].y, cloud->points[i].z);
1014 line_1->SetPoint2 (p.x, p.y, p.z);
1015 line_1->Update ();
1016- polydata_1->AddInput (line_1->GetOutput ());
1017+ polydata_1->AddInputData (line_1->GetOutput ());
1018 line_1_colors->InsertNextTupleValue (green);
1019 }
1020 polydata_1->Update ();
1021@@ -862,7 +862,7 @@ pcl::visualization::PCLVisualizer::addPo
1022 line_2->SetPoint1 (cloud->points[i].x, cloud->points[i].y, cloud->points[i].z);
1023 line_2->SetPoint2 (p.x, p.y, p.z);
1024 line_2->Update ();
1025- polydata_2->AddInput (line_2->GetOutput ());
1026+ polydata_2->AddInputData (line_2->GetOutput ());
1027 line_2_colors->InsertNextTupleValue (blue);
1028 }
1029 polydata_2->Update ();
1030@@ -871,8 +871,8 @@ pcl::visualization::PCLVisualizer::addPo
1031
1032 // Assemble the two sets of lines
1033 vtkSmartPointer<vtkAppendPolyData> alldata = vtkSmartPointer<vtkAppendPolyData>::New ();
1034- alldata->AddInput (line_1_data);
1035- alldata->AddInput (line_2_data);
1036+ alldata->AddInputData (line_1_data);
1037+ alldata->AddInputData (line_2_data);
1038
1039 // Create an Actor
1040 vtkSmartPointer<vtkLODActor> actor;
1041@@ -1094,7 +1094,7 @@ pcl::visualization::PCLVisualizer::creat
1042 else
1043 {
1044 vtkSmartPointer<vtkDataSetMapper> mapper = vtkSmartPointer<vtkDataSetMapper>::New ();
1045- mapper->SetInput (data);
1046+ mapper->SetInputData (data);
1047
1048 if (use_scalars)
1049 {
1050@@ -1168,7 +1168,7 @@ pcl::visualization::PCLVisualizer::creat
1051 else
1052 {
1053 vtkSmartPointer<vtkDataSetMapper> mapper = vtkSmartPointer<vtkDataSetMapper>::New ();
1054- mapper->SetInput (data);
1055+ mapper->SetInputData (data);
1056
1057 if (use_scalars)
1058 {
1059@@ -1548,9 +1548,9 @@ pcl::visualization::PCLVisualizer::setSh
1060 {
1061 PCL_INFO ("[pcl::visualization::PCLVisualizer::setShapeRenderingProperties] Normals do not exist in the dataset, but Gouraud shading was requested. Estimating normals...\n");
1062 vtkSmartPointer<vtkPolyDataNormals> normals = vtkSmartPointer<vtkPolyDataNormals>::New ();
1063- normals->SetInput (actor->GetMapper ()->GetInput ());
1064+ normals->SetInputData (actor->GetMapper ()->GetInput ());
1065 normals->Update ();
1066- vtkDataSetMapper::SafeDownCast (actor->GetMapper ())->SetInput (normals->GetOutput ());
1067+ vtkDataSetMapper::SafeDownCast (actor->GetMapper ())->SetInputData (normals->GetOutput ());
1068 }
1069 actor->GetProperty ()->SetInterpolationToGouraud ();
1070 break;
1071@@ -1561,9 +1561,9 @@ pcl::visualization::PCLVisualizer::setSh
1072 {
1073 PCL_INFO ("[pcl::visualization::PCLVisualizer::setShapeRenderingProperties] Normals do not exist in the dataset, but Phong shading was requested. Estimating normals...\n");
1074 vtkSmartPointer<vtkPolyDataNormals> normals = vtkSmartPointer<vtkPolyDataNormals>::New ();
1075- normals->SetInput (actor->GetMapper ()->GetInput ());
1076+ normals->SetInputData (actor->GetMapper ()->GetInput() );
1077 normals->Update ();
1078- vtkDataSetMapper::SafeDownCast (actor->GetMapper ())->SetInput (normals->GetOutput ());
1079+ vtkDataSetMapper::SafeDownCast (actor->GetMapper ())->SetInputData (normals->GetOutput ());
1080 }
1081 actor->GetProperty ()->SetInterpolationToPhong ();
1082 break;
1083@@ -2277,7 +2277,7 @@ pcl::visualization::PCLVisualizer::addMo
1084
1085 vtkSmartPointer <vtkTransformFilter> trans_filter = vtkSmartPointer<vtkTransformFilter>::New ();
1086 trans_filter->SetTransform (transform);
1087- trans_filter->SetInput (polydata);
1088+ trans_filter->SetInputData (polydata);
1089 trans_filter->Update();
1090
1091 // Create an Actor
1092@@ -2751,7 +2751,7 @@ pcl::visualization::PCLVisualizer::updat
1093 // Update the data
1094 vtkPolyData *data = static_cast<vtkPolyData*>(am_it->second.actor->GetMapper ()->GetInput ());
1095 data->GetPointData ()->SetScalars (scalars);
1096- data->Update ();
1097+ //color_handler->Update ();
1098 // Modify the mapper
1099 if (use_vbos_)
1100 {
1101@@ -2771,7 +2771,7 @@ pcl::visualization::PCLVisualizer::updat
1102 vtkPolyDataMapper* mapper = static_cast<vtkPolyDataMapper*>(am_it->second.actor->GetMapper ());
1103 mapper->SetScalarRange (minmax);
1104 mapper->SetScalarModeToUsePointData ();
1105- mapper->SetInput (data);
1106+ mapper->SetInputData (data);
1107 // Modify the actor
1108 am_it->second.actor->SetMapper (mapper);
1109 am_it->second.actor->Modified ();
1110@@ -2876,7 +2876,7 @@ pcl::visualization::PCLVisualizer::addPo
1111 poly_grid->Allocate (1, 1);
1112 poly_grid->InsertNextCell (polygon->GetCellType (), polygon->GetPointIds ());
1113 poly_grid->SetPoints (poly_points);
1114- poly_grid->Update ();
1115+ //poly_grid->Update ();
1116
1117 createActorFromVTKDataSet (poly_grid, actor);
1118 actor->GetProperty ()->SetRepresentationToWireframe ();
1119@@ -3001,7 +3001,7 @@ pcl::visualization::PCLVisualizer::updat
1120 cells->Squeeze ();
1121 // Set the the vertices
1122 polydata->SetStrips (cells);
1123- polydata->Update ();
1124+ //polydata->Update ();
1125
1126 return (true);
1127 }
1128@@ -3056,7 +3056,7 @@ pcl::visualization::PCLVisualizer::addPo
1129
1130 // Setup actor and mapper
1131 vtkSmartPointer < vtkPolyDataMapper > mapper = vtkSmartPointer<vtkPolyDataMapper>::New ();
1132- mapper->SetInput (polyData);
1133+ mapper->SetInputData(polyData);
1134
1135 vtkSmartPointer < vtkActor > actor = vtkSmartPointer<vtkActor>::New ();
1136 actor->SetMapper (mapper);
1137@@ -3197,7 +3197,7 @@ pcl::visualization::PCLVisualizer::rende
1138
1139 vtkSmartPointer<vtkTransformFilter> trans_filter_center = vtkSmartPointer<vtkTransformFilter>::New ();
1140 trans_filter_center->SetTransform (trans_center);
1141- trans_filter_center->SetInput (polydata);
1142+ trans_filter_center->SetInputData (polydata);
1143 trans_filter_center->Update ();
1144
1145 vtkSmartPointer<vtkPolyDataMapper> mapper = vtkSmartPointer<vtkPolyDataMapper>::New ();
1146@@ -3252,7 +3252,7 @@ pcl::visualization::PCLVisualizer::rende
1147
1148 // Get camera positions
1149 vtkPolyData *sphere = subdivide->GetOutput ();
1150- sphere->Update ();
1151+ subdivide->Update ();
1152
1153 std::vector<Eigen::Vector3f> cam_positions;
1154 if (!use_vertices)
1155@@ -3679,7 +3679,7 @@ pcl::visualization::PCLVisualizer::fromH
1156 // Convert the PointCloud to VTK PolyData
1157 convertPointCloudToVTKPolyData (geometry_handler, polydata, initcells);
1158 // use the given geometry handler
1159- polydata->Update ();
1160+ //polydata->Update ();
1161
1162 // Get the colors from the handler
1163 bool has_colors = false;
1164diff -up ./visualization/src/vtk/vtkVertexBufferObjectMapper.cxx.vtk6 ./visualization/src/vtk/vtkVertexBufferObjectMapper.cxx
1165--- ./visualization/src/vtk/vtkVertexBufferObjectMapper.cxx.vtk6 2013-08-21 02:32:51.027493881 +0000
1166+++ ./visualization/src/vtk/vtkVertexBufferObjectMapper.cxx 2013-08-21 02:42:30.140580897 +0000
1167@@ -146,7 +146,7 @@ void vtkVertexBufferObjectMapper::SetInp
1168 // std::cout << "SetInput" << endl;
1169 if(input)
1170 {
1171- this->SetInputConnection(0, input->GetProducerPort());
1172+ this->SetInput(input);
1173 }
1174 else
1175 {
1176@@ -162,7 +162,7 @@ void vtkVertexBufferObjectMapper::SetInp
1177 // std::cout << "SetInput" << endl;
1178 if(input)
1179 {
1180- this->SetInputConnection(0, input->GetProducerPort());
1181+ this->SetInput(input);
1182 }
1183 else
1184 {
This page took 0.225372 seconds and 4 git commands to generate.