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

Method showRobotLayerConfig

pj_app/src/ui/Scene3DConfigPanel.cpp:781–794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779}
780
781void Scene3DConfigPanel::showRobotLayerConfig(uint32_t topic_id_value) {
782 if (bound_dock_ == nullptr) {
783 return;
784 }
785 ObjectTopicId topic_id;
786 topic_id.id = topic_id_value;
787 ISceneLayer* layer = bound_dock_->layerFor(topic_id);
788 if (layer == nullptr) {
789 return;
790 }
791 // Robot layers aren't in the Topics list, so the list selection is unrelated;
792 // last click wins on config_host_ (the list selection stays as-is).
793 config_host_->setConfigWidget(layer->createConfigWidget(config_host_));
794}
795
796bool Scene3DConfigPanel::eventFilter(QObject* watched, QEvent* event) {
797 if (event->type() == QEvent::MouseButtonPress) {

Callers

nothing calls this directly

Calls 3

layerForMethod · 0.80
setConfigWidgetMethod · 0.80
createConfigWidgetMethod · 0.45

Tested by

no test coverage detected