MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / init

Method init

gui/src/plotchannel.cpp:42–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40{}
41
42void PlotChannel::init()
43{
44 m_curve = new QwtPlotCurve(m_name);
45 m_curve->setAxes(m_xAxis->axisId(), m_yAxis->axisId());
46 m_curve->setStyle(QwtPlotCurve::Lines);
47 m_curve->setPen(m_pen);
48 m_curve->setRenderHint(QwtPlotItem::RenderAntialiased, true);
49 m_curve->setPaintAttribute(QwtPlotCurve::ClipPolygons, false);
50
51 m_curve->setItemAttribute(QwtPlotItem::Legend, true);
52 symbol = new QwtSymbol(QwtSymbol::NoSymbol, QBrush(m_pen.color()), QPen(m_pen.color()), QSize(7, 7));
53 m_curve->setSymbol(symbol);
54 // curvefitter (?)
55}
56
57void PlotChannel::deinit() { delete m_curve; }
58

Callers

nothing calls this directly

Calls 6

setAxesMethod · 0.80
axisIdMethod · 0.80
setSymbolMethod · 0.80
setStyleMethod · 0.45
setPenMethod · 0.45
colorMethod · 0.45

Tested by

no test coverage detected