MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / updateSelectedLayerPane

Method updateSelectedLayerPane

pj_app/src/ui/Scene3DConfigPanel.cpp:971–986  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

969}
970
971void Scene3DConfigPanel::updateSelectedLayerPane() {
972 config_host_->clear();
973 if (bound_dock_ == nullptr) {
974 return;
975 }
976 const auto selected = selectedTopicId();
977 if (!selected.has_value()) {
978 return;
979 }
980 ISceneLayer* layer = bound_dock_->layerFor(*selected);
981 if (layer == nullptr) {
982 return;
983 }
984 config_host_->setConfigWidget(layer->createConfigWidget(config_host_));
985 updateParamsToolbarState();
986}
987
988void Scene3DConfigPanel::onCopyParams() {
989 if (bound_dock_ == nullptr) {

Callers

nothing calls this directly

Calls 4

layerForMethod · 0.80
setConfigWidgetMethod · 0.80
clearMethod · 0.45
createConfigWidgetMethod · 0.45

Tested by

no test coverage detected