CycloBranch
cCalibrationChart Class Reference

Calibration chart. More...

#include <cCalibrationChart.h>

Inheritance diagram for cCalibrationChart:

Signals

void emitXValueInterval (double minxvalue, double maxxvalue)
 The signal is emitted when the range of x value is changed. More...
 

Public Member Functions

 cCalibrationChart (cGlobalPreferences *globalpreferences, QWidget *parent)
 The constructor. More...
 
 ~cCalibrationChart ()
 The destructor.
 
void closeEvent (QCloseEvent *event)
 Handle the window close event. More...
 
void applyGlobalPreferences (cGlobalPreferences *globalpreferences)
 Apply new global preferences. More...
 
void setLineParameters (int equationtype, double a, double b, vector< double > xvalues, vector< double > yvalues, vector< double > sd)
 Set parameters of calibration curve. More...
 
void setData (vector< double > xvalues, vector< double > yvalues, vector< double > sd, vector< string > datagroups, vector< int > &datatimevalues)
 Set data points. More...
 
void createTable (double a, double b, vector< double > &calibrationxvalues, vector< double > &calibrationyvalues, vector< double > &calibrationsd, vector< string > &datagroups, vector< double > &dataxvalues, vector< double > &datayvalues, vector< double > &datasd, vector< int > &datatimevalues)
 Create the table content. More...
 
void deleteTable ()
 Delete the table content.
 

Protected Member Functions

void keyPressEvent (QKeyEvent *event)
 Handle a key press event. More...
 

Detailed Description

Calibration chart.

Constructor & Destructor Documentation

◆ cCalibrationChart()

cCalibrationChart::cCalibrationChart ( cGlobalPreferences globalpreferences,
QWidget *  parent 
)

The constructor.

Parameters
globalpreferencesglobal preferences of the application
parentpointer to a parent widget

Member Function Documentation

◆ applyGlobalPreferences()

void cCalibrationChart::applyGlobalPreferences ( cGlobalPreferences globalpreferences)

Apply new global preferences.

Parameters
globalpreferencesglobal preferences of the application

◆ closeEvent()

void cCalibrationChart::closeEvent ( QCloseEvent *  event)

Handle the window close event.

Parameters
eventpointer to QCloseEvent

◆ createTable()

void cCalibrationChart::createTable ( double  a,
double  b,
vector< double > &  calibrationxvalues,
vector< double > &  calibrationyvalues,
vector< double > &  calibrationsd,
vector< string > &  datagroups,
vector< double > &  dataxvalues,
vector< double > &  datayvalues,
vector< double > &  datasd,
vector< int > &  datatimevalues 
)

Create the table content.

Parameters
aa
bb
calibrationxvaluesx coordinates of calibration points
calibrationyvaluesy coordinates of calibration points
calibrationsdstandard deviation of y values of calibration points
datagroupsnames of groups of data points
dataxvaluesx coordinates of data points
datayvaluesy coordinates of data points
datasdstandard deviation of y values of data points
datatimevaluesdata collection times corresponding the groups

◆ emitXValueInterval

void cCalibrationChart::emitXValueInterval ( double  minxvalue,
double  maxxvalue 
)
signal

The signal is emitted when the range of x value is changed.

Parameters
minxvaluea minimum threshold of x value
maxxvaluea maximum threshold of x value

◆ keyPressEvent()

void cCalibrationChart::keyPressEvent ( QKeyEvent *  event)
protected

Handle a key press event.

Parameters
eventpointer to QKeyEvent

◆ setData()

void cCalibrationChart::setData ( vector< double >  xvalues,
vector< double >  yvalues,
vector< double >  sd,
vector< string >  datagroups,
vector< int > &  datatimevalues 
)

Set data points.

Parameters
xvaluesx coordinates of points
yvaluesy coordinates of points
sdstandard deviation of y values
datagroupsvector of group names
datatimevaluesdata collection times corresponding the groups

◆ setLineParameters()

void cCalibrationChart::setLineParameters ( int  equationtype,
double  a,
double  b,
vector< double >  xvalues,
vector< double >  yvalues,
vector< double >  sd 
)

Set parameters of calibration curve.

Parameters
equationtype0 (y = a*x), 1 (y = a*x + b), 2 (manual mode)
aa
bb
xvaluesx coordinates of points
yvaluesy coordinates of points
sdstandard deviation of y values

The documentation for this class was generated from the following files: