-
Notifications
You must be signed in to change notification settings - Fork 0
/
consts.h
189 lines (161 loc) · 4.43 KB
/
consts.h
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
#ifndef CONSTS_H
#define CONSTS_H
// Volume MACRO
#define INVALID_VOLVAL 0xFFFFFFFF
//// 2D Electric Data
//#define DATA_2D
//#define DIM_X 44
//#define DIM_Y 44
//#define VOL_X 96
//#define VOL_Y 44
//#define VOL_Z 96
//#define ID_PATH ""
//#define FIELD_PATH "data/solid_000050.tsv"
//#define DATA_PATH "_data_2d.bin"
//#define CM_IMG "data/2d_cm.jpg"
// Electric Data
#define VOL_X 100
#define VOL_Y 100
#define VOL_Z 156
#define ID_PATH "VisData\\microID.txt"
#define FIELD_PATH "VisData\\ElectricField.txt"
#define DATA_PATH "_data_elec.bin"
#define CM_IMG "images/cm1.jpg"
//// Poly - spon
//#define VOL_X 100
//#define VOL_Y 100
//#define VOL_Z 156
//#define ID_PATH "R55C38W12fine\\Data\\microID.txt"
//#define FIELD_PATH "R55C38W12fine\\Data\\SpontaneousPolarization.txt"
//#define DATA_PATH "_data_spon_pola.bin"
//#define Z_ONLY
//#define CM_IMG "images/cm1.jpg"
//// Poly - piezo
//#define VOL_X 100
//#define VOL_Y 100
//#define VOL_Z 156
//#define ID_PATH "R55C38W12fine\\Data\\microID.txt"
//#define FIELD_PATH "R55C38W12fine\\Data\\PiezoelectricPolarization.txt"
//#define DATA_PATH "_data_piezo_pola.bin"
//#define Z_ONLY
//#define CM_IMG "images/cm1.jpg"
//// Poly - Dielect
//#define VOL_X 100
//#define VOL_Y 100
//#define VOL_Z 156
//#define ID_PATH "R55C38W12fine\\Data\\microID.txt"
//#define FIELD_PATH "R55C38W12fine\\Data\\DielectricPolarization.txt"
//#define DATA_PATH "_data_dielec_pola.bin"
//#define Z_ONLY
//#define CM_IMG "images/redblue.jpg"
//
//// Poly - SQW - dielec
//#define VOL_X 93
//#define VOL_Y 93
//#define VOL_Z 157
//#define ID_PATH "SQW\\Data\\microID.txt"
//#define FIELD_PATH "SQW\\Data\\DielectricPolarization.txt"
//#define DATA_PATH "_data_dielec_sqw.bin"
//#define CM_IMG "images\\redblue.jpg"
//// Poly - SQW - piezo
//#define VOL_X 93
//#define VOL_Y 93
//#define VOL_Z 157
//#define ID_PATH "SQW\\Data\\microID.txt"
//#define FIELD_PATH "SQW\\Data\\PiezoelectricPolarization.txt"
//#define DATA_PATH "_data_piezo_sqw.bin"
//#define CM_IMG "images\\redblue.jpg"
//// Poly - SQW - Spon
//#define VOL_X 93
//#define VOL_Y 93
//#define VOL_Z 157
//#define ID_PATH "SQW\\Data\\microID.txt"
//#define FIELD_PATH "SQW\\Data\\SpontaneousPolarization.txt"
//#define DATA_PATH "_data_spon_sqw.bin"
//#define CM_IMG "images\\redblue.jpg"
//#define Z_ONLY
//// Poly - SQW - Dielect
//#define VOL_X 93
//#define VOL_Y 93
//#define VOL_Z 157
//#define ID_PATH "SQW\\Data\\microID.txt"
//#define FIELD_PATH "SQW\\Data\\DielectricPolarization.txt"
//#define DATA_PATH "_data_dielect_sqw.bin"
//#define CM_IMG "images\\redblue.jpg"
//// VR55C40W20
//#define VOL_X 147
//#define VOL_Y 147
//#define VOL_Z 120
//#define ID_PATH "VR55C40W20\\microID.txt"
//#define FIELD_PATH "VR55C40W20\\ElectricField.txt"
//#define DATA_PATH "_data_W20.bin"
//#define CM_IMG "images\\heat.jpg"
//// VR55C40W6
//#define VOL_X 128
//#define VOL_Y 128
//#define VOL_Z 104
//#define ID_PATH "VR55C40W6\\microID.txt"
//#define FIELD_PATH "VR55C40W6\\ElectricField.txt"
//#define DATA_PATH "_data_W6.bin"
//#define CM_IMG "images\\heat.jpg"
//// VR55C10W20
//#define VOL_X 107
//#define VOL_Y 107
//#define VOL_Z 87
//#define ID_PATH "VR55C10W20\\microID.txt"
//#define FIELD_PATH "VR55C10W20\\ElectricField.txt"
//#define DATA_PATH "_data_W10.bin"
//#define CM_IMG "images\\heat.jpg"
// Windows Params
extern unsigned WinWidth;
extern unsigned WinHeight;
extern unsigned GpuBlockSize;
extern unsigned WinLeft;
extern unsigned WinTop;
extern char * WinTitle;
extern float ViewPlaneRatio;
//
extern float epsi;
extern int nMultiSampleCount;
extern float fSamplingDeltaFactor;
extern unsigned nCurrObj;
//
extern int bShowGeo;
//
extern int iTfMode;
extern float fP0_val;
extern float fP0_der;
extern float fP1_val;
extern float fP1_der;
//
#define PIon180 (0.017453292222)
#define PI (3.1415926)
// Clip Plane
extern int bClipPlaneEnabled;
extern float planeCtr[3];
extern float planeNorm[3];
extern int nPlaneSampleCount;
// Color Map
extern float knotValues[5];
extern int knotColors[5];
extern int mMode;
extern float *deviceTexData;
extern int texWidth;
extern int texHeight;
extern float fStart;
extern float fEnd;
// Data Selection
extern int mark[4];
// Nano Alpha
extern float fNanoAlpha;
extern int bOnlyInRod;
// Slice\Cut-plane
extern int bShowSlice;
extern int bShowPlane;
extern float fPlaneAlpha;
// Color-map Pic - all by percentage based on WinWidth & WinHeight
extern float picWidth;
extern float picHeight;
extern float picX0;
extern float picY0;
#endif