#include <mlCurveDataWrapper.h>
Inherits MLRefCountedBaseWrapper.
 | 
 | 
| void  | clearData () | 
|   | 
| void  | clear () | 
|   | 
| int  | getNumPoints () const | 
|   | 
| int  | getNumSeries () const | 
|   | 
| double  | getXValue (int point) const | 
|   | 
| QList< double >  | getXValues () const | 
|   | 
| QList< double >  | getXSpacing () const | 
|   | 
| QList< double >  | getXSlice (int startPoint, int endPoint=-1) | 
|   | 
| void  | setXValue (int point, double value) | 
|   | 
| void  | setX (int nPoints, QList< double > data, int step=1) | 
|   | 
| QList< double >  | getYValues (int series=0) const | 
|   | 
| double  | getYValue (int point, int series=0) const | 
|   | 
| QList< double >  | getYSlice (int startPoint, int endPoint=-1, int series=0) | 
|   | 
| void  | setYValue (int point, double value, int series=0) | 
|   | 
| void  | setY (int nPoints, QList< double > data, int step=1) | 
|   | 
| double  | getXMin () const | 
|   | 
| double  | getXMax () const | 
|   | 
| double  | getYMin () const | 
|   | 
| double  | getYMax () const | 
|   | 
| void  | setXRange (double xMin, double xMax) | 
|   | 
| void  | setAutoXRange () | 
|   | 
| void  | setYRange (double yMin, double yMax) | 
|   | 
| void  | setAutoYRange () | 
|   | 
| int  | getCurveType () const | 
|   | 
| void  | setCurveType (int curveType) | 
|   | 
| int  | getCurveStyle () const | 
|   | 
| void  | setCurveStyle (int curveStyle) | 
|   | 
| QString  | getCurveTitle () const | 
|   | 
| void  | setCurveTitle (QString curveTitle) | 
|   | 
| QString  | getCurveUnit () const | 
|   | 
| void  | setCurveUnit (QString curveUnit) | 
|   | 
| QString  | getCurveSymbol () const | 
|   | 
| void  | setCurveSymbol (QString curveSymbol) | 
|   | 
| void  | resizeX (int nPoints) | 
|   | 
| void  | resizeY (int nPoints) | 
|   | 
| void  | resizeY (int iSeries, int nPoints) | 
|   | 
A class that wraps CurveData objects for use in Python. 
 
◆ clear
  
  
      
        
          | void MLCurveDataWrapper::clear  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Clears curve data and reset curve properties. 
 
 
◆ clearData
  
  
      
        
          | void MLCurveDataWrapper::clearData  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ getCurveStyle
  
  
      
        
          | int MLCurveDataWrapper::getCurveStyle  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
slot   | 
  
 
 
◆ getCurveSymbol
  
  
      
        
          | QString MLCurveDataWrapper::getCurveSymbol  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
slot   | 
  
 
Returns the curve symbol. 
 
 
◆ getCurveTitle
  
  
      
        
          | QString MLCurveDataWrapper::getCurveTitle  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
slot   | 
  
 
 
◆ getCurveType
  
  
      
        
          | int MLCurveDataWrapper::getCurveType  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
slot   | 
  
 
 
◆ getCurveUnit
  
  
      
        
          | QString MLCurveDataWrapper::getCurveUnit  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
slot   | 
  
 
 
◆ getNumPoints
  
  
      
        
          | int MLCurveDataWrapper::getNumPoints  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
slot   | 
  
 
Returns the number of points in the curve. 
 
 
◆ getNumSeries
  
  
      
        
          | int MLCurveDataWrapper::getNumSeries  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
slot   | 
  
 
Returns the number of series in the curve. 
 
 
◆ getXMax
  
  
      
        
          | double MLCurveDataWrapper::getXMax  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
slot   | 
  
 
Returns the maxium X value. 
 
 
◆ getXMin
  
  
      
        
          | double MLCurveDataWrapper::getXMin  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
slot   | 
  
 
Returns the minimum X value. 
 
 
◆ getXSlice
  
  
      
        
          | QList< double > MLCurveDataWrapper::getXSlice  | 
          ( | 
          int |           startPoint,  | 
         
        
           | 
           | 
          int |           endPoint = -1 ) | 
         
       
   | 
  
slot   | 
  
 
Returns slice of X values from startPoint to endPoint (inclusive!). 
If endPoint is omitted, it is assumed to be the last point of the curve. 
 
 
◆ getXSpacing
  
  
      
        
          | QList< double > MLCurveDataWrapper::getXSpacing  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
slot   | 
  
 
Returns spacing of X values. 
 
 
◆ getXValue
  
  
      
        
          | double MLCurveDataWrapper::getXValue  | 
          ( | 
          int |           point | ) | 
           const | 
         
       
   | 
  
slot   | 
  
 
Returns the X value at point. 
 
 
◆ getXValues
  
  
      
        
          | QList< double > MLCurveDataWrapper::getXValues  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
slot   | 
  
 
 
◆ getYMax
  
  
      
        
          | double MLCurveDataWrapper::getYMax  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
slot   | 
  
 
Returns the maximum Y value. 
 
 
◆ getYMin
  
  
      
        
          | double MLCurveDataWrapper::getYMin  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
slot   | 
  
 
Returns the minimum Y value. 
 
 
◆ getYSlice
  
  
      
        
          | QList< double > MLCurveDataWrapper::getYSlice  | 
          ( | 
          int |           startPoint,  | 
         
        
           | 
           | 
          int |           endPoint = -1,  | 
         
        
           | 
           | 
          int |           series = 0 ) | 
         
       
   | 
  
slot   | 
  
 
Returns slice of Y values from startPoint to endPoint (inclusive!) in series. 
If series is omitted, series 0 is assumed. If endPoint is omitted, it is assumed to be the last point of the curve. 
 
 
◆ getYValue
  
  
      
        
          | double MLCurveDataWrapper::getYValue  | 
          ( | 
          int |           point,  | 
         
        
           | 
           | 
          int |           series = 0 ) const | 
         
       
   | 
  
slot   | 
  
 
Returns the Y value at point in series. 
If series is omitted, series 0 is assumed. 
 
 
◆ getYValues
  
  
      
        
          | QList< double > MLCurveDataWrapper::getYValues  | 
          ( | 
          int |           series = 0 | ) | 
           const | 
         
       
   | 
  
slot   | 
  
 
Returns all Y values for a given series. 
 
 
◆ resizeX
  
  
      
        
          | void MLCurveDataWrapper::resizeX  | 
          ( | 
          int |           nPoints | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Changes length of X-series. New values are initialized to zero. 
 
 
◆ resizeY [1/2]
  
  
      
        
          | void MLCurveDataWrapper::resizeY  | 
          ( | 
          int |           iSeries,  | 
         
        
           | 
           | 
          int |           nPoints ) | 
         
       
   | 
  
slot   | 
  
 
Changes length of iSeries-th Y-series. New values are initialized to zero. 
 
 
◆ resizeY [2/2]
  
  
      
        
          | void MLCurveDataWrapper::resizeY  | 
          ( | 
          int |           nPoints | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Changes length of first Y-series. New values are initialized to zero. 
 
 
◆ setAutoXRange
  
  
      
        
          | void MLCurveDataWrapper::setAutoXRange  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Sets X value range to 'automatic', i.e. dependent on X series data. 
 
 
◆ setAutoYRange
  
  
      
        
          | void MLCurveDataWrapper::setAutoYRange  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Sets Y value range to 'automatic', i.e. dependent on Y series data. 
 
 
◆ setCurveStyle
  
  
      
        
          | void MLCurveDataWrapper::setCurveStyle  | 
          ( | 
          int |           curveStyle | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ setCurveSymbol
  
  
      
        
          | void MLCurveDataWrapper::setCurveSymbol  | 
          ( | 
          QString |           curveSymbol | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ setCurveTitle
  
  
      
        
          | void MLCurveDataWrapper::setCurveTitle  | 
          ( | 
          QString |           curveTitle | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ setCurveType
  
  
      
        
          | void MLCurveDataWrapper::setCurveType  | 
          ( | 
          int |           curveType | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ setCurveUnit
  
  
      
        
          | void MLCurveDataWrapper::setCurveUnit  | 
          ( | 
          QString |           curveUnit | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ setX
  
  
      
        
          | void MLCurveDataWrapper::setX  | 
          ( | 
          int |           nPoints,  | 
         
        
           | 
           | 
          QList< double > |           data,  | 
         
        
           | 
           | 
          int |           step = 1 ) | 
         
       
   | 
  
slot   | 
  
 
Sets X-series to nPoints double values copied from the source array data. 
The optional step value specifies the array index difference between two consecutive X-series values. Hence, the data array is expected to contain at least (nPoints-1)*step+1 values. If no X data is specified, the X values are generated automatically as numbers 0, 1, ... 
 
 
◆ setXRange
  
  
      
        
          | void MLCurveDataWrapper::setXRange  | 
          ( | 
          double |           xMin,  | 
         
        
           | 
           | 
          double |           xMax ) | 
         
       
   | 
  
slot   | 
  
 
Explicitly sets X value range to xMin ... xMax. 
 
 
◆ setXValue
  
  
      
        
          | void MLCurveDataWrapper::setXValue  | 
          ( | 
          int |           point,  | 
         
        
           | 
           | 
          double |           value ) | 
         
       
   | 
  
slot   | 
  
 
Sets the X value at point to value. 
 
 
◆ setY
  
  
      
        
          | void MLCurveDataWrapper::setY  | 
          ( | 
          int |           nPoints,  | 
         
        
           | 
           | 
          QList< double > |           data,  | 
         
        
           | 
           | 
          int |           step = 1 ) | 
         
       
   | 
  
slot   | 
  
 
Sets Y data to a single series of nPoints double values copied from the source array data. 
All previous Y-series are replaced by the new series. The optional step value specifies the array index difference between two consecutive Y-series values. Hence, the data array is expected to contain at least (nPoints-1)*step+1 values. 
 
 
◆ setYRange
  
  
      
        
          | void MLCurveDataWrapper::setYRange  | 
          ( | 
          double |           yMin,  | 
         
        
           | 
           | 
          double |           yMax ) | 
         
       
   | 
  
slot   | 
  
 
Explicitly sets Y value range to yMin ... yMax. 
 
 
◆ setYValue
  
  
      
        
          | void MLCurveDataWrapper::setYValue  | 
          ( | 
          int |           point,  | 
         
        
           | 
           | 
          double |           value,  | 
         
        
           | 
           | 
          int |           series = 0 ) | 
         
       
   | 
  
slot   | 
  
 
Sets Y value at point in series to value. 
If series is omitted, series 0 is assumed. 
 
 
◆ curveStyle
  
  
      
        
          | int MLCurveDataWrapper::curveStyle | 
         
       
   | 
  
readwrite   | 
  
 
 
◆ curveSymbol
  
  
      
        
          | QString MLCurveDataWrapper::curveSymbol | 
         
       
   | 
  
readwrite   | 
  
 
 
◆ curveTitle
  
  
      
        
          | QString MLCurveDataWrapper::curveTitle | 
         
       
   | 
  
readwrite   | 
  
 
 
◆ curveType
  
  
      
        
          | int MLCurveDataWrapper::curveType | 
         
       
   | 
  
readwrite   | 
  
 
 
◆ curveUnit
  
  
      
        
          | QString MLCurveDataWrapper::curveUnit | 
         
       
   | 
  
readwrite   | 
  
 
 
◆ numPoints
  
  
      
        
          | int MLCurveDataWrapper::numPoints | 
         
       
   | 
  
read   | 
  
 
 
◆ numSeries
  
  
      
        
          | int MLCurveDataWrapper::numSeries | 
         
       
   | 
  
read   |