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

Method CloudView

apps/cloud_composer/src/cloud_view.cpp:13–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13pcl::cloud_composer::CloudView::CloudView (QWidget* parent)
14 : QWidget (parent)
15{
16 qvtk_ = new PCLQVTKWidget(this);
17 //Create the QVTKWidget
18#if VTK_MAJOR_VERSION > 8
19 auto renderer = vtkSmartPointer<vtkRenderer>::New();
20 auto renderWindow = vtkSmartPointer<vtkGenericOpenGLRenderWindow>::New();
21 renderWindow->AddRenderer(renderer);
22 vis_.reset(new pcl::visualization::PCLVisualizer(renderer, renderWindow, "", false));
23#else
24 vis_.reset(new pcl::visualization::PCLVisualizer("", false));
25#endif // VTK_MAJOR_VERSION > 8
26 setRenderWindowCompat(*qvtk_, *(vis_->getRenderWindow()));
27 vis_->setupInteractor(getInteractorCompat(*qvtk_), getRenderWindowCompat(*qvtk_), style_switch_);
28 vis_->getInteractorStyle()->setKeyboardModifier(pcl::visualization::INTERACTOR_KB_MOD_SHIFT);
29
30 initializeInteractorSwitch ();
31
32 QGridLayout *mainLayout = new QGridLayout (this);
33 mainLayout-> addWidget (qvtk_,0,0);
34}
35
36pcl::cloud_composer::CloudView::CloudView (ProjectModel* model, QWidget* parent)
37 : QWidget (parent)

Callers

nothing calls this directly

Calls 5

NewFunction · 0.85
setupInteractorMethod · 0.80
getInteractorStyleMethod · 0.80
resetMethod · 0.45
getRenderWindowMethod · 0.45

Tested by

no test coverage detected