| 90 | } |
| 91 | |
| 92 | void 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 | |
| 123 | bool PlotChannel::isEnabled() const { return m_isEnabled; } |
| 124 | |