UltraScan III
List of all members | Public Member Functions | Private Slots | Private Attributes
US_MwlRawViewer Class Reference

#include "us_mwlr_viewer.h"

Inheritance diagram for US_MwlRawViewer:
Inheritance graph
[legend]
Collaboration diagram for US_MwlRawViewer:
Collaboration graph
[legend]

Public Member Functions

 US_MwlRawViewer ()
 Generic constructor for the US_MwlRawViewer() program. More...
 
- 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...
 

Private Slots

void reset (void)
 
void load_mwl_raw (void)
 
void load_auc_mwl (void)
 
void plot_current (void)
 
void plot_titles (void)
 
void plot_all (void)
 
void build_cmp_data (void)
 
void build_avg_data (void)
 
void build_rec_data (const int, QVector< double > &)
 
void enableControls (void)
 
void runDetails (void)
 
void changeCellCh (void)
 
void changeRadius (void)
 
void changeLambda (void)
 
void changeAverage (void)
 
void changeRecord (void)
 
void changeRectype (bool)
 
void show_2d_movie (void)
 
void plot_3d (void)
 
void show_3d_movie (void)
 
void save_plot (void)
 
void save_movie (void)
 
void save_2d_movie (void)
 
void save_3d_movie (void)
 
void resetAll (void)
 
void prevPlot (void)
 
void nextPlot (void)
 
void compute_ranges (void)
 
void connect_ranges (bool)
 
void exclude_from (double)
 
void exclude_to (double)
 
void exclude_scans (void)
 
void include_scans (void)
 
int dvec_index (QVector< double > &, const double)
 
int build_xyz_data (QVector< QVector3D > &, int=-1)
 
void p3dctrl_closed (void)
 
int live_scan (int *=0, int *=0, int *=0)
 
void help (void)
 

Private Attributes

QPointer< US_MwlPlotControlp3d_ctld
 Pointer to 3D control. More...
 
QPointer< US_Plot3Dxyzp3d_pltw
 Pointer to 3D plot window. More...
 
QVector< double > curr_adata
 Current averaged data. More...
 
QVector< QVector< double > > curr_cdata
 Current avg. comp. data. More...
 
QVector< QVector< double > > prev_cdata
 Previous avg. comp. data. More...
 
QVector< QVector3D > xyzdat
 Current 3D data vector. More...
 
QVector< QVector< QVector3D > > xyzdats
 All 3D plot data vectors. More...
 
QVector< double > yvals3d
 Y values for 3D plot. More...
 
QVector< US_DataIO::RawDataallData
 All AUC raw data. More...
 
QVector< double > pltxvals
 Current plot's X (wvl/rad) values. More...
 
QVector< double > radii
 Loaded radii. More...
 
QVector< int > lambdas
 Loaded wavelengths. More...
 
QVector< int > curr_recxs
 Current avg. component rec. indexes. More...
 
QVector< int > prev_recxs
 Previous avg. component rec. indexes. More...
 
QList< int > excludes
 List of scans to exclude. More...
 
US_MwlData mwl_data
 Raw MWL (.mwrs) data loaded. More...
 
QStringList mwl_fnames
 List of names of files loaded. More...
 
QStringList cellchans
 List of cell/channel values present. More...
 
US_Help showHelp
 
US_PlotPickerpicker
 
QLabel * lb_pltrec
 
QLineEdit * le_runID
 
QLineEdit * le_dir
 
QLineEdit * le_status
 
QComboBox * cb_cellchn
 
QComboBox * cb_rstart
 
QComboBox * cb_rend
 
QComboBox * cb_lstart
 
QComboBox * cb_lend
 
QComboBox * cb_pltrec
 
QwtCounter * ct_recavg
 
QwtCounter * ct_from
 
QwtCounter * ct_to
 
QCheckBox * ck_xwavlen
 
QCheckBox * ck_hcolorc
 
QPushButton * pb_loadMwl
 
QPushButton * pb_loadAUC
 
QPushButton * pb_reset
 
QPushButton * pb_details
 
QPushButton * pb_prev
 
QPushButton * pb_next
 
QPushButton * pb_exclude
 
QPushButton * pb_include
 
QPushButton * pb_plot2d
 
QPushButton * pb_movie2d
 
QPushButton * pb_plot3d
 
QPushButton * pb_movie3d
 
QPushButton * pb_svplot
 
QPushButton * pb_svmovie
 
QwtPlot * data_plot
 
QwtPlotGrid * grid
 
QString currentDir
 
QString runID
 
int nscan
 
int ncell
 
int nchan
 
int ncellch
 
int ntriple
 
int nlambda
 
int npoint
 
int ntpoint
 
int navgrec
 
int dbg_level
 
int ccx
 
int lmb_start
 
int lmb_end
 
int recx
 
int lmbxs
 
int lmbxe
 
int radxs
 
int radxe
 
int klambda
 
int kradii
 
int kscan
 
int krecs
 
int kpoint
 
int ktpoint
 
int trpxs
 
int k3dscan
 
int k3dlamb
 
int k3drads
 
int k3dsize
 
bool is_wrecs
 
bool have_rngs
 
double last_xmin
 
double last_xmax
 
double last_ymin
 
double last_ymax
 
double rad_start
 
double rad_end
 

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...
 

Detailed Description

Definition at line 16 of file us_mwlr_viewer.h.

Constructor & Destructor Documentation

US_MwlRawViewer::US_MwlRawViewer ( )

Generic constructor for the US_MwlRawViewer() program.

Definition at line 45 of file us_mwlr_viewer.cpp.

Member Function Documentation

void US_MwlRawViewer::build_avg_data ( void  )
privateslot

Definition at line 1403 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::build_cmp_data ( void  )
privateslot

Definition at line 1358 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::build_rec_data ( const int  recx,
QVector< double > &  rdata 
)
privateslot

Definition at line 1438 of file us_mwlr_viewer.cpp.

int US_MwlRawViewer::build_xyz_data ( QVector< QVector3D > &  xyzd,
int  scan = -1 
)
privateslot

Definition at line 2050 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::changeAverage ( void  )
privateslot

Definition at line 1346 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::changeCellCh ( void  )
privateslot

Definition at line 992 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::changeLambda ( void  )
privateslot

Definition at line 1221 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::changeRadius ( void  )
privateslot

Definition at line 1192 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::changeRecord ( void  )
privateslot

Definition at line 1250 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::changeRectype ( bool  wlnrec)
privateslot

Definition at line 1270 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::compute_ranges ( void  )
privateslot

Definition at line 1492 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::connect_ranges ( bool  conn)
privateslot

Definition at line 1535 of file us_mwlr_viewer.cpp.

int US_MwlRawViewer::dvec_index ( QVector< double > &  dvec,
const double  dval 
)
privateslot

Definition at line 2025 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::enableControls ( void  )
privateslot

Definition at line 383 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::exclude_from ( double  sfr)
privateslot

Definition at line 1565 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::exclude_scans ( void  )
privateslot

Definition at line 1601 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::exclude_to ( double  sto)
privateslot

Definition at line 1583 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::help ( void  )
inlineprivateslot

Definition at line 175 of file us_mwlr_viewer.h.

void US_MwlRawViewer::include_scans ( void  )
privateslot

Definition at line 1637 of file us_mwlr_viewer.cpp.

int US_MwlRawViewer::live_scan ( int *  fsP = 0,
int *  lsP = 0,
int *  ksP = 0 
)
privateslot

Definition at line 2177 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::load_auc_mwl ( void  )
privateslot

Definition at line 558 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::load_mwl_raw ( void  )
privateslot

Definition at line 465 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::nextPlot ( void  )
privateslot

Definition at line 1324 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::p3dctrl_closed ( void  )
privateslot

Definition at line 2168 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::plot_3d ( void  )
privateslot

Definition at line 1683 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::plot_all ( void  )
privateslot

Definition at line 1113 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::plot_current ( void  )
privateslot

Definition at line 1068 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::plot_titles ( void  )
privateslot

Definition at line 1079 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::prevPlot ( void  )
privateslot

Definition at line 1303 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::reset ( void  )
privateslot

Definition at line 295 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::resetAll ( void  )
privateslot

Definition at line 361 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::runDetails ( void  )
privateslot

Definition at line 678 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::save_2d_movie ( void  )
privateslot

Definition at line 1889 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::save_3d_movie ( void  )
privateslot

Definition at line 1934 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::save_movie ( void  )
privateslot

Definition at line 1852 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::save_plot ( void  )
privateslot

Definition at line 1791 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::show_2d_movie ( void  )
privateslot

Definition at line 1664 of file us_mwlr_viewer.cpp.

void US_MwlRawViewer::show_3d_movie ( void  )
privateslot

Definition at line 1726 of file us_mwlr_viewer.cpp.

Member Data Documentation

QVector< US_DataIO::RawData > US_MwlRawViewer::allData
private

All AUC raw data.

Definition at line 38 of file us_mwlr_viewer.h.

QComboBox* US_MwlRawViewer::cb_cellchn
private

Definition at line 62 of file us_mwlr_viewer.h.

QComboBox* US_MwlRawViewer::cb_lend
private

Definition at line 66 of file us_mwlr_viewer.h.

QComboBox* US_MwlRawViewer::cb_lstart
private

Definition at line 65 of file us_mwlr_viewer.h.

QComboBox* US_MwlRawViewer::cb_pltrec
private

Definition at line 67 of file us_mwlr_viewer.h.

QComboBox* US_MwlRawViewer::cb_rend
private

Definition at line 64 of file us_mwlr_viewer.h.

QComboBox* US_MwlRawViewer::cb_rstart
private

Definition at line 63 of file us_mwlr_viewer.h.

int US_MwlRawViewer::ccx
private

Definition at line 107 of file us_mwlr_viewer.h.

QStringList US_MwlRawViewer::cellchans
private

List of cell/channel values present.

Definition at line 51 of file us_mwlr_viewer.h.

QCheckBox* US_MwlRawViewer::ck_hcolorc
private

Definition at line 74 of file us_mwlr_viewer.h.

QCheckBox* US_MwlRawViewer::ck_xwavlen
private

Definition at line 73 of file us_mwlr_viewer.h.

QwtCounter* US_MwlRawViewer::ct_from
private

Definition at line 70 of file us_mwlr_viewer.h.

QwtCounter* US_MwlRawViewer::ct_recavg
private

Definition at line 69 of file us_mwlr_viewer.h.

QwtCounter* US_MwlRawViewer::ct_to
private

Definition at line 71 of file us_mwlr_viewer.h.

QVector< double > US_MwlRawViewer::curr_adata
private

Current averaged data.

Definition at line 29 of file us_mwlr_viewer.h.

QVector< QVector< double > > US_MwlRawViewer::curr_cdata
private

Current avg. comp. data.

Definition at line 31 of file us_mwlr_viewer.h.

QVector< int > US_MwlRawViewer::curr_recxs
private

Current avg. component rec. indexes.

Definition at line 43 of file us_mwlr_viewer.h.

QString US_MwlRawViewer::currentDir
private

Definition at line 94 of file us_mwlr_viewer.h.

QwtPlot* US_MwlRawViewer::data_plot
private

Definition at line 91 of file us_mwlr_viewer.h.

int US_MwlRawViewer::dbg_level
private

Definition at line 106 of file us_mwlr_viewer.h.

QList< int > US_MwlRawViewer::excludes
private

List of scans to exclude.

Definition at line 46 of file us_mwlr_viewer.h.

QwtPlotGrid* US_MwlRawViewer::grid
private

Definition at line 92 of file us_mwlr_viewer.h.

bool US_MwlRawViewer::have_rngs
private

Definition at line 128 of file us_mwlr_viewer.h.

bool US_MwlRawViewer::is_wrecs
private

Definition at line 127 of file us_mwlr_viewer.h.

int US_MwlRawViewer::k3dlamb
private

Definition at line 123 of file us_mwlr_viewer.h.

int US_MwlRawViewer::k3drads
private

Definition at line 124 of file us_mwlr_viewer.h.

int US_MwlRawViewer::k3dscan
private

Definition at line 122 of file us_mwlr_viewer.h.

int US_MwlRawViewer::k3dsize
private

Definition at line 125 of file us_mwlr_viewer.h.

int US_MwlRawViewer::klambda
private

Definition at line 115 of file us_mwlr_viewer.h.

int US_MwlRawViewer::kpoint
private

Definition at line 119 of file us_mwlr_viewer.h.

int US_MwlRawViewer::kradii
private

Definition at line 116 of file us_mwlr_viewer.h.

int US_MwlRawViewer::krecs
private

Definition at line 118 of file us_mwlr_viewer.h.

int US_MwlRawViewer::kscan
private

Definition at line 117 of file us_mwlr_viewer.h.

int US_MwlRawViewer::ktpoint
private

Definition at line 120 of file us_mwlr_viewer.h.

QVector< int > US_MwlRawViewer::lambdas
private

Loaded wavelengths.

Definition at line 42 of file us_mwlr_viewer.h.

double US_MwlRawViewer::last_xmax
private

Definition at line 131 of file us_mwlr_viewer.h.

double US_MwlRawViewer::last_xmin
private

Definition at line 130 of file us_mwlr_viewer.h.

double US_MwlRawViewer::last_ymax
private

Definition at line 133 of file us_mwlr_viewer.h.

double US_MwlRawViewer::last_ymin
private

Definition at line 132 of file us_mwlr_viewer.h.

QLabel* US_MwlRawViewer::lb_pltrec
private

Definition at line 56 of file us_mwlr_viewer.h.

QLineEdit* US_MwlRawViewer::le_dir
private

Definition at line 59 of file us_mwlr_viewer.h.

QLineEdit* US_MwlRawViewer::le_runID
private

Definition at line 58 of file us_mwlr_viewer.h.

QLineEdit* US_MwlRawViewer::le_status
private

Definition at line 60 of file us_mwlr_viewer.h.

int US_MwlRawViewer::lmb_end
private

Definition at line 109 of file us_mwlr_viewer.h.

int US_MwlRawViewer::lmb_start
private

Definition at line 108 of file us_mwlr_viewer.h.

int US_MwlRawViewer::lmbxe
private

Definition at line 112 of file us_mwlr_viewer.h.

int US_MwlRawViewer::lmbxs
private

Definition at line 111 of file us_mwlr_viewer.h.

US_MwlData US_MwlRawViewer::mwl_data
private

Raw MWL (.mwrs) data loaded.

Definition at line 48 of file us_mwlr_viewer.h.

QStringList US_MwlRawViewer::mwl_fnames
private

List of names of files loaded.

Definition at line 50 of file us_mwlr_viewer.h.

int US_MwlRawViewer::navgrec
private

Definition at line 105 of file us_mwlr_viewer.h.

int US_MwlRawViewer::ncell
private

Definition at line 98 of file us_mwlr_viewer.h.

int US_MwlRawViewer::ncellch
private

Definition at line 100 of file us_mwlr_viewer.h.

int US_MwlRawViewer::nchan
private

Definition at line 99 of file us_mwlr_viewer.h.

int US_MwlRawViewer::nlambda
private

Definition at line 102 of file us_mwlr_viewer.h.

int US_MwlRawViewer::npoint
private

Definition at line 103 of file us_mwlr_viewer.h.

int US_MwlRawViewer::nscan
private

Definition at line 97 of file us_mwlr_viewer.h.

int US_MwlRawViewer::ntpoint
private

Definition at line 104 of file us_mwlr_viewer.h.

int US_MwlRawViewer::ntriple
private

Definition at line 101 of file us_mwlr_viewer.h.

QPointer< US_MwlPlotControl > US_MwlRawViewer::p3d_ctld
private

Pointer to 3D control.

Definition at line 26 of file us_mwlr_viewer.h.

QPointer< US_Plot3Dxyz > US_MwlRawViewer::p3d_pltw
private

Pointer to 3D plot window.

Definition at line 27 of file us_mwlr_viewer.h.

QPushButton* US_MwlRawViewer::pb_details
private

Definition at line 79 of file us_mwlr_viewer.h.

QPushButton* US_MwlRawViewer::pb_exclude
private

Definition at line 82 of file us_mwlr_viewer.h.

QPushButton* US_MwlRawViewer::pb_include
private

Definition at line 83 of file us_mwlr_viewer.h.

QPushButton* US_MwlRawViewer::pb_loadAUC
private

Definition at line 77 of file us_mwlr_viewer.h.

QPushButton* US_MwlRawViewer::pb_loadMwl
private

Definition at line 76 of file us_mwlr_viewer.h.

QPushButton* US_MwlRawViewer::pb_movie2d
private

Definition at line 85 of file us_mwlr_viewer.h.

QPushButton* US_MwlRawViewer::pb_movie3d
private

Definition at line 87 of file us_mwlr_viewer.h.

QPushButton* US_MwlRawViewer::pb_next
private

Definition at line 81 of file us_mwlr_viewer.h.

QPushButton* US_MwlRawViewer::pb_plot2d
private

Definition at line 84 of file us_mwlr_viewer.h.

QPushButton* US_MwlRawViewer::pb_plot3d
private

Definition at line 86 of file us_mwlr_viewer.h.

QPushButton* US_MwlRawViewer::pb_prev
private

Definition at line 80 of file us_mwlr_viewer.h.

QPushButton* US_MwlRawViewer::pb_reset
private

Definition at line 78 of file us_mwlr_viewer.h.

QPushButton* US_MwlRawViewer::pb_svmovie
private

Definition at line 89 of file us_mwlr_viewer.h.

QPushButton* US_MwlRawViewer::pb_svplot
private

Definition at line 88 of file us_mwlr_viewer.h.

US_PlotPicker* US_MwlRawViewer::picker
private

Definition at line 54 of file us_mwlr_viewer.h.

QVector< double > US_MwlRawViewer::pltxvals
private

Current plot's X (wvl/rad) values.

Definition at line 40 of file us_mwlr_viewer.h.

QVector< QVector< double > > US_MwlRawViewer::prev_cdata
private

Previous avg. comp. data.

Definition at line 32 of file us_mwlr_viewer.h.

QVector< int > US_MwlRawViewer::prev_recxs
private

Previous avg. component rec. indexes.

Definition at line 44 of file us_mwlr_viewer.h.

double US_MwlRawViewer::rad_end
private

Definition at line 135 of file us_mwlr_viewer.h.

double US_MwlRawViewer::rad_start
private

Definition at line 134 of file us_mwlr_viewer.h.

QVector< double > US_MwlRawViewer::radii
private

Loaded radii.

Definition at line 41 of file us_mwlr_viewer.h.

int US_MwlRawViewer::radxe
private

Definition at line 114 of file us_mwlr_viewer.h.

int US_MwlRawViewer::radxs
private

Definition at line 113 of file us_mwlr_viewer.h.

int US_MwlRawViewer::recx
private

Definition at line 110 of file us_mwlr_viewer.h.

QString US_MwlRawViewer::runID
private

Definition at line 95 of file us_mwlr_viewer.h.

US_Help US_MwlRawViewer::showHelp
private

Definition at line 53 of file us_mwlr_viewer.h.

int US_MwlRawViewer::trpxs
private

Definition at line 121 of file us_mwlr_viewer.h.

QVector< QVector3D > US_MwlRawViewer::xyzdat
private

Current 3D data vector.

Definition at line 34 of file us_mwlr_viewer.h.

QVector< QVector< QVector3D > > US_MwlRawViewer::xyzdats
private

All 3D plot data vectors.

Definition at line 35 of file us_mwlr_viewer.h.

QVector< double > US_MwlRawViewer::yvals3d
private

Y values for 3D plot.

Definition at line 36 of file us_mwlr_viewer.h.


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