-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathQCStatsVisualize.h
More file actions
110 lines (88 loc) · 2.77 KB
/
Copy pathQCStatsVisualize.h
File metadata and controls
110 lines (88 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#include "expressionGroup.h"
#include "Storage/Matrix.h"
#include <wx/wx.h>
#include <wx/print.h>
#if RMA_GUI_APP
class QCStatsVisualizeFrame: public wxFrame
{
public:
QCStatsVisualizeFrame(const wxString &title, expressionGroup *ExpressionVals,wxWindow *parent);
~QCStatsVisualizeFrame();
void OnQuit(wxCommandEvent& event);
void OnVisualizeRLE(wxCommandEvent& event);
void OnVisualizeNUSE(wxCommandEvent& event);
void OnVisualizeRLEMedians(wxCommandEvent& event);
void OnVisualizeRLEIQRs(wxCommandEvent& event);
void OnVisualizeNUSEMedians(wxCommandEvent& event);
void OnVisualizeNUSEIQRs(wxCommandEvent& event);
void OnVisualizeRLENUSEMultiplot(wxCommandEvent& event);
void OnVisualizeMultivariateControlChart(wxCommandEvent& event);
void ToggleSCCLimits(wxCommandEvent& event);
void ToggleIQRLimits(wxCommandEvent& event);
#else
class QCStatsVisualizeFrame
{
public:
QCStatsVisualizeFrame(expressionGroup *ExpressionVals);
~QCStatsVisualizeFrame();
#endif
void GenerateRLE();
void GenerateNUSE();
void WriteNUSEStats(wxString path, wxString filename);
void WriteRLEStats(wxString path, wxString filename);
void ComputeRLENUSE_T2();
#if RMA_GUI_APP
void DrawRLEBoxplot(wxDC& dc);
void DrawNUSEBoxplot(wxDC& dc);
void DrawRLEMedians(wxDC& dc);
void DrawRLEIQRs(wxDC& dc);
void DrawNUSEMedians(wxDC& dc);
void DrawNUSEIQRs(wxDC& dc);
void DrawRLENUSEMultiPlot(wxDC& dc);
void DrawMultivariateControlChart(wxDC& dc);
void OnPostscriptCurrentPlot(wxCommandEvent& event);
void OnSaveQCRLE(wxCommandEvent& event);
void OnSaveQCNUSE(wxCommandEvent& event);
void OnSaveQCRLEStats(wxCommandEvent& event);
void OnSaveQCNUSEStats(wxCommandEvent& event);
void OnSaveCurrent(wxCommandEvent& event);
#endif
Matrix *RLEBoxplotStatistics;
Matrix *NUSEBoxplotStatistics;
Matrix *T2;
int currentplot;
private:
#if RMA_GUI_APP
wxWindow *MyWindow;
wxMenu *fileMenu;
wxMenu *drawMenu;
wxMenuBar *menuBar;
#endif
expressionGroup *ExpressionValues;
#if RMA_GUI_APP
DECLARE_EVENT_TABLE()
#endif
};
#if RMA_GUI_APP
class QCStatsVisualizeDrawingWindow: public wxWindow
{
public:
QCStatsVisualizeDrawingWindow(QCStatsVisualizeFrame *parent);
void OnPaint(wxPaintEvent &WXUNUSED(event));
int currentplot;
void OnEraseBackground(wxEraseEvent &WXUNUSED(event));
private:
QCStatsVisualizeFrame *myParent;
DECLARE_EVENT_TABLE()
};
class QCStatsVisualizePrintout: public wxPrintout
{
public:
QCStatsVisualizePrintout(const wxChar *title = _T("My printout")):wxPrintout(title) {}
bool OnPrintPage(int page);
bool HasPage(int page);
bool OnBeginDocument(int startPage, int endPage);
void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo);
void DrawPageOne(wxDC *dc);
};
#endif