UltraScan III
us_mlplot.h
Go to the documentation of this file.
1 #ifndef US_MLINES_PLOT_H
3 #define US_MLINES_PLOT_H
4 
5 #include <QtGui>
6 
7 #include "us_extern.h"
8 #include "us_widgets_dialog.h"
9 #include "us_plot.h"
10 #include "us_resids_bitmap.h"
11 #include "us_noise.h"
12 #include "us_plot.h"
13 #include "us_model.h"
14 #include "us_pcsa_modelrec.h"
15 #include "us_help.h"
16 #include "qwt_color_map.h"
17 
19 
21 {
22  Q_OBJECT
23 
24  public:
34  US_MLinesPlot( double&, double&, double&, double&,
35  int&, int&, int&, int& );
36 
37  void setModel ( US_Model*, QVector< US_ModelRecord >& );
38  void plot_data( void );
39 
40  private:
41  double& ymin;
42  double& ymax;
43  double& xmin;
44  double& xmax;
45 
46  int& ctype;
47  int& nkpts;
48  int& nlpts;
49  int& bmndx;
50 
52 
53  QwtPlot* data_plot1;
54 
55  QHBoxLayout* mainLayout;
56  QVBoxLayout* leftLayout;
57  QVBoxLayout* rightLayout;
58  QGridLayout* pltctrlsLayout;
59  QHBoxLayout* buttonsLayout;
60 
61  QLabel* lb_ltypeh;
62  QLabel* lb_counth;
63  QLabel* lb_rmsdhd;
64  QLabel* lb_rmsdb;
65  QLabel* lb_rmsdw;
66  QLabel* lb_neline;
67  QLabel* lb_nsline;
68  QLabel* lb_nvline;
69 
70  QwtCounter* ct_neline;
71  QwtCounter* ct_nsline;
72  QwtCounter* ct_nvline;
73 
74  QLineEdit* le_mtype;
75  QLineEdit* le_nlines;
76  QLineEdit* le_npoints;
77  QLineEdit* le_varcount;
78  QLineEdit* le_rmsdb;
79  QLineEdit* le_rmsdw;
80  QLineEdit* le_rmsde;
81  QLineEdit* le_rmsds;
82  QLineEdit* le_rmsdv;
83  QLineEdit* le_colmap;
84 
85  QPushButton* pb_colmap;
86 
87  QVector< US_ModelRecord > mrecs;
88  QVector< QColor > cs_colors;
89  QwtLinearColorMap* colormap;
90  QString cmapname;
91 
93 
94  int dbg_level;
95  int nmodel;
96  int neline;
97  int nsline;
98  int nvline;
99 
100  double rmsd_best;
101  double rmsd_worst;
102  double rmsd_elite;
103  double rmsd_solut;
104  double rmsd_visib;
105 
106  protected:
108 
109  private slots:
110  void close_all ( void );
111  void updateElite ( double );
112  void updateSolutes ( double );
113  void updateVisible ( double );
114  void defaultColorMap( void );
115  void selectColorMap ( void );
116  void showColorItems ( bool );
117  QColor positionColor( double );
118  QwtLinearColorMap reverseColorMap( void );
119 
120  void help ( void )
121  { showHelp.show_help( "pcsa_mlines.html" ); };
122 
123 };
124 #endif
125