PLplot: plplot_parameters.h Source File

PLplot 5.15.0

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 - no longer used\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 "# set or unset fixing the aspect ratio of the plot\n"
91 "variable PLESC_FIXASPECT [expr 38]\n"
92 "# set the contents of the buffer to a specified byte string\n"
93 "variable PLESC_IMPORT_BUFFER [expr 39]\n"
94 "# append the given byte string to the buffer\n"
95 "variable PLESC_APPEND_BUFFER [expr 40]\n"
96 "# flush the remaining buffer e.g. after new data was appended\n"
97 "variable PLESC_FLUSH_REMAINING_BUFFER [expr 41]\n"
98 "# font change in the text stream\n"
99 "variable PLTEXT_FONTCHANGE [expr 0]\n"
100 "# superscript in the text stream\n"
101 "variable PLTEXT_SUPERSCRIPT [expr 1]\n"
102 "# subscript in the text stream\n"
103 "variable PLTEXT_SUBSCRIPT [expr 2]\n"
104 "# back-char in the text stream\n"
105 "variable PLTEXT_BACKCHAR [expr 3]\n"
106 "# toggle overline in the text stream\n"
107 "variable PLTEXT_OVERLINE [expr 4]\n"
108 "# toggle underline in the text stream\n"
109 "variable PLTEXT_UNDERLINE [expr 5]\n"
110 "\n"
111 "variable ZEROW2B [expr 1]\n"
112 "\n"
113 "variable ZEROW2D [expr 2]\n"
114 "\n"
115 "variable ONEW2B [expr 3]\n"
116 "\n"
117 "variable ONEW2D [expr 4]\n"
118 "# device coordinates\n"
119 "variable PLSWIN_DEVICE [expr 1]\n"
120 "# world coordinates\n"
121 "variable PLSWIN_WORLD [expr 2]\n"
122 "# The x-axis\n"
123 "variable PL_X_AXIS [expr 1]\n"
124 "# The y-axis\n"
125 "variable PL_Y_AXIS [expr 2]\n"
126 "# The z-axis\n"
127 "variable PL_Z_AXIS [expr 3]\n"
128 "# Obsolete\n"
129 "variable PL_OPT_ENABLED [expr 0x0001]\n"
130 "# Option has an argument\n"
131 "variable PL_OPT_ARG [expr 0x0002]\n"
132 "# Don't delete after processing\n"
133 "variable PL_OPT_NODELETE [expr 0x0004]\n"
134 "# Make invisible\n"
135 "variable PL_OPT_INVISIBLE [expr 0x0008]\n"
136 "# Processing is disabled\n"
137 "variable PL_OPT_DISABLED [expr 0x0010]\n"
138 "# Call handler function\n"
139 "variable PL_OPT_FUNC [expr 0x0100]\n"
140 "# Set *var = 1\n"
141 "variable PL_OPT_BOOL [expr 0x0200]\n"
142 "# Set *var = atoi(optarg)\n"
143 "variable PL_OPT_INT [expr 0x0400]\n"
144 "# Set *var = atof(optarg)\n"
145 "variable PL_OPT_FLOAT [expr 0x0800]\n"
146 "# Set var = optarg\n"
147 "variable PL_OPT_STRING [expr 0x1000]\n"
148 "# For backward compatibility\n"
149 "variable PL_PARSE_PARTIAL [expr 0x0000]\n"
150 "# Process fully & exit if error\n"
151 "variable PL_PARSE_FULL [expr 0x0001]\n"
152 "# Don't issue messages\n"
153 "variable PL_PARSE_QUIET [expr 0x0002]\n"
154 "# Don't delete options after\n"
155 "variable PL_PARSE_NODELETE [expr 0x0004]\n"
156 "# Show invisible options\n"
157 "variable PL_PARSE_SHOWALL [expr 0x0008]\n"
158 "# Obsolete\n"
159 "variable PL_PARSE_OVERRIDE [expr 0x0010]\n"
160 "# Program name NOT in *argv[0]..\n"
161 "variable PL_PARSE_NOPROGRAM [expr 0x0020]\n"
162 "# Set if leading dash NOT required\n"
163 "variable PL_PARSE_NODASH [expr 0x0040]\n"
164 "# Skip over unrecognized args\n"
165 "variable PL_PARSE_SKIP [expr 0x0080]\n"
166 "\n"
167 "variable PL_FCI_MARK [expr 0x80000000]\n"
168 "\n"
169 "variable PL_FCI_IMPOSSIBLE [expr 0x00000000]\n"
170 "\n"
171 "variable PL_FCI_HEXDIGIT_MASK [expr 0xf]\n"
172 "\n"
173 "variable PL_FCI_HEXPOWER_MASK [expr 0x7]\n"
174 "\n"
175 "variable PL_FCI_HEXPOWER_IMPOSSIBLE [expr 0xf]\n"
176 "\n"
177 "variable PL_FCI_FAMILY [expr 0x0]\n"
178 "\n"
179 "variable PL_FCI_STYLE [expr 0x1]\n"
180 "\n"
181 "variable PL_FCI_WEIGHT [expr 0x2]\n"
182 "\n"
183 "variable PL_FCI_SANS [expr 0x0]\n"
184 "\n"
185 "variable PL_FCI_SERIF [expr 0x1]\n"
186 "\n"
187 "variable PL_FCI_MONO [expr 0x2]\n"
188 "\n"
189 "variable PL_FCI_SCRIPT [expr 0x3]\n"
190 "\n"
191 "variable PL_FCI_SYMBOL [expr 0x4]\n"
192 "\n"
193 "variable PL_FCI_UPRIGHT [expr 0x0]\n"
194 "\n"
195 "variable PL_FCI_ITALIC [expr 0x1]\n"
196 "\n"
197 "variable PL_FCI_OBLIQUE [expr 0x2]\n"
198 "\n"
199 "variable PL_FCI_MEDIUM [expr 0x0]\n"
200 "\n"
201 "variable PL_FCI_BOLD [expr 0x1]\n"
202 "\n"
203 "variable PL_MAXKEY [expr 16]\n"
204 "# ( 1 << 0 )\n"
205 "variable PL_MASK_SHIFT [expr 0x1]\n"
206 "# ( 1 << 1 )\n"
207 "variable PL_MASK_CAPS [expr 0x2]\n"
208 "# ( 1 << 2 )\n"
209 "variable PL_MASK_CONTROL [expr 0x4]\n"
210 "# ( 1 << 3 )\n"
211 "variable PL_MASK_ALT [expr 0x8]\n"
212 "# ( 1 << 4 )\n"
213 "variable PL_MASK_NUM [expr 0x10]\n"
214 "# ( 1 << 5 )\n"
215 "variable PL_MASK_ALTGR [expr 0x20]\n"
216 "# ( 1 << 6 )\n"
217 "variable PL_MASK_WIN [expr 0x40]\n"
218 "# ( 1 << 7 )\n"
219 "variable PL_MASK_SCROLL [expr 0x80]\n"
220 "# ( 1 << 8 )\n"
221 "variable PL_MASK_BUTTON1 [expr 0x100]\n"
222 "# ( 1 << 9 )\n"
223 "variable PL_MASK_BUTTON2 [expr 0x200]\n"
224 "# ( 1 << 10 )\n"
225 "variable PL_MASK_BUTTON3 [expr 0x400]\n"
226 "# ( 1 << 11 )\n"
227 "variable PL_MASK_BUTTON4 [expr 0x800]\n"
228 "# ( 1 << 12 )\n"
229 "variable PL_MASK_BUTTON5 [expr 0x1000]\n"
230 "# Max number of windows/page tracked\n"
231 "variable PL_MAXWINDOWS [expr 64]\n"
232 "\n"
233 "variable PL_NOTSET [expr -42]\n"
234 "\n"
235 "variable PL_PI 3.1415926535897932384\n"
236 "\n"
237 "variable PL_DEFAULT_NCOL0 [expr 16]\n"
238 "\n"
239 "variable PL_DEFAULT_NCOL1 [expr 128]\n"
240 "\n"
241 "variable MIN_PLINT_RGB [expr 0]\n"
242 "\n"
243 "variable MAX_PLINT_RGB [expr 255]\n"
244 "\n"
245 "variable MIN_PLFLT_CMAP1 [expr 0.]\n"
246 "\n"
247 "variable MAX_PLFLT_CMAP1 [expr 1.]\n"
248 "\n"
249 "variable MIN_PLFLT_ALPHA [expr 0.]\n"
250 "\n"
251 "variable MAX_PLFLT_ALPHA [expr 1.]\n"
252 "\n"
253 "variable PLESC_DOUBLEBUFFERING_ENABLE [expr 1]\n"
254 "\n"
255 "variable PLESC_DOUBLEBUFFERING_DISABLE [expr 2]\n"
256 "\n"
257 "variable PLESC_DOUBLEBUFFERING_QUERY [expr 3]\n"
258 "\n"
259 "variable PL_BIN_DEFAULT [expr 0x0]\n"
260 "\n"
261 "variable PL_BIN_CENTRED [expr 0x1]\n"
262 "\n"
263 "variable PL_BIN_NOEXPAND [expr 0x2]\n"
264 "\n"
265 "variable PL_BIN_NOEMPTY [expr 0x4]\n"
266 "# Bivariate Cubic Spline approximation\n"
267 "variable GRID_CSA [expr 1]\n"
268 "# Delaunay Triangulation Linear Interpolation\n"
269 "variable GRID_DTLI [expr 2]\n"
270 "# Natural Neighbors Interpolation\n"
271 "variable GRID_NNI [expr 3]\n"
272 "# Nearest Neighbors Inverse Distance Weighted\n"
273 "variable GRID_NNIDW [expr 4]\n"
274 "# Nearest Neighbors Linear Interpolation\n"
275 "variable GRID_NNLI [expr 5]\n"
276 "# Nearest Neighbors Around Inverse Distance Weighted\n"
277 "variable GRID_NNAIDW [expr 6]\n"
278 "\n"
279 "variable PL_HIST_DEFAULT [expr 0x00]\n"
280 "\n"
281 "variable PL_HIST_NOSCALING [expr 0x01]\n"
282 "\n"
283 "variable PL_HIST_IGNORE_OUTLIERS [expr 0x02]\n"
284 "\n"
285 "variable PL_HIST_NOEXPAND [expr 0x08]\n"
286 "\n"
287 "variable PL_HIST_NOEMPTY [expr 0x10]\n"
288 "\n"
289 "variable PL_POSITION_NULL [expr 0x0]\n"
290 "\n"
291 "variable PL_POSITION_LEFT [expr 0x1]\n"
292 "\n"
293 "variable PL_POSITION_RIGHT [expr 0x2]\n"
294 "\n"
295 "variable PL_POSITION_TOP [expr 0x4]\n"
296 "\n"
297 "variable PL_POSITION_BOTTOM [expr 0x8]\n"
298 "\n"
299 "variable PL_POSITION_INSIDE [expr 0x10]\n"
300 "\n"
301 "variable PL_POSITION_OUTSIDE [expr 0x20]\n"
302 "\n"
303 "variable PL_POSITION_VIEWPORT [expr 0x40]\n"
304 "\n"
305 "variable PL_POSITION_SUBPAGE [expr 0x80]\n"
306 "\n"
307 "variable PL_LEGEND_NULL [expr 0x0]\n"
308 "\n"
309 "variable PL_LEGEND_NONE [expr 0x1]\n"
310 "\n"
311 "variable PL_LEGEND_COLOR_BOX [expr 0x2]\n"
312 "\n"
313 "variable PL_LEGEND_LINE [expr 0x4]\n"
314 "\n"
315 "variable PL_LEGEND_SYMBOL [expr 0x8]\n"
316 "\n"
317 "variable PL_LEGEND_TEXT_LEFT [expr 0x10]\n"
318 "\n"
319 "variable PL_LEGEND_BACKGROUND [expr 0x20]\n"
320 "\n"
321 "variable PL_LEGEND_BOUNDING_BOX [expr 0x40]\n"
322 "\n"
323 "variable PL_LEGEND_ROW_MAJOR [expr 0x80]\n"
324 "\n"
325 "variable PL_COLORBAR_NULL [expr 0x0]\n"
326 "\n"
327 "variable PL_COLORBAR_LABEL_LEFT [expr 0x1]\n"
328 "\n"
329 "variable PL_COLORBAR_LABEL_RIGHT [expr 0x2]\n"
330 "\n"
331 "variable PL_COLORBAR_LABEL_TOP [expr 0x4]\n"
332 "\n"
333 "variable PL_COLORBAR_LABEL_BOTTOM [expr 0x8]\n"
334 "\n"
335 "variable PL_COLORBAR_IMAGE [expr 0x10]\n"
336 "\n"
337 "variable PL_COLORBAR_SHADE [expr 0x20]\n"
338 "\n"
339 "variable PL_COLORBAR_GRADIENT [expr 0x40]\n"
340 "\n"
341 "variable PL_COLORBAR_CAP_NONE [expr 0x80]\n"
342 "\n"
343 "variable PL_COLORBAR_CAP_LOW [expr 0x100]\n"
344 "\n"
345 "variable PL_COLORBAR_CAP_HIGH [expr 0x200]\n"
346 "\n"
347 "variable PL_COLORBAR_SHADE_LABEL [expr 0x400]\n"
348 "\n"
349 "variable PL_COLORBAR_ORIENT_RIGHT [expr 0x800]\n"
350 "\n"
351 "variable PL_COLORBAR_ORIENT_TOP [expr 0x1000]\n"
352 "\n"
353 "variable PL_COLORBAR_ORIENT_LEFT [expr 0x2000]\n"
354 "\n"
355 "variable PL_COLORBAR_ORIENT_BOTTOM [expr 0x4000]\n"
356 "\n"
357 "variable PL_COLORBAR_BACKGROUND [expr 0x8000]\n"
358 "\n"
359 "variable PL_COLORBAR_BOUNDING_BOX [expr 0x10000]\n"
360 "\n"
361 "variable PL_DRAWMODE_UNKNOWN [expr 0x0]\n"
362 "\n"
363 "variable PL_DRAWMODE_DEFAULT [expr 0x1]\n"
364 "\n"
365 "variable PL_DRAWMODE_REPLACE [expr 0x2]\n"
366 "\n"
367 "variable PL_DRAWMODE_XOR [expr 0x4]\n"
368 "# draw lines parallel to the X axis\n"
369 "variable DRAW_LINEX [expr 0x001]\n"
370 "# draw lines parallel to the Y axis\n"
371 "variable DRAW_LINEY [expr 0x002]\n"
372 "# draw lines parallel to both the X and Y axis\n"
373 "variable DRAW_LINEXY [expr 0x003]\n"
374 "# draw the mesh with a color dependent of the magnitude\n"
375 "variable MAG_COLOR [expr 0x004]\n"
376 "# draw contour plot at bottom xy plane\n"
377 "variable BASE_CONT [expr 0x008]\n"
378 "# draw contour plot at top xy plane\n"
379 "variable TOP_CONT [expr 0x010]\n"
380 "# draw contour plot at surface\n"
381 "variable SURF_CONT [expr 0x020]\n"
382 "# draw sides\n"
383 "variable DRAW_SIDES [expr 0x040]\n"
384 "# draw outline for each square that makes up the surface\n"
385 "variable FACETED [expr 0x080]\n"
386 "# draw mesh\n"
387 "variable MESH [expr 0x100]\n"
388 "}" );
389 }
set_plplot_parameters
static void set_plplot_parameters(Tcl_Interp *interp)
Definition: plplot_parameters.h:13
interp
static Tcl_Interp * interp
Definition: tkMain.c:120