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

Method createPlot

pj_plotting/widget/src/PlotDocker.cpp:266–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264
265 private:
266 PlotWidget* createPlot(const QString& state_id) {
267 auto* plot = new PlotWidget(session_, catalog_, restored_parent_);
268 plot->setStateId(state_id);
269 used_.insert(plot);
270 plots_by_position_.push_back(plot);
271 if (!plot->stateId().isEmpty() && !plots_by_id_.contains(plot->stateId())) {
272 plots_by_id_.insert(plot->stateId(), plot);
273 }
274 return plot;
275 }
276
277 SessionManager* session_ = nullptr;
278 CatalogModel* catalog_ = nullptr;

Callers

nothing calls this directly

Calls 5

setStateIdMethod · 0.45
insertMethod · 0.45
isEmptyMethod · 0.45
stateIdMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected