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

Function toTopicId

pj_app/src/ui/Scene2DConfigPanel.cpp:20–24  ·  view source on GitHub ↗

SceneDockWidget keys layers by ObjectTopicId; LayerListView keys rows by an opaque qint64. The dock's topic id IS that opaque key.

Source from the content-addressed store, hash-verified

18// SceneDockWidget keys layers by ObjectTopicId; LayerListView keys rows by an
19// opaque qint64. The dock's topic id IS that opaque key.
20[[nodiscard]] ObjectTopicId toTopicId(qint64 id) {
21 ObjectTopicId tid;
22 tid.id = static_cast<uint32_t>(id);
23 return tid;
24}
25} // namespace
26
27Scene2DConfigPanel::Scene2DConfigPanel(QWidget* parent) : QWidget(parent) {

Callers 2

Scene2DConfigPanelMethod · 0.85
updateConfigPaneMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected