pcp
[Top] [All Lists]

PCP Updates: pmchart(1) data structures

To: PCP Mailing List <pcp@xxxxxxxxxxx>
Subject: PCP Updates: pmchart(1) data structures
From: Dave Brolley <brolley@xxxxxxxxxx>
Date: Thu, 11 Aug 2016 14:39:27 -0400
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
Changes committed to git://git.pcp.io/brolley/pcp qt

Dave Brolley (1):
      pmchart(1): Change in data structures for chart data.

src/pmchart/groupcontrol.cpp |   22 ++++++--------
 src/pmchart/groupcontrol.h   |    4 +-
src/pmchart/sampling.cpp | 64 +++++++++++++++++++++++--------------------
 src/pmchart/sampling.h       |    8 ++---
 4 files changed, 50 insertions(+), 48 deletions(-)

Details ...

commit 9bd446832035900281457b89ad2b5b2caddff8f6
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Thu Aug 11 14:30:36 2016 -0400

    pmchart(1): Change in data structures for chart data.

    QwtPlotCurve::setRawSamples is deprecated and we needed to
    switch to another method for setting the plot data. This suggested
    switching the plot data from array of double to a vector of something.

    The initial idea was to switch the data to QVector<double> and to use
    QwtPlotCurve::setSamples( const QVector<double> &xData,
    const QVector<double> &yData ). However it looks like this
    method is also on the way out. The final implementation keeps
    the data as QVector<double> and constructs a QVector<QPointF>
    so that QwtPlotCurve::setSamples( const QVector<QPointF> &samples )
    can be used.

<Prev in Thread] Current Thread [Next in Thread>
  • PCP Updates: pmchart(1) data structures, Dave Brolley <=