A base class for analysis programs. Other programs will derive from this class and override layouts and functions as required for the specific analysis to be done. More...
#include "us_analysis_base2.h"
Signals | |
void | dataAreLoaded (void) |
A signal to tell the parent when the data are loaded. More... | |
Public Member Functions | |
US_AnalysisBase2 () | |
Public Member Functions inherited from US_Widgets | |
US_Widgets (bool=true, QWidget *p=0, Qt::WindowFlags f=0) | |
~US_Widgets (void) | |
QLabel * | us_label (const QString &, int=0, int=QFont::Bold) |
QLabel * | us_textlabel (const QString &, int=-1, int=QFont::Bold) |
QLabel * | us_banner (const QString &, int=0, int=QFont::Bold) |
QPushButton * | us_pushbutton (const QString &, bool=true, int=0) |
QTextEdit * | us_textedit (void) |
QLineEdit * | us_lineedit (const QString &=0, int=-1, bool=false) |
void | us_setReadOnly (QLineEdit *, bool=true) |
void | us_setReadOnly (QTextEdit *, bool=true) |
QListWidget * | us_listwidget (int=0) |
QGridLayout * | us_checkbox (const QString &, QCheckBox *&, bool=false) |
QGridLayout * | us_radiobutton (const QString &text, QRadioButton *&rb, bool state=false) |
QProgressBar * | us_progressBar (int, int, int=0) |
QComboBox * | us_comboBox (void) |
QLCDNumber * | us_lcd (int, int=0) |
QwtCounter * | us_counter (int, double, double, double=0.0) |
QwtPlot * | us_plot (const QString &, const QString &=QString(), const QString &=QString()) |
QwtPlotGrid * | us_grid (QwtPlot *) |
QwtPlotCurve * | us_curve (QwtPlot *, const QString &) |
QwtPlotPicker * | us_picker (QwtPlot *) |
QTabWidget * | us_tabwidget (int=0, int=QFont::Bold) |
void | write_plot (const QString &, const QwtPlot *) |
Write a plot file (PNG or SVG+PNG) from a plot. More... | |
int | clean_etc_dir (bool=false) |
Clean install and work ./etc directories. More... | |
Protected Slots | |
virtual void | reset (void) |
Resets the class to a default state. More... | |
virtual void | new_triple (int) |
Update the class to show data for a new triple. More... | |
virtual void | load (void) |
Load data from a directory on disk. More... | |
QString | indent (int) const |
Return pad string for indentation. More... | |
QString | html_header (const QString &, const QString &, US_DataIO::EditedData *) const |
Return html header string. More... | |
QString | run_details (void) const |
Return run details in an html formatted string. More... | |
QString | hydrodynamics (void) const |
List solution data in an html formatted string. More... | |
QString | analysis (const QString &) const |
Return smoothing and boundary factors in an html formatted string. More... | |
QString | scan_info (void) const |
Return scan information in an html formatted string. More... | |
QString | table_row (const QString &, const QString &) const |
Returns an html string of a two column table row. More... | |
QString | table_row (const QString &, const QString &, const QString &) const |
Returns an html string of a three column table row. More... | |
QString | table_row (const QString &, const QString &, const QString &, const QString &, const QString &) const |
Returns an html string of a five column table row. More... | |
QString | table_row (const QString &, const QString &, const QString &, const QString &, const QString &, const QString &, const QString &) const |
Returns an html string of a seven column table row. More... | |
double | calc_baseline (void) const |
void | reportFilesToDB (QStringList &) |
Copy report files to the database. More... | |
bool | write_dset_report (QString &) |
Create a general dataset information report file. More... | |
virtual void | exclude (void) |
Exclude scans in the specified range. More... | |
virtual void | reset_excludes (void) |
Restore excluded scans. More... | |
void | smoothing (double) |
Perform smoothing of the data. More... | |
void | update_filelist (QStringList &, const QString) |
Update the list of report files. More... | |
Protected Member Functions | |
virtual void | update (int) |
Update screen for a new dataset. More... | |
virtual void | data_plot (void) |
Update the data plot. More... | |
bool | mkdir (const QString &, const QString &) |
A utility to create a directory. More... | |
Protected Attributes | |
QVector< US_DataIO::EditedData > | dataList |
A set of edited data for the analysis. More... | |
QVector< US_DataIO::RawData > | rawList |
A set of raw data for the analysis. More... | |
QStringList | triples |
The currently loaded triples in the form cell / channel / wavelength. More... | |
QList< int > | excludedScans |
Scans excluded by the user beyond those excluded by US_Edit. More... | |
QList< QVector< double > > | savedValues |
Current data values for the analysis. More... | |
US_Math2::SolutionData | solution |
The solution data corresponding to the current triple. More... | |
bool | dataLoaded |
A flag to indicate data is loaded. More... | |
bool | def_local |
Flag if default source is local. More... | |
bool | buffLoaded |
Flag to indicate buffer is loaded. More... | |
QString | directory |
Data directory of analysis files. More... | |
QString | editID |
Current edit ID. Usually a date-time. More... | |
QString | runID |
User specified run ID string. More... | |
QString | dfilter |
Data files filter. More... | |
QString | investig |
Investigator string. More... | |
QString | etype_filt |
Experiment type loader filter. More... | |
US_Buffer | buff |
Currently loaded buffer. More... | |
US_Solution | solution_rec |
Current data's solution. More... | |
US_Noise | ri_noise |
Loaded,appl'd radially-invariant noise. More... | |
US_Noise | ti_noise |
Loaded,applied time-invariant noise. More... | |
QVector< int > | noiflags |
Noise-applied flags, for all triples. More... | |
QVector< QList< int > > | allExcls |
Excluded scans, for all triples. More... | |
QVector< US_Noise > | rinoises |
ri-noises applied, for all triples More... | |
QVector< US_Noise > | tinoises |
ti-noises applied, for all triples More... | |
US_Help | showHelp |
A class to display help in the US Help viewer. More... | |
double | time_correction |
Time correction, centrifuge acceler. More... | |
double | density |
Density of the buffer. More... | |
double | viscosity |
Viscosity of the buffer. More... | |
double | vbar |
Specific volume of the analyte. More... | |
bool | manual |
Viscosity,Density manual. More... | |
QGridLayout * | mainLayout |
Overall Layout. More... | |
QBoxLayout * | leftLayout |
Layout of the left column. More... | |
QBoxLayout * | rightLayout |
Layout of the right column. More... | |
QBoxLayout * | buttonLayout |
Layout of the bottom button row. More... | |
QGridLayout * | analysisLayout |
Layout for analysis functions. More... | |
QGridLayout * | runInfoLayout |
Layout for run details. More... | |
QGridLayout * | parameterLayout |
Layout for other analysis controls. More... | |
QGridLayout * | controlsLayout |
Layout of analysis controls. More... | |
US_Plot * | plotLayout1 |
Top plot layout. More... | |
US_Plot * | plotLayout2 |
Bottom plot layout. More... | |
QwtPlot * | data_plot1 |
Access to the top qwt plot. More... | |
QwtPlot * | data_plot2 |
Access to the bottom qwt plot. More... | |
QPushButton * | pb_load |
Pushbutton to load data. More... | |
QPushButton * | pb_details |
Pushbuttion to view run details. More... | |
QPushButton * | pb_solution |
Pushbuttion to get solution parameters. More... | |
QPushButton * | pb_view |
Pushbuttion to view run a data report. More... | |
QPushButton * | pb_save |
Pushbutton to save analysis results. More... | |
QPushButton * | pb_reset |
Pushbutton to reset the screen. More... | |
QPushButton * | pb_help |
Pushbutton to show help. More... | |
QPushButton * | pb_close |
Pushbutton to close the application. More... | |
QPushButton * | pb_exclude |
Pushbutton to exclude specified scans. More... | |
QPushButton * | pb_reset_exclude |
PB to revert the excluded scan range. More... | |
QLineEdit * | le_id |
Display the current RunID. More... | |
QLineEdit * | le_temp |
Display/change the temperature used. More... | |
QTextEdit * | te_desc |
Text edit box for discription. More... | |
QListWidget * | lw_triples |
List widget containing triples. More... | |
QLineEdit * | le_solution |
Display the solution description. More... | |
QLineEdit * | le_density |
Display/change the density used. More... | |
QLineEdit * | le_viscosity |
Display/change the viscosity. More... | |
QLineEdit * | le_vbar |
Display/change the specific volume. More... | |
QLineEdit * | le_skipped |
Display the number of scans skipped. More... | |
QwtCounter * | ct_smoothing |
Counter for number of coefficients in polynomial smoothing function. More... | |
QwtCounter * | ct_boundaryPercent |
Counter for boundary percentage specification. More... | |
QwtCounter * | ct_boundaryPos |
Counter for boundary starting point. More... | |
QwtCounter * | ct_from |
Counter for start of exclude range. More... | |
QwtCounter * | ct_to |
Counter for end of exclude range. More... | |
QCheckBox * | ck_edlast |
Checkbox for edit-lastest flag. More... | |
US_Disk_DB_Controls * | disk_controls |
Radiobuttons for disk/db choice. More... | |
Private Slots | |
void | details (void) |
void | boundary_pct (double) |
void | boundary_pos (double) |
void | exclude_from (double) |
void | exclude_to (double) |
void | update_disk_db (bool) |
void | set_progress (const QString) |
void | load_noise (int) |
void | get_solution (void) |
void | updateSolution (US_Solution) |
bool | query_noise_retain (void) |
void | back_out_noise (int) |
Private Member Functions | |
double | smooth_point (int, int, int, int, int=0) |
Private Attributes | |
double * | x_weights |
double * | y_weights |
Additional Inherited Members | |
Static Public Member Functions inherited from US_Widgets | |
static QFont | fixedFont (void) |
Public Attributes inherited from US_Widgets | |
US_Global | g |
Connect to global memory and make the values accessible. More... | |
QPalette | vlgray |
Very light gray palette for read-only line edits. More... | |
A base class for analysis programs. Other programs will derive from this class and override layouts and functions as required for the specific analysis to be done.
Definition at line 24 of file us_analysis_base2.h.
US_AnalysisBase2::US_AnalysisBase2 | ( | ) |
Definition at line 20 of file us_analysis_base2.cpp.
|
protectedslot |
Return smoothing and boundary factors in an html formatted string.
Definition at line 1149 of file us_analysis_base2.cpp.
|
privateslot |
Definition at line 1467 of file us_analysis_base2.cpp.
|
privateslot |
Definition at line 560 of file us_analysis_base2.cpp.
|
privateslot |
Definition at line 572 of file us_analysis_base2.cpp.
|
protectedslot |
Calculate the 11 point average of the last point in the current dataset boundary. Assumes that there are at least 5 points available above the boundary.
Definition at line 936 of file us_analysis_base2.cpp.
|
protectedvirtual |
Update the data plot.
Reimplemented in US_Dcdt, and US_SecondMoment.
Definition at line 413 of file us_analysis_base2.cpp.
|
signal |
A signal to tell the parent when the data are loaded.
|
privateslot |
Definition at line 404 of file us_analysis_base2.cpp.
|
protectedvirtualslot |
Exclude scans in the specified range.
Definition at line 614 of file us_analysis_base2.cpp.
|
privateslot |
Definition at line 582 of file us_analysis_base2.cpp.
|
privateslot |
Definition at line 598 of file us_analysis_base2.cpp.
|
privateslot |
Definition at line 1365 of file us_analysis_base2.cpp.
|
protectedslot |
Return html header string.
Definition at line 993 of file us_analysis_base2.cpp.
|
protectedslot |
List solution data in an html formatted string.
Definition at line 1109 of file us_analysis_base2.cpp.
|
protectedslot |
Return pad string for indentation.
Definition at line 953 of file us_analysis_base2.cpp.
|
protectedvirtualslot |
Load data from a directory on disk.
Definition at line 243 of file us_analysis_base2.cpp.
|
privateslot |
Definition at line 1226 of file us_analysis_base2.cpp.
|
protected |
A utility to create a directory.
Definition at line 1203 of file us_analysis_base2.cpp.
|
protectedvirtualslot |
Update the class to show data for a new triple.
Definition at line 912 of file us_analysis_base2.cpp.
|
privateslot |
Definition at line 1445 of file us_analysis_base2.cpp.
|
protectedslot |
Copy report files to the database.
Definition at line 1479 of file us_analysis_base2.cpp.
|
protectedvirtualslot |
Resets the class to a default state.
Definition at line 852 of file us_analysis_base2.cpp.
|
protectedvirtualslot |
Restore excluded scans.
Definition at line 642 of file us_analysis_base2.cpp.
|
protectedslot |
Return run details in an html formatted string.
Definition at line 1022 of file us_analysis_base2.cpp.
|
protectedslot |
Return scan information in an html formatted string.
Definition at line 1169 of file us_analysis_base2.cpp.
|
privateslot |
Definition at line 1219 of file us_analysis_base2.cpp.
|
private |
Definition at line 731 of file us_analysis_base2.cpp.
|
protectedslot |
Perform smoothing of the data.
Definition at line 663 of file us_analysis_base2.cpp.
|
protectedslot |
Returns an html string of a two column table row.
Definition at line 959 of file us_analysis_base2.cpp.
|
protectedslot |
Returns an html string of a three column table row.
Definition at line 965 of file us_analysis_base2.cpp.
|
protectedslot |
Returns an html string of a five column table row.
Definition at line 973 of file us_analysis_base2.cpp.
|
protectedslot |
Returns an html string of a seven column table row.
Definition at line 982 of file us_analysis_base2.cpp.
|
protectedvirtual |
Update screen for a new dataset.
Definition at line 315 of file us_analysis_base2.cpp.
|
privateslot |
Definition at line 238 of file us_analysis_base2.cpp.
|
protectedslot |
Update the list of report files.
Definition at line 1538 of file us_analysis_base2.cpp.
|
privateslot |
Definition at line 1399 of file us_analysis_base2.cpp.
|
protectedslot |
Create a general dataset information report file.
Definition at line 1510 of file us_analysis_base2.cpp.
|
protected |
Excluded scans, for all triples.
Definition at line 69 of file us_analysis_base2.h.
|
protected |
Layout for analysis functions.
Definition at line 88 of file us_analysis_base2.h.
|
protected |
Currently loaded buffer.
Definition at line 61 of file us_analysis_base2.h.
|
protected |
Flag to indicate buffer is loaded.
Definition at line 52 of file us_analysis_base2.h.
|
protected |
Layout of the bottom button row.
Definition at line 86 of file us_analysis_base2.h.
|
protected |
Checkbox for edit-lastest flag.
Definition at line 130 of file us_analysis_base2.h.
|
protected |
Layout of analysis controls.
Definition at line 91 of file us_analysis_base2.h.
|
protected |
Counter for boundary percentage specification.
Definition at line 125 of file us_analysis_base2.h.
|
protected |
Counter for boundary starting point.
Definition at line 126 of file us_analysis_base2.h.
|
protected |
Counter for start of exclude range.
Definition at line 127 of file us_analysis_base2.h.
|
protected |
Counter for number of coefficients in polynomial smoothing function.
Definition at line 123 of file us_analysis_base2.h.
|
protected |
Counter for end of exclude range.
Definition at line 128 of file us_analysis_base2.h.
|
protected |
Access to the top qwt plot.
Definition at line 97 of file us_analysis_base2.h.
|
protected |
Access to the bottom qwt plot.
Definition at line 98 of file us_analysis_base2.h.
|
protected |
A set of edited data for the analysis.
Definition at line 33 of file us_analysis_base2.h.
|
protected |
A flag to indicate data is loaded.
Definition at line 50 of file us_analysis_base2.h.
|
protected |
Flag if default source is local.
Definition at line 51 of file us_analysis_base2.h.
|
protected |
Density of the buffer.
Definition at line 77 of file us_analysis_base2.h.
|
protected |
Data files filter.
Definition at line 57 of file us_analysis_base2.h.
|
protected |
Data directory of analysis files.
Definition at line 54 of file us_analysis_base2.h.
|
protected |
Radiobuttons for disk/db choice.
Definition at line 132 of file us_analysis_base2.h.
|
protected |
Current edit ID. Usually a date-time.
Definition at line 55 of file us_analysis_base2.h.
|
protected |
Experiment type loader filter.
Definition at line 59 of file us_analysis_base2.h.
|
protected |
Scans excluded by the user beyond those excluded by US_Edit.
Definition at line 42 of file us_analysis_base2.h.
|
protected |
Investigator string.
Definition at line 58 of file us_analysis_base2.h.
|
protected |
Display/change the density used.
Definition at line 117 of file us_analysis_base2.h.
|
protected |
Display the current RunID.
Definition at line 111 of file us_analysis_base2.h.
|
protected |
Display the number of scans skipped.
Definition at line 120 of file us_analysis_base2.h.
|
protected |
Display the solution description.
Definition at line 116 of file us_analysis_base2.h.
|
protected |
Display/change the temperature used.
Definition at line 112 of file us_analysis_base2.h.
|
protected |
Display/change the specific volume.
Definition at line 119 of file us_analysis_base2.h.
|
protected |
Display/change the viscosity.
Definition at line 118 of file us_analysis_base2.h.
|
protected |
Layout of the left column.
Definition at line 84 of file us_analysis_base2.h.
|
protected |
List widget containing triples.
Definition at line 114 of file us_analysis_base2.h.
|
protected |
Overall Layout.
Definition at line 83 of file us_analysis_base2.h.
|
protected |
Viscosity,Density manual.
Definition at line 80 of file us_analysis_base2.h.
|
protected |
Noise-applied flags, for all triples.
Definition at line 68 of file us_analysis_base2.h.
|
protected |
Layout for other analysis controls.
Definition at line 90 of file us_analysis_base2.h.
|
protected |
Pushbutton to close the application.
Definition at line 107 of file us_analysis_base2.h.
|
protected |
Pushbuttion to view run details.
Definition at line 101 of file us_analysis_base2.h.
|
protected |
Pushbutton to exclude specified scans.
Definition at line 108 of file us_analysis_base2.h.
|
protected |
Pushbutton to show help.
Definition at line 106 of file us_analysis_base2.h.
|
protected |
Pushbutton to load data.
Definition at line 100 of file us_analysis_base2.h.
|
protected |
Pushbutton to reset the screen.
Definition at line 105 of file us_analysis_base2.h.
|
protected |
PB to revert the excluded scan range.
Definition at line 109 of file us_analysis_base2.h.
|
protected |
Pushbutton to save analysis results.
Definition at line 104 of file us_analysis_base2.h.
|
protected |
Pushbuttion to get solution parameters.
Definition at line 102 of file us_analysis_base2.h.
|
protected |
Pushbuttion to view run a data report.
Definition at line 103 of file us_analysis_base2.h.
|
protected |
Top plot layout.
Definition at line 93 of file us_analysis_base2.h.
|
protected |
Bottom plot layout.
Definition at line 94 of file us_analysis_base2.h.
|
protected |
A set of raw data for the analysis.
Definition at line 36 of file us_analysis_base2.h.
|
protected |
Loaded,appl'd radially-invariant noise.
Definition at line 65 of file us_analysis_base2.h.
|
protected |
Layout of the right column.
Definition at line 85 of file us_analysis_base2.h.
|
protected |
ri-noises applied, for all triples
Definition at line 70 of file us_analysis_base2.h.
|
protected |
User specified run ID string.
Definition at line 56 of file us_analysis_base2.h.
|
protected |
Layout for run details.
Definition at line 89 of file us_analysis_base2.h.
|
protected |
Current data values for the analysis.
Definition at line 45 of file us_analysis_base2.h.
|
protected |
A class to display help in the US Help viewer.
Definition at line 74 of file us_analysis_base2.h.
|
protected |
The solution data corresponding to the current triple.
Definition at line 48 of file us_analysis_base2.h.
|
protected |
Current data's solution.
Definition at line 63 of file us_analysis_base2.h.
|
protected |
Text edit box for discription.
Definition at line 113 of file us_analysis_base2.h.
|
protected |
Loaded,applied time-invariant noise.
Definition at line 66 of file us_analysis_base2.h.
|
protected |
Time correction, centrifuge acceler.
Definition at line 76 of file us_analysis_base2.h.
|
protected |
ti-noises applied, for all triples
Definition at line 71 of file us_analysis_base2.h.
|
protected |
The currently loaded triples in the form cell / channel / wavelength.
Definition at line 39 of file us_analysis_base2.h.
|
protected |
Specific volume of the analyte.
Definition at line 79 of file us_analysis_base2.h.
|
protected |
Viscosity of the buffer.
Definition at line 78 of file us_analysis_base2.h.
|
private |
Definition at line 211 of file us_analysis_base2.h.
|
private |
Definition at line 212 of file us_analysis_base2.h.