logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

QwtPointArrayData - Interface for iterating over two QVector<double> objects.

Author

       Generated automatically by Doxygen for Qwt User's Guide from the source code.

Version 6.1.4                                    Wed Jan 2 2019                             QwtPointArrayData(3)

Constructor & Destructor Documentation

QwtPointArrayData::QwtPointArrayData(constQVector<double>&x,constQVector<double>&y)
       Constructor

       Parameters:x Array of x values
           y Array of y values

       Seealso:QwtPlotCurve::setData(), QwtPlotCurve::setSamples()QwtPointArrayData::QwtPointArrayData(constdouble*x,constdouble*y,size_tsize)
       Constructor

       Parameters:x Array of x values
           y Array of y values
           size Size of the x and y arrays

       Seealso:QwtPlotCurve::setData(), QwtPlotCurve::setSamples()

Detailed Description

       Interface for iterating over two QVector<double> objects.

Member Function Documentation

QRectFQwtPointArrayData::boundingRect()const[virtual]
       Calculate the bounding rectangle. The bounding rectangle is calculated once by iterating over all points
       and is stored for all following requests.

       Returns:
           Bounding rectangle

       Implements QwtSeriesData<QPointF>.

   QPointFQwtPointArrayData::sample(size_tindex)const[virtual]
       Return the sample at position i

       Parameters:index Index

       Returns:
           Sample at position i

       Implements QwtSeriesData<QPointF>.

   size_tQwtPointArrayData::size()const[virtual]Returns:
           Size of the data set

       Implements QwtSeriesData<QPointF>.

   constQVector<double>&QwtPointArrayData::xData()constReturns:
           Array of the x-values

   constQVector<double>&QwtPointArrayData::yData()constReturns:
           Array of the y-values

Name

       QwtPointArrayData - Interface for iterating over two QVector<double> objects.

Synopsis

       #include <qwt_point_data.h>

       Inherits QwtSeriesData<QPointF>.

   PublicMemberFunctionsQwtPointArrayData (const QVector< double > &x, const QVector< double > &y)
       QwtPointArrayData (const double *x, const double *y, size_t size)
       virtual QRectF boundingRect () const
           Calculate the bounding rectangle.
       virtual size_t size () const
       virtual QPointF sample (size_t index) const
       const QVector< double > & xData () const
       const QVector< double > & yData () const

   AdditionalInheritedMembers

See Also