forked from Ermentrout/xppaut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
struct.h
171 lines (133 loc) · 2.75 KB
/
struct.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
#ifndef _struct_h_
#define _struct_h_
#include "xpplim.h"
#define MAXCHAR 60
#define MAXENTRY 20
#define RADIO 0
#define CHOICE 1
#define ICMAX 25
#define MAXPERPLOT 10
#define MAXFRZ 26
#define MAXPOP 21
#define MAXNCLINE 26
#define ICLENGTH 30
#define NAMELENGTH 10
typedef struct {
double xlo,xhi;
char rv[10];
int nstep, ic,stor;
} RANGE_INFO;
typedef struct {
Window base,ok,cancel,old,last,more,range;
Window wrlo,wrhi,wstep,wreset,woldic;
RANGE_INFO *rinf;
double *yold,*y,*ylast;
int n;
int node;
char **name;
char ascval[MAXODE][ICLENGTH];
Window wname[ICMAX],wval[ICMAX];
} IC_BOX;
typedef struct {
Window w,w_info;
int Use;
int state;
int Restore;
int Nullrestore;
int x0;
int y0;
int Width;
int Height;
int x11Wid;
int x11Hgt;
int nvars;
double rm[3][3];
double min_scale,color_scale;
double xmin,ymin,zmin,xmax,ymax,zmax,xorg,yorg,zorg;
double xbar,ybar,zbar,dx,dy,dz;
int xv[MAXPERPLOT],yv[MAXPERPLOT],zv[MAXPERPLOT];
int line[MAXPERPLOT],color[MAXPERPLOT];
double Theta,Phi;
double ZPlane,ZView;
double xlo,ylo,xhi,yhi,oldxlo,oldxhi,oldylo,oldyhi;
int grtype,ThreeDFlag,TimeFlag,PerspFlag;
int xshft,yshft,zshft;
int xorgflag,yorgflag,zorgflag;
int ColorFlag,ColorValue;
char xlabel[30],ylabel[30],zlabel[30];
char gr_info[256];
} GRAPH;
typedef struct {
GC gc;
int dx,dy,yoff;
unsigned int fcol,bcol;
} TEXTGC;
typedef struct {
Window w;
float x;
float y;
char s[MAXCHAR];
short use;
int font,size;
} LABEL;
typedef struct {
Window w;
char key[20],name[10];
short use,type;
float *xv,*yv,*zv;
int len,color;
} CURVE;
typedef struct {
Window w;
char name[10];
short use;
float *x_n,*y_n;
int ix,iy,num_x,num_y;
} NCLINE;
typedef struct {
Window mes;
Window ok;
Window cancel;
Window input;
Window base;
char mes_s[MAXCHAR];
char input_s[MAXCHAR];
char ok_s[MAXCHAR];
char cancel_s[MAXCHAR];
} DIALOG;
typedef struct {
char title[MAXCHAR];
int n;
Window base;
Window ok;
Window cancel;
short type;
int mc;
Window cw[MAXENTRY];
char **name;
int *flag;
} CHOICE_BOX;
typedef struct {
Window w;
char name[MAXCHAR];
char value[MAXCHAR];
} PARAM;
typedef struct {
Window base;
char title[MAXCHAR];
PARAM *p;
int n;
Window ok;
Window cancel;
} PARAM_BOX;
typedef struct {
char name[10];
char value[80];
Window w;
} TCHOICE;
typedef struct {
char title[100];
Window who,what,cancel,ok;
TCHOICE tc[100];
} TXTCHOICE;
#endif