MeVisLab Scripting Reference
MLCurveDataWrapper Class Reference

#include <mlCurveDataWrapper.h>

Inherits MLRefCountedBaseWrapper.

Public Slots

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)
 

Properties

int curveStyle
 
QString curveSymbol
 
QString curveTitle
 
int curveType
 
QString curveUnit
 
int numPoints
 
int numSeries
 

Detailed Description

A class that wraps CurveData objects for use in Python.

Member Function Documentation

◆ clear

void MLCurveDataWrapper::clear ( )
slot

Clear curve data and reset curve properties.

◆ clearData

void MLCurveDataWrapper::clearData ( )
slot

Clear curve data.

◆ getCurveStyle

int MLCurveDataWrapper::getCurveStyle ( ) const
slot

Get curve style.

◆ getCurveSymbol

QString MLCurveDataWrapper::getCurveSymbol ( ) const
slot

Get curve symbol.

◆ getCurveTitle

QString MLCurveDataWrapper::getCurveTitle ( ) const
slot

Get curve title.

◆ getCurveType

int MLCurveDataWrapper::getCurveType ( ) const
slot

Get curve type.

◆ getCurveUnit

QString MLCurveDataWrapper::getCurveUnit ( ) const
slot

Get curve unit.

◆ getNumPoints

int MLCurveDataWrapper::getNumPoints ( ) const
slot

Get the number of points in the curve.

◆ getNumSeries

int MLCurveDataWrapper::getNumSeries ( ) const
slot

Get the number of series in the curve.

◆ getXMax

double MLCurveDataWrapper::getXMax ( ) const
slot

Get maxium X value.

◆ getXMin

double MLCurveDataWrapper::getXMin ( ) const
slot

Get minimum X value.

◆ getXSlice

QList< double > MLCurveDataWrapper::getXSlice ( int startPoint,
int endPoint = -1 )
slot

Get 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

Get spacing of X values.

◆ getXValue

double MLCurveDataWrapper::getXValue ( int point) const
slot

Get the X value at point.

◆ getXValues

QList< double > MLCurveDataWrapper::getXValues ( ) const
slot

Get all X values.

◆ getYMax

double MLCurveDataWrapper::getYMax ( ) const
slot

Get maximum Y value.

◆ getYMin

double MLCurveDataWrapper::getYMin ( ) const
slot

Get minimum Y value.

◆ getYSlice

QList< double > MLCurveDataWrapper::getYSlice ( int startPoint,
int endPoint = -1,
int series = 0 )
slot

Get 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

Get 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

Get all Y values for a given series.

◆ resizeX

void MLCurveDataWrapper::resizeX ( int nPoints)
slot

Change length of X-series. New values are initialized to zero.

◆ resizeY [1/2]

void MLCurveDataWrapper::resizeY ( int iSeries,
int nPoints )
slot

Change length of iSeries-th Y-series. New values are initialized to zero.

◆ resizeY [2/2]

void MLCurveDataWrapper::resizeY ( int nPoints)
slot

Change length of first Y-series. New values are initialized to zero.

◆ setAutoXRange

void MLCurveDataWrapper::setAutoXRange ( )
slot

Set X value range to 'automatic', i.e. dependent on X series data.

◆ setAutoYRange

void MLCurveDataWrapper::setAutoYRange ( )
slot

Set Y value range to 'automatic', i.e. dependent on Y series data.

◆ setCurveStyle

void MLCurveDataWrapper::setCurveStyle ( int curveStyle)
slot

Set curve style.

◆ setCurveSymbol

void MLCurveDataWrapper::setCurveSymbol ( QString curveSymbol)
slot

Set curve symbol.

◆ setCurveTitle

void MLCurveDataWrapper::setCurveTitle ( QString curveTitle)
slot

Set curve title.

◆ setCurveType

void MLCurveDataWrapper::setCurveType ( int curveType)
slot

Set curve type.

◆ setCurveUnit

void MLCurveDataWrapper::setCurveUnit ( QString curveUnit)
slot

Set curve unit.

◆ setX

void MLCurveDataWrapper::setX ( int nPoints,
QList< double > data,
int step = 1 )
slot

Set 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 set X value range to xMin ... xMax.

◆ setXValue

void MLCurveDataWrapper::setXValue ( int point,
double value )
slot

Set the X value at point to value.

◆ setY

void MLCurveDataWrapper::setY ( int nPoints,
QList< double > data,
int step = 1 )
slot

Set 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 set Y value range to yMin ... yMax.

◆ setYValue

void MLCurveDataWrapper::setYValue ( int point,
double value,
int series = 0 )
slot

Set Y value at point in series to value.

If series is omitted, series 0 is assumed.

Property Documentation

◆ curveStyle

int MLCurveDataWrapper::curveStyle
readwrite

Style of curve.

◆ curveSymbol

QString MLCurveDataWrapper::curveSymbol
readwrite

Symbol of curve.

◆ curveTitle

QString MLCurveDataWrapper::curveTitle
readwrite

Title of curve.

◆ curveType

int MLCurveDataWrapper::curveType
readwrite

Type of curve.

◆ curveUnit

QString MLCurveDataWrapper::curveUnit
readwrite

Unit of curve.

◆ numPoints

int MLCurveDataWrapper::numPoints
read

Number of points.

◆ numSeries

int MLCurveDataWrapper::numSeries
read

Number of series.