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

Method initializeToolBox

apps/cloud_composer/src/cloud_composer.cpp:192–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190{}
191
192void
193pcl::cloud_composer::ComposerMainWindow::initializeToolBox()
194{
195 tool_box_model_ = new ToolBoxModel(tool_box_view_, tool_parameter_view_, this);
196 tool_selection_model_ = new QItemSelectionModel(tool_box_model_);
197 tool_box_model_->setSelectionModel(tool_selection_model_);
198
199 tool_box_view_->setModel(tool_box_model_);
200 tool_box_view_->setSelectionModel(tool_selection_model_);
201 tool_box_view_->setIconSize(QSize(32, 32));
202 tool_box_view_->setIndentation(10);
203
204 connect(tool_selection_model_,
205 SIGNAL(currentChanged(const QModelIndex&, const QModelIndex&)),
206 tool_box_model_,
207 SLOT(selectedToolChanged(const QModelIndex&, const QModelIndex&)));
208
209 connect(tool_box_model_,
210 SIGNAL(enqueueToolAction(AbstractTool*)),
211 this,
212 SLOT(enqueueToolAction(AbstractTool*)));
213
214 connect(this,
215 SIGNAL(activeProjectChanged(ProjectModel*, ProjectModel*)),
216 tool_box_model_,
217 SLOT(activeProjectChanged(ProjectModel*, ProjectModel*)));
218
219 // TODO : Remove this, tools should have a better way of being run
220 connect(action_run_tool_, SIGNAL(clicked()), tool_box_model_, SLOT(toolAction()));
221 // tool_box_view_->setStyleSheet("branch:has-siblings:!adjoins-item:image none");
222 // tool_box_view_->setStyleSheet("branch:!has-children:!has-siblings:adjoins-item:image:
223 // none");
224}
225
226void
227pcl::cloud_composer::ComposerMainWindow::initializePlugins()

Callers

nothing calls this directly

Calls 2

setSelectionModelMethod · 0.80
setModelMethod · 0.45

Tested by

no test coverage detected