|
SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
|
#include </home/runner/work/SedSat3/SedSat3/generalplotter.h>


Public Member Functions | |
| GeneralPlotter (QWidget *parent=0) | |
| virtual | ~GeneralPlotter () |
| void | Clear () |
| bool | AddScatter (const string &name, const vector< double > &x, const vector< double > &y, const QCPScatterStyle &symbol=QCPScatterStyle::ssDisc) |
| bool | AddScatter (const string &name, const vector< string > &x, const vector< double > &y, const QCPScatterStyle &symbol=QCPScatterStyle::ssDisc) |
| bool | AddScatters (const vector< string > names, const vector< vector< double > > &x, const vector< vector< double > > &y) |
| bool | AddScatters (const vector< string > names, const vector< string > &x, const vector< vector< double > > &y) |
| bool | AddNonUniformScatter (const map< string, vector< double > > &data, int shape_counter=0) |
| bool | AddTimeSeries (const string &name, const vector< double > &x, const vector< double > &y) |
| bool | AddTimeSeriesSet (const string &name, const vector< vector< double > > &x, const vector< vector< double > > &y) |
| bool | SetYAxisScaleType (AxisScale axisscale) |
| void | setZoomMode (bool mode) |
| void | ZoomExtends () |
| void | SetRange (const vector< double > &range, const Axis &whichaxis) |
| void | SetLegend (bool onoff) |
Private Member Functions | |
| void | mousePressEvent (QMouseEvent *event) override |
| void | mouseMoveEvent (QMouseEvent *event) override |
| void | wheelEvent (QWheelEvent *event) |
| void | mouseReleaseEvent (QMouseEvent *event) override |
| void | axisDoubleClick (QCPAxis *axis, QCPAxis::SelectablePart part, QMouseEvent *event) |
Private Attributes | |
| vector< double > | x_max_min_range |
| vector< double > | y_max_min_range |
| bool | mZoomMode |
| QRubberBand * | mRubberBand |
| QPoint | mOrigin |
Static Private Attributes | |
| static QVector< QCPScatterStyle::ScatterShape > | shapes = Make_Shapes() |
Definition at line 21 of file generalplotter.h.
| GeneralPlotter::GeneralPlotter | ( | QWidget * | parent = 0 | ) |
Definition at line 13 of file generalplotter.cpp.
References x_max_min_range, and y_max_min_range.
|
virtual |
Definition at line 24 of file generalplotter.cpp.
References mRubberBand.
| bool GeneralPlotter::AddNonUniformScatter | ( | const map< string, vector< double > > & | data, |
| int | shape_counter = 0 |
||
| ) |
Definition at line 308 of file generalplotter.cpp.
References SetRange(), shapes, x, x_max_min_range, y, and y_max_min_range.
Referenced by MainWindow::on_tree_selectionChanged().
| bool GeneralPlotter::AddScatter | ( | const string & | name, |
| const vector< double > & | x, | ||
| const vector< double > & | y, | ||
| const QCPScatterStyle & | symbol = QCPScatterStyle::ssDisc |
||
| ) |
Definition at line 123 of file generalplotter.cpp.
References name, SetRange(), x, x_max_min_range, y, and y_max_min_range.
Referenced by AddScatters(), and AddScatters().
| bool GeneralPlotter::AddScatter | ( | const string & | name, |
| const vector< string > & | x, | ||
| const vector< double > & | y, | ||
| const QCPScatterStyle & | symbol = QCPScatterStyle::ssDisc |
||
| ) |
Definition at line 148 of file generalplotter.cpp.
References name, SetRange(), x, x_max_min_range, y, and y_max_min_range.
| bool GeneralPlotter::AddScatters | ( | const vector< string > | names, |
| const vector< string > & | x, | ||
| const vector< vector< double > > & | y | ||
| ) |
Definition at line 207 of file generalplotter.cpp.
References AddScatter(), shapes, x, and y.
| bool GeneralPlotter::AddScatters | ( | const vector< string > | names, |
| const vector< vector< double > > & | x, | ||
| const vector< vector< double > > & | y | ||
| ) |
Definition at line 194 of file generalplotter.cpp.
References AddScatter(), shapes, x, and y.
Referenced by MainWindow::on_tree_selectionChanged().
| bool GeneralPlotter::AddTimeSeries | ( | const string & | name, |
| const vector< double > & | x, | ||
| const vector< double > & | y | ||
| ) |
Definition at line 220 of file generalplotter.cpp.
References name, SetRange(), x, x_max_min_range, y, and y_max_min_range.
| bool GeneralPlotter::AddTimeSeriesSet | ( | const string & | name, |
| const vector< vector< double > > & | x, | ||
| const vector< vector< double > > & | y | ||
| ) |
Definition at line 251 of file generalplotter.cpp.
|
private |
Definition at line 88 of file generalplotter.cpp.
| void GeneralPlotter::Clear | ( | ) |
Definition at line 302 of file generalplotter.cpp.
Referenced by MainWindow::on_tree_selectionChanged().
|
overrideprivate |
Definition at line 48 of file generalplotter.cpp.
References mOrigin, and mRubberBand.
|
overrideprivate |
Definition at line 34 of file generalplotter.cpp.
References mOrigin, mRubberBand, and mZoomMode.
|
overrideprivate |
Definition at line 64 of file generalplotter.cpp.
References mRubberBand.
| void GeneralPlotter::SetLegend | ( | bool | onoff | ) |
Definition at line 288 of file generalplotter.cpp.
Definition at line 272 of file generalplotter.cpp.
Referenced by AddNonUniformScatter(), AddScatter(), AddScatter(), AddTimeSeries(), and ZoomExtends().
| bool GeneralPlotter::SetYAxisScaleType | ( | AxisScale | axisscale | ) |
Definition at line 255 of file generalplotter.cpp.
References log.
Referenced by MainWindow::on_tree_selectionChanged().
| void GeneralPlotter::setZoomMode | ( | bool | mode | ) |
Definition at line 29 of file generalplotter.cpp.
References mZoomMode.
|
private |
Definition at line 56 of file generalplotter.cpp.
| void GeneralPlotter::ZoomExtends | ( | ) |
Definition at line 187 of file generalplotter.cpp.
References SetRange(), x, x_max_min_range, y, and y_max_min_range.
Referenced by MainWindow::on_ZoomExtends().
|
private |
Definition at line 58 of file generalplotter.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
|
private |
Definition at line 57 of file generalplotter.h.
Referenced by ~GeneralPlotter(), mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
|
private |
Definition at line 56 of file generalplotter.h.
Referenced by mousePressEvent(), and setZoomMode().
|
staticprivate |
Definition at line 47 of file generalplotter.h.
Referenced by AddNonUniformScatter(), AddScatters(), and AddScatters().
|
private |
Definition at line 45 of file generalplotter.h.
Referenced by GeneralPlotter(), AddNonUniformScatter(), AddScatter(), AddScatter(), AddTimeSeries(), and ZoomExtends().
|
private |
Definition at line 46 of file generalplotter.h.
Referenced by GeneralPlotter(), AddNonUniformScatter(), AddScatter(), AddScatter(), AddTimeSeries(), and ZoomExtends().