CycloBranch
cCalibrationChartScene Class Reference

The implementation of an isotopic pattern simulator (graphics). More...

#include <cCalibrationChartScene.h>

Inheritance diagram for cCalibrationChartScene:

Signals

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

Public Member Functions

 cCalibrationChartScene (QWidget *parent=0)
 The constructor. More...
 
 ~cCalibrationChartScene ()
 The destructor.
 
void initialize ()
 Initialize the widget.
 
void exportToPDF (QString filename, bool postscript)
 Export spectrum scene into a PDF or a PS file. More...
 
void exportToSVG (QString filename)
 Export spectrum scene into a SVG file. More...
 
void exportToPNG (QString filename)
 Export spectrum scene into a PNG file. More...
 
void hideLabels (bool state)
 Hide labels of calibration points. 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 > datax, vector< double > datay, vector< double > datasd, vector< string > datagroups, vector< int > datatimevalues)
 Set parameters of calibration curve. More...
 
void setGraphType (int type)
 Set graph type. More...
 
double getMaximumConcentration ()
 Get the maximum concentration. More...
 
int getMaximumCollectionTime ()
 Get the maximum collection time. More...
 

Protected Member Functions

void wheelEvent (QWheelEvent *event)
 Handle the mouse wheel event. More...
 
void mouseMoveEvent (QMouseEvent *event)
 Handle the mouse move event. More...
 
void mouseReleaseEvent (QMouseEvent *event)
 Handle the mouse release event. More...
 
void mousePressEvent (QMouseEvent *event)
 Handle the mouse press event. More...
 
void showEvent (QShowEvent *event)
 Handle the widget show event. More...
 
void resizeEvent (QResizeEvent *event)
 Handle the widget resize event. More...
 

Detailed Description

The implementation of an isotopic pattern simulator (graphics).

Constructor & Destructor Documentation

◆ cCalibrationChartScene()

cCalibrationChartScene::cCalibrationChartScene ( QWidget *  parent = 0)

The constructor.

Parameters
parentpointer to a parent widget

Member Function Documentation

◆ exportToPDF()

void cCalibrationChartScene::exportToPDF ( QString  filename,
bool  postscript 
)

Export spectrum scene into a PDF or a PS file.

Parameters
filenamefilename
postscriptif true then PS file is generated instead of PDF

◆ exportToPNG()

void cCalibrationChartScene::exportToPNG ( QString  filename)

Export spectrum scene into a PNG file.

Parameters
filenamefilename

◆ exportToSVG()

void cCalibrationChartScene::exportToSVG ( QString  filename)

Export spectrum scene into a SVG file.

Parameters
filenamefilename

◆ getMaximumCollectionTime()

int cCalibrationChartScene::getMaximumCollectionTime ( )

Get the maximum collection time.

Return values
intmaximum value of collection time

◆ getMaximumConcentration()

double cCalibrationChartScene::getMaximumConcentration ( )

Get the maximum concentration.

Return values
doublemaximum concentration

◆ hideLabels()

void cCalibrationChartScene::hideLabels ( bool  state)

Hide labels of calibration points.

Parameters
statestate of labels

◆ mouseMoveEvent()

void cCalibrationChartScene::mouseMoveEvent ( QMouseEvent *  event)
protected

Handle the mouse move event.

Parameters
eventpointer to QMouseEvent

◆ mousePressEvent()

void cCalibrationChartScene::mousePressEvent ( QMouseEvent *  event)
protected

Handle the mouse press event.

Parameters
eventpointer to QMouseEvent

◆ mouseReleaseEvent()

void cCalibrationChartScene::mouseReleaseEvent ( QMouseEvent *  event)
protected

Handle the mouse release event.

Parameters
eventpointer to QMouseEvent

◆ resizeEvent()

void cCalibrationChartScene::resizeEvent ( QResizeEvent *  event)
protected

Handle the widget resize event.

Parameters
eventpointer to QResizeEvent

◆ setData()

void cCalibrationChartScene::setData ( vector< double >  datax,
vector< double >  datay,
vector< double >  datasd,
vector< string >  datagroups,
vector< int >  datatimevalues 
)

Set parameters of calibration curve.

Parameters
dataxx coordinates of data points
datayy coordinates of data points
datasdstandard deviation of y values
datagroupsvector of group names
datatimevaluesdata collection times corresponding the groups

◆ setGraphType()

void cCalibrationChartScene::setGraphType ( int  type)

Set graph type.

Parameters
typegraph type

◆ setLineParameters()

void cCalibrationChartScene::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

◆ showEvent()

void cCalibrationChartScene::showEvent ( QShowEvent *  event)
protected

Handle the widget show event.

Parameters
eventpointer to QShowEvent

◆ updateXValueInterval

void cCalibrationChartScene::updateXValueInterval ( double  minxvalue,
double  maxxvalue 
)
signal

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

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

◆ wheelEvent()

void cCalibrationChartScene::wheelEvent ( QWheelEvent *  event)
protected

Handle the mouse wheel event.

Parameters
eventpointer to QWheelEvent

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