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

Method setStyleInternal

gui/src/plotchannel.cpp:92–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void PlotChannel::setStyleInternal(int style)
93{
94
95 m_curve->setPaintAttribute(QwtPlotCurve::ClipPolygons, true);
96 m_curve->setCurveAttribute(QwtPlotCurve::Fitted, false);
97
98 switch(style) {
99 case PCS_LINES:
100 m_curve->setStyle(QwtPlotCurve::Lines);
101 break;
102 case PCS_DOTS:
103 m_curve->setStyle(QwtPlotCurve::Dots);
104 break;
105 case PCS_STEPS:
106 m_curve->setStyle(QwtPlotCurve::Steps);
107 break;
108 case PCS_STICKS:
109 m_curve->setStyle(QwtPlotCurve::Sticks);
110 break;
111 case PCS_SMOOTH:
112 m_curve->setPaintAttribute(QwtPlotCurve::ClipPolygons, false);
113 m_curve->setCurveAttribute(QwtPlotCurve::Fitted, true);
114 m_curve->setStyle(QwtPlotCurve::Lines);
115 break;
116 default:
117 m_curve->setStyle(QwtPlotCurve::Lines);
118 break;
119 }
120 Q_EMIT doReplot();
121}
122
123bool PlotChannel::isEnabled() const { return m_isEnabled; }
124

Callers

nothing calls this directly

Calls 1

setStyleMethod · 0.45

Tested by

no test coverage detected