1 <?xml version="1.0" encoding="UTF-8"?>
6 * Copyright (C) INRIA - METALAU Project <scicos@inria.fr> (HTML version)
7 * Copyright (C) DIGITEO - Scilab Consortium (XML Docbook version)
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 * See the file ./license.txt
26 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="scicos_graphics">
30 <refname>scicos_graphics</refname>
32 <refpurpose>graphics構造体を定義</refpurpose>
36 <refsect1 id="graphics_scicos_graphics">
38 <title>graphics</title>
42 ブロックの機能に関するグラフィック情報を有するScilabオブジェクト.
46 Type : scilab tlist of type <code>"graphics"</code> with fields :
47 <link linkend="scicos_block_graphics_orig">orig</link>,
48 <link linkend="scicos_block_graphics_sz">sz</link>,
49 <link linkend="scicos_block_graphics_flip">flip</link>,
50 <link linkend="scicos_block_graphics_theta">theta</link>,
51 <link linkend="scicos_block_graphics_exprs">exprs</link>,
52 <link linkend="scicos_block_graphics_pin">pin</link>,
53 <link linkend="scicos_block_graphics_pout">pout</link>,
54 <link linkend="scicos_block_graphics_pein">pein</link>,
55 <link linkend="scicos_block_graphics_peout">peout</link>,
56 <link linkend="scicos_block_graphics_gr_i">gr_i</link>,
57 <link linkend="scicos_block_graphics_id">id</link>,
58 <link linkend="scicos_block_graphics_in_implicit">in_implicit</link>,
59 <link linkend="scicos_block_graphics_out_implicit">out_implicit</link>,
60 <link linkend="scicos_block_graphics_in_style">in_style</link>,
61 <link linkend="scicos_block_graphics_out_style">out_style</link>,
62 <link linkend="scicos_block_graphics_in_label">in_label</link>,
63 <link linkend="scicos_block_graphics_out_label">out_label</link> and
64 <link linkend="scicos_block_graphics_style">style</link>.
66 <refsect2 id="scicos_block_graphics_orig">
69 Vector <code>[xo,yo]</code>, where <varname>xo</varname> is the x coordinate of the block origin and <varname>yo</varname> is the y coordinate of the block origin.
72 <code>[xo,yo]</code> is the coordinate of down-left point of
79 Type : row vector of real.
82 <refsect2 id="scicos_block_graphics_sz">
85 Vector <code>[w,h]</code>, where w is the block width and h the block height.
91 Type : row vector of real.
94 <refsect2 id="scicos_block_graphics_flip">
96 <para> Set the block orientation. If true the input ports are on the left of the box and output ports are on the right.</para>
97 <para> If false the input ports are on the right of the box and output ports are on the left.</para>
105 <refsect2 id="scicos_block_graphics_theta">
107 <para> Set the angle of the Scicos object.</para>
108 <para> This value is in degree and is included in [-360,360].</para>
116 <refsect2 id="scicos_block_graphics_exprs">
118 <para>Strings including formal expressions used in the dialog box of the block.</para>
120 Size : number of formal expressions.
123 Type : column vector of strings.
126 <refsect2 id="scicos_block_graphics_pin">
129 Vector. <code>pin(i)</code> is the number of the link connected to the <code>i</code>th regular input port (counting from one), or <code>0</code> if this port is not connected.
132 Size : number of regular input ports.
135 Type : column vector of integers.
138 <refsect2 id="scicos_block_graphics_pout">
141 Vector. <code>pout(i)</code> is the number of the link connected to the <code>i</code>th regular output port (counting from one), or <code>0</code> if this port is not connected.
144 Size : number of regular output ports.
147 Type : column vector of integers.
150 <refsect2 id="scicos_block_graphics_pein">
153 Vector. <code>pein(i)</code> is the number of the link connected to the <code>i</code>th event input port (counting from one), or <code>0</code> if this port is not connected.
156 Size : number of events input ports.
159 Type : column vector of integers.
162 <refsect2 id="scicos_block_graphics_peout">
165 Vector. <code>peout(i)</code> is the number of the link connected to the ith event output port (counting from one), or <code>0</code> if this port is not connected.
168 Size : number of events output ports.
171 Type : column vector of integers.
174 <refsect2 id="scicos_block_graphics_gr_i">
176 <para>Not used</para>
181 Type : column vector of strings.
184 <refsect2 id="scicos_block_graphics_id">
186 <para> A string to ease the identification of the block.</para>
194 <refsect2 id="scicos_block_graphics_in_implicit">
195 <title>in_implicit</title>
197 A vector of strings including <code>'E'</code> or <code>'I'</code>.
200 <code>'E'</code> and <code>'I'</code> stand respectively for explicit and implicit port, and this vector indicates the nature of each input port. For regular blocks (not implicit), this vector is empty or contains only <code>"E"</code>.
203 Size : nul or number of regular input ports.
206 Type : column vector of strings.
209 <refsect2 id="scicos_block_graphics_out_implicit">
210 <title>out_implicit</title>
212 A vector of strings including <code>'E'</code> or <code>'I'</code>.
215 <code>'E'</code> and <code>'I'</code> stand respectively for explicit and implicit port, and this vector indicates the nature of each output port. For regular blocks (not implicit), this vector is empty or contains only <code>"E"</code>.
218 Size : nul or number of regular output ports.
221 Type : column vector of strings.
224 <refsect2 id="scicos_block_graphics_in_style">
225 <title>in_style</title>
226 <para>A vector of strings including JGraphX key values style properties.</para>
228 These style can be used to place text or to change port aspect (eg. round, green port). This is set in semicolon separated key=value set. For example <literal>"shape=ellipse;fillColor=green"</literal> for a round and green port
231 Size : nul or number of regular input ports.
234 Type : column vector of strings.
237 <refsect2 id="scicos_block_graphics_out_style">
238 <title>out_style</title>
239 <para> A vector of strings including JGraphX key values style properties.</para>
241 These style can be used to place text or to change port aspect (eg. round, green port). This is set in semicolon separated key=value set. For example <literal>"shape=ellipse;fillColor=green"</literal> for a round and green port
244 Size : nul or number of regular output ports.
247 Type : column vector of strings.
250 <refsect2 id="scicos_block_graphics_in_label">
251 <title>in_label</title>
252 <para> A vector of strings including ports labels.</para>
253 <para>These labels can be used to update text or to trace information.</para>
255 Size : nul or number of regular input ports.
258 Type : column vector of strings.
261 <refsect2 id="scicos_block_graphics_out_label">
262 <title>out_label</title>
263 <para> A vector of strings including ports labels.</para>
264 <para>These labels can be used to update text or to trace information.</para>
266 Size : nul or number of regular output ports.
269 Type : column vector of strings.
272 <refsect2 id="scicos_block_graphics_style">
274 <para> A string.</para>
275 <para> A vector of strings including JGraphX key values style properties.</para>
277 These style can be used to place text or to change block aspect (eg. shape, image, text). This is set in semicolon separated key=value set. For example <literal>"shape=ellipse;fillColor=red"</literal> for a round and green block