1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
6
<TYPE>Scilab Function</TYPE>
7
<DATE>April 1993</DATE>
8
<SHORT_DESCRIPTION name="xget"> get current values of the graphics context</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>[x1]=xget(str,[flag]) </CALLING_SEQUENCE_ITEM>
11
<CALLING_SEQUENCE_ITEM>xget() </CALLING_SEQUENCE_ITEM>
16
<PARAM_NAME>str</PARAM_NAME>
22
<PARAM_NAME>flag</PARAM_NAME>
24
<SP>: optional. Set to 1 gives a verbose mode.</SP>
31
This function is used to get values from the graphics context
32
on the topic specified by the string <VERB>str</VERB>. When called with
33
no argument, a choice menu is created showing the current values and
34
changes can be performed through toggle buttons.
37
<DESCRIPTION_ITEM label="number=xget("alufunction")">
38
<SP>: Get the logical function number used for drawing. See <VERB>xset</VERB>.</SP>
40
<DESCRIPTION_ITEM label="str=xget("auto clear")">
41
<SP>: Get the auto clear status (<VERB>"on"</VERB> or <VERB>"off"</VERB>).</SP>
43
<DESCRIPTION_ITEM label="color=xget("background")">
44
<SP>: Get the background color of the current graphics window.</SP>
46
<DESCRIPTION_ITEM label="rect=xget("clipping")">
47
<SP>: Get the clipping zone as a rectangle rect=[x,y,w,h] (Upper-Left point Width Height).</SP>
49
<DESCRIPTION_ITEM label="c=xget("color")">
50
<SP>: Get the default color for filling, line or text drawing functions. <VERB>c</VERB> is an integer projected in the interval [0,whiteid]. 0 stands for black filling and whiteid for white. The value of whiteid can be obtained with <VERB>xget("white")</VERB>.</SP>
52
<DESCRIPTION_ITEM label="cmap=xget("colormap")">
53
<SP>: Get the colormap used for the current graphics window as a m x 3 RGB matrix.</SP>
55
<DESCRIPTION_ITEM label="dash=xget("dashes")">
56
<SP>: Get the dash style dash=[dash_number] where dash_number is the id of the dash. This keyword is obsolete, please use <VERB>xget("color")</VERB> or <VERB>xget("line style")</VERB> instead.</SP>
58
<DESCRIPTION_ITEM label="font=xget("font")">
59
<SP>: Get font=[fontid,fontsize], the default font and the default size for fonts. size.</SP>
61
<DESCRIPTION_ITEM label="fontsize=xget("font size")">
62
<SP>: Get the default size for fonts size.</SP>
64
<DESCRIPTION_ITEM label="color=xget("foreground")">
65
<SP>: Get the foreground color of the current graphics window.</SP>
67
<DESCRIPTION_ITEM label="str=xget("fpf")">
68
<SP>: Get the floating point format for number display in contour functions. Note that <VERB>str</VERB> is <VERB>""</VERB> when default format is used.</SP>
70
<DESCRIPTION_ITEM label="color=xget("hidden3d")">
71
<SP>: Get the color number for hidden faces in plot3d.</SP>
73
<DESCRIPTION_ITEM label="pat=xget("lastpattern")">
74
<SP>: Get the id of the last available pattern or color, with the current colormap of the current window. In fact <VERB>pat+1</VERB> and <VERB>pat+2</VERB> are also available and stand respectively for black and white pattern.</SP>
76
<DESCRIPTION_ITEM label="type=xget("line mode")">
77
<SP>: Get the line drawing mode. type=1 is absolute mode and type=0 is relative mode. (Warning: the mode type=0 is has bugs)</SP>
79
<DESCRIPTION_ITEM label="xget("line style")">
80
<SP>: Get the default line style (1: solid, >1 for dashed lines).</SP>
82
<DESCRIPTION_ITEM label="mark=xget("mark")">
83
<SP>: Get the default mark id and the default marks size. <VERB>mark=[markid,marksize]</VERB>.</SP>
85
<DESCRIPTION_ITEM label="marksize=xget("mark size")">
86
<SP>: Get the default marks size.</SP>
88
<DESCRIPTION_ITEM label="pat=xget("pattern")">
89
<SP>: Get the current pattern or the current color. <VERB>pat</VERB> is an integer in the range <VERB>[1,last]</VERB>. When one uses black and white, 0 is used for black filling and <VERB>last</VERB> for white. The value of <VERB>last</VERB> can be obtained with <VERB>xget("lastpattern")</VERB>.</SP>
91
<DESCRIPTION_ITEM label="value=xget("thickness")">
92
<SP>: Get the thickness of lines in pixel (0 and 1 have the same meaning: 1 pixel thick).</SP>
94
<DESCRIPTION_ITEM label="flag=xget("use color")">
95
<SP>: Get the flag 0 (use black and white) or 1 (use colors). See <VERB>xset</VERB>.</SP>
97
<DESCRIPTION_ITEM label="[x,y]=xget("viewport")">
98
<SP>: Get the current postion of the visible part of graphics in the panner.</SP>
100
<DESCRIPTION_ITEM label="dim=xget("wdim")">
101
<SP>: Get the width and the height of the current graphics window dim=[width,height].</SP>
103
<DESCRIPTION_ITEM label="win=xget("window")">
104
<SP>: Get the current window number <VERB>win</VERB>.</SP>
106
<DESCRIPTION_ITEM label="pos=xget("wpos");">
107
<SP>: Get the position of the upper left point of the graphics window pos=[x,y].</SP>
109
</DESCRIPTION_INDENT>
116
<LINK>colormap</LINK>
119
<AUTHOR>J.Ph.C. </AUTHOR>