PLplot  5.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
plplot_parameters.h
Go to the documentation of this file.
1 // Do not edit this generated file. Instead, check its consistency
2 // with the #defines in bindings/swig-support/plplotcapi.i using the
3 // (Unix) target "check_tcl_parameters". If that target reports an
4 // inconsistency (via a cmp message) between the generated
5 // plplot_parameters.h_compare file in the build tree and
6 // plplot_parameters.h in the source tree, then copy
7 // plplot_parameters.h_compare on top of plplot_parameters.h and
8 // check in that result.
9 
10 // This file contains a function to set the various global variables
11 // used by PLplot
12 
13 static void set_plplot_parameters( Tcl_Interp *interp )
14 {
15  Tcl_Eval( interp, "namespace eval ::PLPLOT { \n"
16  "# obsolete\n"
17  "variable PLESC_SET_RGB [expr 1]\n"
18  "# obsolete\n"
19  "variable PLESC_ALLOC_NCOL [expr 2]\n"
20  "# obsolete\n"
21  "variable PLESC_SET_LPB [expr 3]\n"
22  "# handle window expose\n"
23  "variable PLESC_EXPOSE [expr 4]\n"
24  "# handle window resize\n"
25  "variable PLESC_RESIZE [expr 5]\n"
26  "# handle window redraw\n"
27  "variable PLESC_REDRAW [expr 6]\n"
28  "# switch to text screen\n"
29  "variable PLESC_TEXT [expr 7]\n"
30  "# switch to graphics screen\n"
31  "variable PLESC_GRAPH [expr 8]\n"
32  "# fill polygon\n"
33  "variable PLESC_FILL [expr 9]\n"
34  "# handle DI command\n"
35  "variable PLESC_DI [expr 10]\n"
36  "# flush output\n"
37  "variable PLESC_FLUSH [expr 11]\n"
38  "# handle Window events\n"
39  "variable PLESC_EH [expr 12]\n"
40  "# get cursor position\n"
41  "variable PLESC_GETC [expr 13]\n"
42  "# set window parameters\n"
43  "variable PLESC_SWIN [expr 14]\n"
44  "# configure double buffering\n"
45  "variable PLESC_DOUBLEBUFFERING [expr 15]\n"
46  "# set xor mode\n"
47  "variable PLESC_XORMOD [expr 16]\n"
48  "# AFR: set compression\n"
49  "variable PLESC_SET_COMPRESSION [expr 17]\n"
50  "# RL: clear graphics region\n"
51  "variable PLESC_CLEAR [expr 18]\n"
52  "# RL: draw dashed line\n"
53  "variable PLESC_DASH [expr 19]\n"
54  "# driver draws text\n"
55  "variable PLESC_HAS_TEXT [expr 20]\n"
56  "# handle image\n"
57  "variable PLESC_IMAGE [expr 21]\n"
58  "# plimage related operations\n"
59  "variable PLESC_IMAGEOPS [expr 22]\n"
60  "# convert PLColor to device color\n"
61  "variable PLESC_PL2DEVCOL [expr 23]\n"
62  "# convert device color to PLColor\n"
63  "variable PLESC_DEV2PLCOL [expr 24]\n"
64  "# set BG, FG colors\n"
65  "variable PLESC_SETBGFG [expr 25]\n"
66  "# alternate device initialization\n"
67  "variable PLESC_DEVINIT [expr 26]\n"
68  "# get used backend of (wxWidgets) driver\n"
69  "variable PLESC_GETBACKEND [expr 27]\n"
70  "# get ready to draw a line of text\n"
71  "variable PLESC_BEGIN_TEXT [expr 28]\n"
72  "# render a character of text\n"
73  "variable PLESC_TEXT_CHAR [expr 29]\n"
74  "# handle a text control character (super/subscript, etc.)\n"
75  "variable PLESC_CONTROL_CHAR [expr 30]\n"
76  "# finish a drawing a line of text\n"
77  "variable PLESC_END_TEXT [expr 31]\n"
78  "# start rasterized rendering\n"
79  "variable PLESC_START_RASTERIZE [expr 32]\n"
80  "# end rasterized rendering\n"
81  "variable PLESC_END_RASTERIZE [expr 33]\n"
82  "# render an arc\n"
83  "variable PLESC_ARC [expr 34]\n"
84  "# render a gradient\n"
85  "variable PLESC_GRADIENT [expr 35]\n"
86  "# set drawing mode\n"
87  "variable PLESC_MODESET [expr 36]\n"
88  "# get drawing mode\n"
89  "variable PLESC_MODEGET [expr 37]\n"
90  "# font change in the text stream\n"
91  "variable PLTEXT_FONTCHANGE [expr 0]\n"
92  "# superscript in the text stream\n"
93  "variable PLTEXT_SUPERSCRIPT [expr 1]\n"
94  "# subscript in the text stream\n"
95  "variable PLTEXT_SUBSCRIPT [expr 2]\n"
96  "# back-char in the text stream\n"
97  "variable PLTEXT_BACKCHAR [expr 3]\n"
98  "# toggle overline in the text stream\n"
99  "variable PLTEXT_OVERLINE [expr 4]\n"
100  "# toggle underline in the text stream\n"
101  "variable PLTEXT_UNDERLINE [expr 5]\n"
102  "\n"
103  "variable ZEROW2B [expr 1]\n"
104  "\n"
105  "variable ZEROW2D [expr 2]\n"
106  "\n"
107  "variable ONEW2B [expr 3]\n"
108  "\n"
109  "variable ONEW2D [expr 4]\n"
110  "# device coordinates\n"
111  "variable PLSWIN_DEVICE [expr 1]\n"
112  "# world coordinates\n"
113  "variable PLSWIN_WORLD [expr 2]\n"
114  "# The x-axis\n"
115  "variable PL_X_AXIS [expr 1]\n"
116  "# The y-axis\n"
117  "variable PL_Y_AXIS [expr 2]\n"
118  "# The z-axis\n"
119  "variable PL_Z_AXIS [expr 3]\n"
120  "# Obsolete\n"
121  "variable PL_OPT_ENABLED [expr 0x0001]\n"
122  "# Option has an argment\n"
123  "variable PL_OPT_ARG [expr 0x0002]\n"
124  "# Don't delete after processing\n"
125  "variable PL_OPT_NODELETE [expr 0x0004]\n"
126  "# Make invisible\n"
127  "variable PL_OPT_INVISIBLE [expr 0x0008]\n"
128  "# Processing is disabled\n"
129  "variable PL_OPT_DISABLED [expr 0x0010]\n"
130  "# Call handler function\n"
131  "variable PL_OPT_FUNC [expr 0x0100]\n"
132  "# Set *var = 1\n"
133  "variable PL_OPT_BOOL [expr 0x0200]\n"
134  "# Set *var = atoi(optarg)\n"
135  "variable PL_OPT_INT [expr 0x0400]\n"
136  "# Set *var = atof(optarg)\n"
137  "variable PL_OPT_FLOAT [expr 0x0800]\n"
138  "# Set var = optarg\n"
139  "variable PL_OPT_STRING [expr 0x1000]\n"
140  "# For backward compatibility\n"
141  "variable PL_PARSE_PARTIAL [expr 0x0000]\n"
142  "# Process fully & exit if error\n"
143  "variable PL_PARSE_FULL [expr 0x0001]\n"
144  "# Don't issue messages\n"
145  "variable PL_PARSE_QUIET [expr 0x0002]\n"
146  "# Don't delete options after\n"
147  "variable PL_PARSE_NODELETE [expr 0x0004]\n"
148  "# Show invisible options\n"
149  "variable PL_PARSE_SHOWALL [expr 0x0008]\n"
150  "# Obsolete\n"
151  "variable PL_PARSE_OVERRIDE [expr 0x0010]\n"
152  "# Program name NOT in *argv[0]..\n"
153  "variable PL_PARSE_NOPROGRAM [expr 0x0020]\n"
154  "# Set if leading dash NOT required\n"
155  "variable PL_PARSE_NODASH [expr 0x0040]\n"
156  "# Skip over unrecognized args\n"
157  "variable PL_PARSE_SKIP [expr 0x0080]\n"
158  "\n"
159  "variable PL_FCI_MARK [expr 0x80000000]\n"
160  "\n"
161  "variable PL_FCI_IMPOSSIBLE [expr 0x00000000]\n"
162  "\n"
163  "variable PL_FCI_HEXDIGIT_MASK [expr 0xf]\n"
164  "\n"
165  "variable PL_FCI_HEXPOWER_MASK [expr 0x7]\n"
166  "\n"
167  "variable PL_FCI_HEXPOWER_IMPOSSIBLE [expr 0xf]\n"
168  "\n"
169  "variable PL_FCI_FAMILY [expr 0x0]\n"
170  "\n"
171  "variable PL_FCI_STYLE [expr 0x1]\n"
172  "\n"
173  "variable PL_FCI_WEIGHT [expr 0x2]\n"
174  "\n"
175  "variable PL_FCI_SANS [expr 0x0]\n"
176  "\n"
177  "variable PL_FCI_SERIF [expr 0x1]\n"
178  "\n"
179  "variable PL_FCI_MONO [expr 0x2]\n"
180  "\n"
181  "variable PL_FCI_SCRIPT [expr 0x3]\n"
182  "\n"
183  "variable PL_FCI_SYMBOL [expr 0x4]\n"
184  "\n"
185  "variable PL_FCI_UPRIGHT [expr 0x0]\n"
186  "\n"
187  "variable PL_FCI_ITALIC [expr 0x1]\n"
188  "\n"
189  "variable PL_FCI_OBLIQUE [expr 0x2]\n"
190  "\n"
191  "variable PL_FCI_MEDIUM [expr 0x0]\n"
192  "\n"
193  "variable PL_FCI_BOLD [expr 0x1]\n"
194  "\n"
195  "variable PL_MAXKEY [expr 16]\n"
196  "# Max number of windows/page tracked\n"
197  "variable PL_MAXWINDOWS [expr 64]\n"
198  "\n"
199  "variable PL_NOTSET [expr -42]\n"
200  "\n"
201  "variable PL_PI 3.1415926535897932384\n"
202  "\n"
203  "variable PLESC_DOUBLEBUFFERING_ENABLE [expr 1]\n"
204  "\n"
205  "variable PLESC_DOUBLEBUFFERING_DISABLE [expr 2]\n"
206  "\n"
207  "variable PLESC_DOUBLEBUFFERING_QUERY [expr 3]\n"
208  "\n"
209  "variable PL_BIN_DEFAULT [expr 0x0]\n"
210  "\n"
211  "variable PL_BIN_CENTRED [expr 0x1]\n"
212  "\n"
213  "variable PL_BIN_NOEXPAND [expr 0x2]\n"
214  "\n"
215  "variable PL_BIN_NOEMPTY [expr 0x4]\n"
216  "# Bivariate Cubic Spline approximation\n"
217  "variable GRID_CSA [expr 1]\n"
218  "# Delaunay Triangulation Linear Interpolation\n"
219  "variable GRID_DTLI [expr 2]\n"
220  "# Natural Neighbors Interpolation\n"
221  "variable GRID_NNI [expr 3]\n"
222  "# Nearest Neighbors Inverse Distance Weighted\n"
223  "variable GRID_NNIDW [expr 4]\n"
224  "# Nearest Neighbors Linear Interpolation\n"
225  "variable GRID_NNLI [expr 5]\n"
226  "# Nearest Neighbors Around Inverse Distance Weighted\n"
227  "variable GRID_NNAIDW [expr 6]\n"
228  "\n"
229  "variable PL_HIST_DEFAULT [expr 0x00]\n"
230  "\n"
231  "variable PL_HIST_NOSCALING [expr 0x01]\n"
232  "\n"
233  "variable PL_HIST_IGNORE_OUTLIERS [expr 0x02]\n"
234  "\n"
235  "variable PL_HIST_NOEXPAND [expr 0x08]\n"
236  "\n"
237  "variable PL_HIST_NOEMPTY [expr 0x10]\n"
238  "\n"
239  "variable PL_POSITION_LEFT [expr 0x1]\n"
240  "\n"
241  "variable PL_POSITION_RIGHT [expr 0x2]\n"
242  "\n"
243  "variable PL_POSITION_TOP [expr 0x4]\n"
244  "\n"
245  "variable PL_POSITION_BOTTOM [expr 0x8]\n"
246  "\n"
247  "variable PL_POSITION_INSIDE [expr 0x10]\n"
248  "\n"
249  "variable PL_POSITION_OUTSIDE [expr 0x20]\n"
250  "\n"
251  "variable PL_POSITION_VIEWPORT [expr 0x40]\n"
252  "\n"
253  "variable PL_POSITION_SUBPAGE [expr 0x80]\n"
254  "\n"
255  "variable PL_LEGEND_NONE [expr 0x1]\n"
256  "\n"
257  "variable PL_LEGEND_COLOR_BOX [expr 0x2]\n"
258  "\n"
259  "variable PL_LEGEND_LINE [expr 0x4]\n"
260  "\n"
261  "variable PL_LEGEND_SYMBOL [expr 0x8]\n"
262  "\n"
263  "variable PL_LEGEND_TEXT_LEFT [expr 0x10]\n"
264  "\n"
265  "variable PL_LEGEND_BACKGROUND [expr 0x20]\n"
266  "\n"
267  "variable PL_LEGEND_BOUNDING_BOX [expr 0x40]\n"
268  "\n"
269  "variable PL_LEGEND_ROW_MAJOR [expr 0x80]\n"
270  "\n"
271  "variable PL_COLORBAR_LABEL_LEFT [expr 0x1]\n"
272  "\n"
273  "variable PL_COLORBAR_LABEL_RIGHT [expr 0x2]\n"
274  "\n"
275  "variable PL_COLORBAR_LABEL_TOP [expr 0x4]\n"
276  "\n"
277  "variable PL_COLORBAR_LABEL_BOTTOM [expr 0x8]\n"
278  "\n"
279  "variable PL_COLORBAR_IMAGE [expr 0x10]\n"
280  "\n"
281  "variable PL_COLORBAR_SHADE [expr 0x20]\n"
282  "\n"
283  "variable PL_COLORBAR_GRADIENT [expr 0x40]\n"
284  "\n"
285  "variable PL_COLORBAR_CAP_NONE [expr 0x80]\n"
286  "\n"
287  "variable PL_COLORBAR_CAP_LOW [expr 0x100]\n"
288  "\n"
289  "variable PL_COLORBAR_CAP_HIGH [expr 0x200]\n"
290  "\n"
291  "variable PL_COLORBAR_SHADE_LABEL [expr 0x400]\n"
292  "\n"
293  "variable PL_COLORBAR_ORIENT_RIGHT [expr 0x800]\n"
294  "\n"
295  "variable PL_COLORBAR_ORIENT_TOP [expr 0x1000]\n"
296  "\n"
297  "variable PL_COLORBAR_ORIENT_LEFT [expr 0x2000]\n"
298  "\n"
299  "variable PL_COLORBAR_ORIENT_BOTTOM [expr 0x4000]\n"
300  "\n"
301  "variable PL_COLORBAR_BACKGROUND [expr 0x8000]\n"
302  "\n"
303  "variable PL_COLORBAR_BOUNDING_BOX [expr 0x10000]\n"
304  "\n"
305  "variable PL_DRAWMODE_UNKNOWN [expr 0x0]\n"
306  "\n"
307  "variable PL_DRAWMODE_DEFAULT [expr 0x1]\n"
308  "\n"
309  "variable PL_DRAWMODE_REPLACE [expr 0x2]\n"
310  "\n"
311  "variable PL_DRAWMODE_XOR [expr 0x4]\n"
312  "# draw lines parallel to the X axis\n"
313  "variable DRAW_LINEX [expr 0x001]\n"
314  "# draw lines parallel to the Y axis\n"
315  "variable DRAW_LINEY [expr 0x002]\n"
316  "# draw lines parallel to both the X and Y axis\n"
317  "variable DRAW_LINEXY [expr 0x003]\n"
318  "# draw the mesh with a color dependent of the magnitude\n"
319  "variable MAG_COLOR [expr 0x004]\n"
320  "# draw contour plot at bottom xy plane\n"
321  "variable BASE_CONT [expr 0x008]\n"
322  "# draw contour plot at top xy plane\n"
323  "variable TOP_CONT [expr 0x010]\n"
324  "# draw contour plot at surface\n"
325  "variable SURF_CONT [expr 0x020]\n"
326  "# draw sides\n"
327  "variable DRAW_SIDES [expr 0x040]\n"
328  "# draw outline for each square that makes up the surface\n"
329  "variable FACETED [expr 0x080]\n"
330  "# draw mesh\n"
331  "variable MESH [expr 0x100]\n"
332  "}" );
333 }