Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove VTK legacy functions #2159

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,6 @@ pcl::visualization::PCLVisualizer::addSphere (const PointT &center, double radiu
actor->GetProperty ()->SetRepresentationToSurface ();
actor->GetProperty ()->SetInterpolationToFlat ();
actor->GetProperty ()->SetColor (r, g, b);
actor->GetMapper ()->ImmediateModeRenderingOn ();
actor->GetMapper ()->StaticOn ();
actor->GetMapper ()->ScalarVisibilityOff ();
actor->GetMapper ()->Update ();
Expand Down Expand Up @@ -1531,7 +1530,6 @@ pcl::visualization::PCLVisualizer::updatePointCloud (const typename pcl::PointCl
double minmax[2];
minmax[0] = std::numeric_limits<double>::min ();
minmax[1] = std::numeric_limits<double>::max ();
am_it->second.actor->GetMapper ()->ImmediateModeRenderingOff ();
am_it->second.actor->GetMapper ()->SetScalarRange (minmax);

// Update the mapper
Expand Down Expand Up @@ -1567,7 +1565,6 @@ pcl::visualization::PCLVisualizer::updatePointCloud (const typename pcl::PointCl
double minmax[2];
minmax[0] = std::numeric_limits<double>::min ();
minmax[1] = std::numeric_limits<double>::max ();
am_it->second.actor->GetMapper ()->ImmediateModeRenderingOff ();
am_it->second.actor->GetMapper ()->SetScalarRange (minmax);

// Update the mapper
Expand Down Expand Up @@ -1643,7 +1640,6 @@ pcl::visualization::PCLVisualizer::updatePointCloud (const typename pcl::PointCl
// Update the data
polydata->GetPointData ()->SetScalars (scalars);

am_it->second.actor->GetMapper ()->ImmediateModeRenderingOff ();
am_it->second.actor->GetMapper ()->SetScalarRange (minmax);

// Update the mapper
Expand Down
3 changes: 0 additions & 3 deletions visualization/src/pcl_visualizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,6 @@ pcl::visualization::PCLVisualizer::createActorFromVTKDataSet (const vtkSmartPoin
mapper->ScalarVisibilityOn ();
}
}
mapper->ImmediateModeRenderingOff ();

actor->SetNumberOfCloudPoints (int (std::max<vtkIdType> (1, data->GetNumberOfPoints () / 10)));
actor->GetProperty ()->SetInterpolationToFlat ();
Expand Down Expand Up @@ -1297,7 +1296,6 @@ pcl::visualization::PCLVisualizer::createActorFromVTKDataSet (const vtkSmartPoin
mapper->ScalarVisibilityOn ();
}
}
mapper->ImmediateModeRenderingOff ();

//actor->SetNumberOfCloudPoints (int (std::max<vtkIdType> (1, data->GetNumberOfPoints () / 10)));
actor->GetProperty ()->SetInterpolationToFlat ();
Expand Down Expand Up @@ -1583,7 +1581,6 @@ pcl::visualization::PCLVisualizer::setPointCloudRenderingProperties (
// using immediate more rendering.
case PCL_VISUALIZER_IMMEDIATE_RENDERING:
{
actor->GetMapper ()->SetImmediateModeRendering (int (value));
actor->Modified ();
break;
}
Expand Down