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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) ENPC - Jean-Philippe Chancelier
*
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
*
-->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="xget" xml:lang="ja">
<refnamediv>
<refname>xget</refname>
<refpurpose>
グラフィックコンテキストのカレントの値を取得.
<emphasis role="bold">この関数は廃止されました.</emphasis>
</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>呼び出し手順</title>
<synopsis>[x1]=xget(str,[flag])
xget()
</synopsis>
</refsynopsisdiv>
<refsection>
<title>パラメータ</title>
<variablelist>
<varlistentry>
<term>str</term>
<listitem>
<para>文字列.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>flag</term>
<listitem>
<para>オプション. 1を指定すると冗長モード.</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection>
<title>説明</title>
<para>
<warning>
この関数は廃止されました.
</warning>
代わりにScilabグラフィックオブジェクト表現を使用してください
(<link linkend="set">set</link>および <link linkend="get">get</link>関数
および<link linkend="graphics_entities">graphicsエンティティ</link>を参照).
</para>
<para>
This function is used to get values from the graphics context on the
topic specified by the string <literal>str</literal>. When called with no
argument, a choice menu is created showing the current values and changes
can be performed through toggle buttons.
</para>
<variablelist>
<varlistentry>
<term>str = xget("auto clear")</term>
<listitem>
<para>
Get the auto clear status (<literal>"on"</literal> or
<literal>"off"</literal>).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>color = xget("background")</term>
<listitem>
<para>
Get the background color of the current
<literal>Axes</literal> object. The result is a colormap
index corresponding to the color.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>rect = xget("clipping")</term>
<listitem>
<para>
Get the clipping zone as a rectangle <literal>rect =
[x,y,w,h]
</literal>
(Upper-Left point, Width, Height).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>c = xget("color")</term>
<listitem>
<para>
Get the default color for filling, line or text drawing
functions. <literal>c</literal> is an integer projected
in the interval <literal>[0,whiteid]</literal>. 0 stands
for black filling and <literal>whiteid</literal> for
white. The value of <literal>whiteid</literal> can be
obtained with <code>xget("white")</code>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>cmap = xget("colormap")</term>
<listitem>
<para>
Get the colormap used for the current graphics window as
a <literal>m x 3</literal> RGB matrix.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>dash = xget("dashes")</term>
<listitem>
<para>
Get the dash style <literal>dash = [dash_number]</literal>
where <literal>dash_number</literal> is the id of the
dash.
<warning>
This keyword is obsolete, please use
<literal>xget("color")</literal> or
<literal>xget("line style")</literal> instead.
</warning>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>font = xget("font")</term>
<listitem>
<para>
Get <literal>font = [fontid, fontsize]</literal>, the
default font and the default value of font size.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>fontsize = xget("font size")</term>
<listitem>
<para>Get the default value of font size.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>color = xget("foreground")</term>
<listitem>
<para>
Get the foreground color of the current
<literal>Axes</literal> object. The result is a colormap index corresponding to the color.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>str = xget("fpf")</term>
<listitem>
<para>
Get the floating point format for number display in
contour functions. Note that <literal>str</literal> is <literal>""</literal> when default format is used.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>color = xget("hidden3d")</term>
<listitem>
<para>
Get the color number for hidden faces in <function>plot3d</function>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>pat = xget("lastpattern")</term>
<listitem>
<para>
Get the id of the last available pattern or color, with
the current colormap of the current window. In fact
<literal>pat+1</literal> and <literal>pat+2</literal>
are also available and stand respectively for black and
white pattern.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>type = xget("line mode")</term>
<listitem>
<para>
Get the line drawing mode. <literal>type = 1</literal>
is absolute mode and <literal>type = 0</literal> is
relative mode.
<warning>
The mode <literal>type = 0</literal> has bugs.
</warning>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>xget("line style")</term>
<listitem>
<para>
Get the default line style (1 for solid line, >1 for
dashed lines).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>mark = xget("mark")</term>
<listitem>
<para>
Get the default mark id and the default mark size.
<literal>mark=[markid, marksize]</literal>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>marksize = xget("mark size")</term>
<listitem>
<para>Get the default mark size.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>pat = xget("pattern")</term>
<listitem>
<para>
Get the current pattern or the current color.
<literal>pat</literal> is an integer in the range
<literal>[1, last]</literal>. When one uses black and
white, 0 is used for black filling and
<literal>last</literal> for white. The value of
<literal>last</literal> can be obtained with
<code>xget("lastpattern")</code>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>value = xget("thickness")</term>
<listitem>
<para>
Get the thickness of lines in pixel (0 and 1 have the same meaning: 1 pixel thick).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>flag = xget("use color")</term>
<listitem>
<para>
Get the flag 0 (use black and white) or 1 (use colors).
See <function>xset</function>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>[x, y] = xget("viewport")</term>
<listitem>
<para>
Get the current position of the visible part of graphics
in the panner.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>dim = xget("wdim")</term>
<listitem>
<para>
Get the width and the height of the current graphics
window <literal>dim = [width, height]</literal>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>win = xget("window")</term>
<listitem>
<para>
Get the current window number <literal>win</literal>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>pos = xget("wpos")</term>
<listitem>
<para>
Get the position of the upper left point of the graphics
window <literal>pos = [x, y]</literal>.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection role="see also">
<title>参照</title>
<simplelist type="inline">
<member>
<link linkend="xset">xset</link>
</member>
<member>
<link linkend="getcolor">getcolor</link>
</member>
<member>
<link linkend="ged">ged</link>
</member>
<member>
<link linkend="set">set</link>
</member>
<member>
<link linkend="graphics_entities">graphics_entities</link>
</member>
</simplelist>
</refsection>
<refsection>
<title>履歴</title>
<revhistory>
<revision>
<revnumber>5.4.0</revnumber>
<revremark>
"alufunction" プロパティはもはやサポートされておらず,
このプロパティは Scilab 5.0.1の描画では使用されいません.
</revremark>
</revision>
</revhistory>
</refsection>
</refentry>
|