File: grayplot_properties.xml

package info (click to toggle)
scilab 5.2.2-9
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 334,832 kB
  • ctags: 52,586
  • sloc: xml: 526,945; ansic: 223,590; fortran: 163,080; java: 56,934; cpp: 33,840; tcl: 27,936; sh: 20,397; makefile: 9,908; ml: 9,451; perl: 1,323; cs: 614; lisp: 30
file content (220 lines) | stat: -rw-r--r-- 7,385 bytes parent folder | download
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
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) INRIA - Djalel Abdemouche
 * 
 * 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-en.txt
 *
 -->
<refentry version="5.0-subset Scilab" xml:id="grayplot_properties"
          xml:lang="en" xmlns="http://docbook.org/ns/docbook"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:svg="http://www.w3.org/2000/svg"
          xmlns:ns4="http://www.w3.org/1999/xhtml"
          xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:db="http://docbook.org/ns/docbook">
  <info>
    <pubdate>$LastChangedDate$</pubdate>
  </info>

  <refnamediv>
    <refname>grayplot_properties</refname>

    <refpurpose>description of the grayplot entities properties</refpurpose>
  </refnamediv>

  <refsection>
    <title>Descrio</title>

    <para>A entidade Grayplot  uma folha na hierarquia de entidades grficas.
    Representa esboos 2d de superfcies utilizando cores e imagens (ver
    <literal>grayplot</literal>, <literal>Sgrayplot</literal>,
    <literal>fgrayplot</literal> e <literal>Sfgrayplot</literal>).</para>

    <variablelist>
      <varlistentry>
        <term>parent:</term>

        <listitem>
          <para>esta propriedade contm o manipulador para a raiz. A raiz de
          uma entidade grayplot deve ser do tipo
          <literal>"Axes"</literal>.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>children:</term>

        <listitem>
          <para> esta propriedade contm um vetor com os galhos do
          manipulador. Contudo, manipuladores grayplot no possuem galhos
          correntemente. </para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>visible:</term>

        <listitem>
          <para>este campo contm o valor da propriedade
          <literal>visible</literal> para a entidade. Pode ser <literal>"on"
          </literal> ou <literal>"off"</literal> . Por padro, o grayplot 
          visvel, a propriedade  <literal>"on"</literal>. Se
          <literal>"off"</literal> o grayplot no  exibido na tela.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>data:</term>

        <listitem>
          <para>este campo define uma estrutura de dados do tipo
          <literal>tlist</literal> de tipo <literal>"grayplotdata"</literal>
          composto de uma linha e ndices de colunas de cada elemento: as
          coordenadas do grid x e y esto contidas respectivamente em
          <literal>data.x</literal> e <literal>data.y</literal>. O campo
          complementar chamado <literal>data.z</literal>  o valor da
          superfcie no ponto <literal>(x(i),y(j))</literal> (modo escalado)
          ou o valor centrado da superfcie definido entre dois pontos
          consecutivos <literal>x(i)</literal> e <literal>y(j)</literal> (modo
          direto). Se <literal>data_mapping</literal> (ver abaixo) for
          ajustado para <literal>"scaled"</literal>, todo o dado z  utilizado
          para realizar uma interpolao de cores, enquanto que, se o valor de
          <literal>data_mapping</literal> for <literal>"direct"</literal>, a
          ltima linha e coluna dos ndices de dados z so ignoradas e a cor 
          determinada diretamente no mapa de cores atravs dos ndices da
          submatriz <literal>data.z(1:$-1,1:$-1)</literal>.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>data_mapping:</term>

        <listitem>
          <para>por padro, o valor desta propriedade 
          <literal>"scaled"</literal> : os ndices das cores utilizadas para
          colorir so proporcionais ao valor das coordenadas
          <literal>z</literal>. Em outro caso, a propriedade possui valor
          <literal>"direct"</literal> onde o esboo  um grayplot e os ndices
          das cores de pintura so fornecidos pelos dados (ver acima). </para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>clip_state:</term>

        <listitem>
          <para>este campo contm o valor da propriedade
          <literal>clip_state</literal> para o grayplot. o valor de clip_state
          pode ser :</para>

          <itemizedlist>
            <listitem>
              <para><literal>"off"</literal> significa que o grayplot no 
              recortado. </para>
            </listitem>

            <listitem>
              <para><literal>"clipgrf"</literal> significa que o grayplot 
              recortado fora da caixa dos eixos. </para>
            </listitem>

            <listitem>
              <para><literal>"on"</literal> significa que o grayplot 
              recortado fora do retngulo dado pela propriedade
              clip_box.</para>
            </listitem>
          </itemizedlist>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>clip_box:</term>

        <listitem>
          <para>este campo determina a propriedade <literal>clip_box</literal>
          . Por padro seu valor  uma matriz vazia se a propriedade
          clip_state  "off". Em outros casos, o vetor
          <literal>[x,y,w,h]</literal> (ponto superior esquerdo, largura,
          altura) define as pores do retngulo a ser exibido, contudo o
          valor da propriedade <literal>clip_state</literal> ser
          alterado.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>user_data:</term>

        <listitem>
          <para>este campo pode ser utilizado para armazenar qualquer varivel
          Scilab na estrutura de dados da entidade grayplot e
          recuper-la.</para>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsection>

  <refsection>
    <title>Exemplos</title>

    <programlisting role="example"><![CDATA[ 
m=5;n=5;
M=round(32*rand(m,n));
grayplot(1:m,1:n,M)

a=get("current_axes");
a.data_bounds=  [-1,-1;7,7]
h=a.children

h.data_mapping="direct";
   
// um esboo 2D de uma matriz utilizando cores
xbasc()
a=get("current_axes");
a.data_bounds=  [0,0;4,4];
  
b=5*ones(11,11); b(2:10,2:10)=4; b(5:7,5:7)=2;
Matplot1(b,[1,1,3,3]);
  
h=a.children
for i=1:7
  xclick(); // um click ajusta os dados do Matplot
  h.data=h.data+4;
end
 ]]></programlisting>
  </refsection>

  <refsection>
    <title>Ver Tambm</title>

    <simplelist type="inline">
      <member><link linkend="set">set</link></member>

      <member><link linkend="get">get</link></member>

      <member><link linkend="delete">delete</link></member>

      <member><link linkend="grayplot">grayplot</link></member>

      <member><link linkend="Matplot">Matplot</link></member>

      <member><link linkend="Matplot1">Matplot1</link></member>

      <member><link
      linkend="graphics_entities">graphics_entities</link></member>

      <member><link
      linkend="Matplot_properties">Matplot_properties</link></member>
    </simplelist>
  </refsection>

  <refsection>
    <title>Autores</title>

    <para>Djalel ABDEMOUCHE &amp; F.Leray</para>
  </refsection>
</refentry>