1 | <?xml version="1.0"?> |
---|
2 | <run> |
---|
3 | <tool> |
---|
4 | <title>drawing</title> |
---|
5 | <about>Example of a Rappture <drawing> object. |
---|
6 | |
---|
7 | Strings are bits of text--single line or multiple lines. |
---|
8 | The description appears in a tooltip when you hover over the string control with your mouse. |
---|
9 | |
---|
10 | When you click the Simulate button, the input strings will be used to generate output strings. |
---|
11 | </about> |
---|
12 | <command> |
---|
13 | tclsh @tool/drawing.tcl @driver |
---|
14 | </command> |
---|
15 | <layout>wizard</layout> |
---|
16 | </tool> |
---|
17 | <input> |
---|
18 | <boolean id="trapezoid_top_enable"> |
---|
19 | <about> <label>Enable trapezoid top</label> </about> |
---|
20 | <default>off</default> |
---|
21 | </boolean> |
---|
22 | <drawing> |
---|
23 | <about> |
---|
24 | <label>Title</label> |
---|
25 | <description>This text will be used as the title for all plots.</description> |
---|
26 | </about> |
---|
27 | <background> |
---|
28 | <color>#FFFCDA</color> |
---|
29 | <coordinates>-.1 0 1.1 1</coordinates> |
---|
30 | <width>800</width> |
---|
31 | <height>500</height> |
---|
32 | </background> |
---|
33 | <substitutions> |
---|
34 | <variable> |
---|
35 | <name>string</name> |
---|
36 | <path>input.string(indeck)</path> |
---|
37 | </variable> |
---|
38 | <variable> |
---|
39 | <name>feature_height</name> |
---|
40 | <path>input.number(feature_height)</path> |
---|
41 | </variable> |
---|
42 | <variable> |
---|
43 | <name>feature_length</name> |
---|
44 | <path>input.number(feature_length)</path> |
---|
45 | </variable> |
---|
46 | <variable> |
---|
47 | <name>trapezoid_top</name> |
---|
48 | <path>input.number(trapezoid_top)</path> |
---|
49 | </variable> |
---|
50 | <variable> |
---|
51 | <name>trapezoid_top_color</name> |
---|
52 | <path>input.boolean(trapezoid_top_enable)</path> |
---|
53 | <map><from>no</from><to>gray</to></map> |
---|
54 | <map><from>yes</from><to>black</to></map> |
---|
55 | </variable> |
---|
56 | <variable> |
---|
57 | <name>substrate_length</name> |
---|
58 | <path>input.number(substrate_length)</path> |
---|
59 | </variable> |
---|
60 | <variable> |
---|
61 | <name>analysis</name> |
---|
62 | <path>input.choice(analysis)</path> |
---|
63 | </variable> |
---|
64 | </substitutions> |
---|
65 | <components> |
---|
66 | <grid> |
---|
67 | <xcoords>0 .1 .2 .3 .4 .5 .6 .7 .8 .9 1</xcoords> |
---|
68 | <ycoords>.2 .3 .4 .5 .6 .7</ycoords> |
---|
69 | <color>grey70</color> |
---|
70 | <linewidth>1</linewidth> |
---|
71 | <dash>4 2</dash> |
---|
72 | </grid> |
---|
73 | <line id="feature_length"> |
---|
74 | <coords>.25 .72 .75 .72</coords> |
---|
75 | <color>black</color> |
---|
76 | <linewidth>2</linewidth> |
---|
77 | <arrow>both</arrow> |
---|
78 | </line> |
---|
79 | <text id="feature_length"> |
---|
80 | <coords>.5 .73</coords> |
---|
81 | <color>black</color> |
---|
82 | <text>Feature Length = ${feature_length}</text> |
---|
83 | <font>Arial 11</font> |
---|
84 | <anchor>n</anchor> |
---|
85 | <hotspot>inline</hotspot> |
---|
86 | </text> |
---|
87 | <line id="feature_height"> |
---|
88 | <coords>.76 .4 .76 .7</coords> |
---|
89 | <color>black</color> |
---|
90 | <linewidth>2</linewidth> |
---|
91 | <arrow>both</arrow> |
---|
92 | </line> |
---|
93 | <text id="feature_height"> |
---|
94 | <coords>.77 .48</coords> |
---|
95 | <color>black</color> |
---|
96 | <text>Feature |
---|
97 | Height = ${feature_height}</text> |
---|
98 | <font>Arial 11</font> |
---|
99 | <anchor>nw</anchor> |
---|
100 | </text> |
---|
101 | <line id="substrate_length"> |
---|
102 | <coords>0 .8 1 .8</coords> |
---|
103 | <color>black</color> |
---|
104 | <linewidth>2</linewidth> |
---|
105 | <arrow>both</arrow> |
---|
106 | </line> |
---|
107 | <text id="substrate_length"> |
---|
108 | <coords>.5 .81</coords> |
---|
109 | <color>black</color> |
---|
110 | <text>Substrate Length = ${substrate_length}</text> |
---|
111 | <font>Arial 11</font> |
---|
112 | <hotspot>inline</hotspot> |
---|
113 | <anchor>n</anchor> |
---|
114 | </text> |
---|
115 | <line id="trapezoid_top"> |
---|
116 | <coords>.35 .38 .65 .38</coords> |
---|
117 | <color>${trapezoid_top_color}</color> |
---|
118 | <linewidth>2</linewidth> |
---|
119 | <arrow>both</arrow> |
---|
120 | </line> |
---|
121 | <text id="trapezoid_top"> |
---|
122 | <coords>.5 .35</coords> |
---|
123 | <color>${trapezoid_top_color}</color> |
---|
124 | <text>Length of Trapezoid Top = ${trapezoid_top}</text> |
---|
125 | <font>Arial 11</font> |
---|
126 | <anchor>s</anchor> |
---|
127 | <hotspot>inline</hotspot> |
---|
128 | </text> |
---|
129 | <line id="polyline"> |
---|
130 | <coords>0 .7 .25 .7 .35 .4 .65 .4 .75 .7 1 .7</coords> |
---|
131 | <color>red</color> |
---|
132 | <linewidth>2</linewidth> |
---|
133 | </line> |
---|
134 | <rectangle id="border"> |
---|
135 | <coords>-0.05 0.05 0.3 0.35</coords> |
---|
136 | <outline>black</outline> |
---|
137 | <linewidth>5</linewidth> |
---|
138 | </rectangle> |
---|
139 | <picture id="analysis"> |
---|
140 | <coords>-0.05 0.05 0.3 0.35</coords> |
---|
141 | <contents>file://images/${analysis}_F-d.png</contents> |
---|
142 | </picture> |
---|
143 | <text id="analysis"> |
---|
144 | <coords>.125 .36</coords> |
---|
145 | <color>black</color> |
---|
146 | <text>${analysis}</text> |
---|
147 | <font>Arial 11</font> |
---|
148 | <anchor>n</anchor> |
---|
149 | </text> |
---|
150 | <text id="string"> |
---|
151 | <coords>-.03 .85</coords> |
---|
152 | <color>black</color> |
---|
153 | <text>${string}</text> |
---|
154 | <font>Arial 11</font> |
---|
155 | <anchor>nw</anchor> |
---|
156 | <hotspot>inline</hotspot> |
---|
157 | </text> |
---|
158 | <text> |
---|
159 | <coords>.9 .3</coords> |
---|
160 | <text>Info</text> |
---|
161 | <anchor>e</anchor> |
---|
162 | </text> |
---|
163 | <hotspot> |
---|
164 | <coords>.91 .3</coords> |
---|
165 | <controls>input.string(title)</controls> |
---|
166 | <controls>input.boolean(cmtcntl)</controls> |
---|
167 | <controls>input.string(comments)</controls> |
---|
168 | </hotspot> |
---|
169 | </components> |
---|
170 | </drawing> |
---|
171 | <number id="feature_height"> |
---|
172 | <about> |
---|
173 | <label>Feature Height</label> |
---|
174 | <description>Height of feature.</description> |
---|
175 | </about> |
---|
176 | <units>nm</units> |
---|
177 | <min>10</min> |
---|
178 | <max>70</max> |
---|
179 | <default>30</default> |
---|
180 | </number> |
---|
181 | <number id="feature_length"> |
---|
182 | <about> |
---|
183 | <label>Feature Length</label> |
---|
184 | <description>Length of feature.</description> |
---|
185 | </about> |
---|
186 | <units>nm</units> |
---|
187 | <min>10</min> |
---|
188 | <max>100</max> |
---|
189 | <default>50</default> |
---|
190 | </number> |
---|
191 | <number id="substrate_length"> |
---|
192 | <about> |
---|
193 | <label>Substrate Length</label> |
---|
194 | <description>Length of substrate.</description> |
---|
195 | </about> |
---|
196 | <units>nm</units> |
---|
197 | <min>10</min> |
---|
198 | <max>500</max> |
---|
199 | <default>100</default> |
---|
200 | </number> |
---|
201 | <number id="trapezoid_top"> |
---|
202 | <about> |
---|
203 | <label>Trapezoid Top</label> |
---|
204 | <description>Width of the Trapezoid Top.</description> |
---|
205 | <enable>input.boolean(trapezoid_top_enable)</enable> |
---|
206 | </about> |
---|
207 | <units>nm</units> |
---|
208 | <min>10</min> |
---|
209 | <max>70</max> |
---|
210 | <default>30</default> |
---|
211 | </number> |
---|
212 | <choice id="analysis"> |
---|
213 | <about> |
---|
214 | <label>Type of Analysis</label> |
---|
215 | <description>Determines the type of analysis to perform.</description> |
---|
216 | </about> |
---|
217 | <option> |
---|
218 | <about> |
---|
219 | <label>Hertz</label> |
---|
220 | <description>Hertz analysis</description> |
---|
221 | </about> |
---|
222 | </option> |
---|
223 | <option> |
---|
224 | <about> |
---|
225 | <label>LinCon</label> |
---|
226 | <description>LinCon analysis</description> |
---|
227 | </about> |
---|
228 | </option> |
---|
229 | <option> |
---|
230 | <about> |
---|
231 | <label>Chadwick</label> |
---|
232 | <description>Chadwick analysis</description> |
---|
233 | </about> |
---|
234 | </option> |
---|
235 | <option> |
---|
236 | <about> |
---|
237 | <label>DMT</label> |
---|
238 | <description>DMT analysis</description> |
---|
239 | </about> |
---|
240 | </option> |
---|
241 | <default>Chadwick</default> |
---|
242 | </choice> |
---|
243 | <string id="indeck"> |
---|
244 | <about> |
---|
245 | <label>Input</label> |
---|
246 | <description>This is the control file for the program.</description> |
---|
247 | <hints>EXAMPLE: .print ac vm(11) mag(i(vcc))</hints> |
---|
248 | </about> |
---|
249 | <size>40x10</size> |
---|
250 | <default>Enter your SPICE commands |
---|
251 | in this area. Right-click |
---|
252 | for a menu of editing options.</default> |
---|
253 | </string> |
---|
254 | <string id="title"> |
---|
255 | <about><label>Title</label></about> |
---|
256 | </string> |
---|
257 | <boolean id="cmtcntl"> |
---|
258 | <about><label>Comments</label></about> |
---|
259 | <default>on</default> |
---|
260 | </boolean> |
---|
261 | <string id="comments"> |
---|
262 | <about> |
---|
263 | <label>Info</label> |
---|
264 | <enable>input.boolean(cmtcntl)</enable> |
---|
265 | </about> |
---|
266 | <size>40x3</size> |
---|
267 | </string> |
---|
268 | </input> |
---|
269 | </run> |
---|