Repository navigation
Expand file tree
/
Copy pathchipview.h
More file actions
84 lines (68 loc) · 1.61 KB
/
Copy pathchipview.h
File metadata and controls
84 lines (68 loc) · 1.61 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
// chipview.h
#ifndef CHIPVIEW_H
#define CHIPVIEW_H
#include <TGClient.h>
#include <TCanvas.h>
#include <TF1.h>
#include <TH2.h>
#include <TRandom.h>
#include <TGButton.h>
#include <TGFrame.h>
#include <TRootEmbeddedCanvas.h>
#include "chipdatabase.h"
#include "cmdline.h"
enum
{
CHVIEW_PIXDEF=1,
CHVIEW_VTHR,
CHVIEW_TRIM0,
CHVIEW_TRIM1,
CHVIEW_TRIM2,
CHVIEW_TRIM3,
CHVIEW_PULSE,
CHVIEW_PH1,
CHVIEW_PH2,
CHVIEW_PH2_PH1
};
class CChipView : public TGMainFrame
{
TH2I *pixMap;
TH1F *fHist;
TGMainFrame *fMain;
TRootEmbeddedCanvas *fEcanvas;
int fViewMode;
CChip *fChip;
void AddButton(TGCompositeFrame *frame, char *name, char *caller);
void UpdateView();
void DrawInfoText(int x, int y, const char name[], const char value[]);
void DrawInfoFormat(int x, int y, const char name[], const char *format, ...);
void DrawInfoDouble(int x, int y, const char name[], double value, int prec);
void DrawInfoInt(int x, int y, const char name[], int value);
void DrawInfo();
public:
CChipView(CChip *chip, const TGWindow *p, UInt_t w, UInt_t h);
virtual ~CChipView();
void CreateSubPads(TPad *upad);
void SetTitle();
void Update() { SetViewMode(); }
void DoSetViewMode();
void SetViewMode(int mode = -1);
void DoGoPrevChip();
void DoGoNextChip();
void DoGoPrevChipTest();
void DoGoNextChipTest();
void DoGoPrevDefectChip();
void DoGoNextDefectChip();
void DoGoPrevGoodChip();
void DoGoNextGoodChip();
void PrintChipView();
void UpdatePixDef();
void UpdateLevel();
void UpdateTrim(int bit);
void UpdatePulse();
void UpdatePh1();
void UpdatePh2();
void UpdatePh21();
ClassDef(CChipView,1)
};
#endif