////////////////////////////////////////////////////////////////////////////////////////
| 327 | |
| 328 | ///////////////////////////////////////////////////////////////////////////////////////////// |
| 329 | void |
| 330 | pcl::visualization::PCLVisualizer::setupInteractor ( |
| 331 | vtkRenderWindowInteractor *iren, |
| 332 | vtkRenderWindow *win) |
| 333 | { |
| 334 | win->AlphaBitPlanesOff (); |
| 335 | win->PointSmoothingOff (); |
| 336 | win->LineSmoothingOff (); |
| 337 | win->PolygonSmoothingOff (); |
| 338 | win->SwapBuffersOn (); |
| 339 | win->SetStereoTypeToAnaglyph (); |
| 340 | |
| 341 | iren->SetRenderWindow (win); |
| 342 | iren->SetInteractorStyle (style_); |
| 343 | //iren->SetStillUpdateRate (30.0); |
| 344 | iren->SetDesiredUpdateRate (30.0); |
| 345 | |
| 346 | // Initialize and create timer, also create window |
| 347 | iren->Initialize (); |
| 348 | |
| 349 | // Set a simple PointPicker |
| 350 | vtkSmartPointer<vtkPointPicker> pp = vtkSmartPointer<vtkPointPicker>::New (); |
| 351 | pp->SetTolerance (pp->GetTolerance () * 2); |
| 352 | iren->SetPicker (pp); |
| 353 | } |
| 354 | |
| 355 | |
| 356 | ///////////////////////////////////////////////////////////////////////////////////////////// |
no test coverage detected