1 /***********************************************************************/
2 /* Open Visualization Data Explorer                                    */
3 /* (C) Copyright IBM Corp. 1989,1999                                   */
4 /* ALL RIGHTS RESERVED                                                 */
5 /* This code licensed under the                                        */
6 /*    "IBM PUBLIC LICENSE - Open Visualization Data Explorer"          */
7 /***********************************************************************/
8 
9 #include <dxconfig.h>
10 
11 
12 
13 #ifdef TRUE
14 #undef TRUE
15 #endif
16 #ifdef FALSE
17 #undef FALSE
18 #endif
19 
20 #if defined(intelnt)
21 #define    DOUBLE	DX_DOUBLE
22 #define    FLOAT	DX_FLOAT
23 #define    INT		DX_INT
24 #define    UINT		DX_UINT
25 #define    SHORT	DX_SHORT
26 #define    USHORT	DX_USHORT
27 #define    BYTE		DX_BYTE
28 #define    UBYTE	DX_UBYTE
29 #define    STRING	DX_STRING
30 #define    NO_DATATYPE	DX_NO_DATATYPE
31 #endif
32 
33 enum truefalse
34 {
35     TRUE,
36     FALSE,
37     UNKNOWN
38 };
39 
40 enum language
41 {
42     C,
43     FORTRAN
44 };
45 
46 
47 typedef struct
48 {
49     char               *name;
50     char               *category;
51     char               *description;
52     char               *outboard_host;
53     char               *outboard_executable;
54     char               *loadable_executable;
55     char               *include_file;
56     enum language 	language;
57     enum truefalse      outboard_persistent;
58     enum truefalse      asynchronous;
59     enum truefalse      pinned;
60     enum truefalse      side_effect;
61 } Module;
62 
63 enum structure
64 {
65     VALUE,
66     GROUP_FIELD,
67     NO_STRUCTURE
68 };
69 
70 enum datatype
71 {
72     DOUBLE,
73     FLOAT,
74     INT,
75     UINT,
76     SHORT,
77     USHORT,
78     BYTE,
79     UBYTE,
80     STRING,
81     NO_DATATYPE
82 };
83 
84 enum datashape
85 {
86     SCALAR,
87     VECTOR_1,
88     VECTOR_2,
89     VECTOR_3,
90     VECTOR_4,
91     VECTOR_5,
92     VECTOR_6,
93     VECTOR_7,
94     VECTOR_8,
95     VECTOR_9,
96     NO_DATASHAPE
97 };
98 
99 enum counts
100 {
101     COUNTS_1,
102     COUNTS_SAME_AS_INPUT,
103     NO_COUNTS
104 };
105 
106 enum gridstructure
107 {
108     GRID_REGULAR,
109     GRID_IRREGULAR,
110     GRID_NOT_REQUIRED
111 };
112 
113 enum dependency
114 {
115     DEP_POSITIONS,
116     DEP_CONNECTIONS,
117     DEP_INPUT,
118     DEP_NONE,
119     NO_DEPENDENCY
120 };
121 
122 enum elementtype
123 {
124     ELT_LINES,
125     ELT_TRIANGLES,
126     ELT_QUADS,
127     ELT_TETRAHEDRA,
128     ELT_CUBES,
129     ELT_NOT_REQUIRED
130 };
131 
132 typedef struct
133 {
134     char               *name;
135     char               *description;
136     enum truefalse      required;
137     char               *default_value;
138     enum truefalse      descriptive;
139     char               *types;
140     enum structure      structure;
141     enum datatype       datatype;
142     enum datashape      datashape;
143     enum counts         counts;
144     enum gridstructure  positions;
145     enum gridstructure  connections;
146     enum dependency     dependency;
147     enum elementtype    elementtype;
148 } Parameter;
149 
150 
151