MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / setupInteractor

Method setupInteractor

visualization/src/pcl_visualizer.cpp:329–353  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

327
328/////////////////////////////////////////////////////////////////////////////////////////////
329void
330pcl::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/////////////////////////////////////////////////////////////////////////////////////////////

Callers 8

OpenNIPassthroughMethod · 0.80
PCDVideoPlayerMethod · 0.80
ManualRegistrationMethod · 0.80
PCLViewerDialogMethod · 0.80
CloudViewMethod · 0.80
PCLViewerMethod · 0.80
PCLViewerMethod · 0.80

Calls 3

NewFunction · 0.85
SetToleranceMethod · 0.80
InitializeMethod · 0.45

Tested by

no test coverage detected