Debian Codegraph @

gui/dialogs/als-filters.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <PropertyList>
4
5 <name>als-filters</name>
6 <layout>vbox</layout>
7 <padding>20</padding>
8
9 <group>
10 <layout>hbox</layout>
11
12 <text>
13 <label>ALS Filter Settings (experimental)</label>
14 </text>
15
16 <empty>
17 <stretch>1</stretch>
18 </empty>
19
20 <button>
21 <legend>X</legend>
22 <key>Esc</key>
23 <pref-width>20</pref-width>
24 <pref-height>20</pref-height>
25 <binding>
26 <command>dialog-close</command>
27 </binding>
28 </button>
29
30 </group>
31
32 <hrule/>
33
34 <!--<text>
35 <label>NOTE: To make full use of these filters</label>
36 <color>
37 <red>1.0</red>
38 <green>0.6</green>
39 <blue>0.3</blue>
40 </color>
41 </text>
42
43 <text>
44 <label>you should use maximum shader settings</label>
45 <color>
46 <red>1.0</red>
47 <green>0.6</green>
48 <blue>0.3</blue>
49 </color>
50 </text>
51
52 <hrule/>-->
53
54 <group>
55 <layout>vbox</layout>
56
57 <checkbox>
58 <halign>left</halign>
59 <enable>
60 <property>/sim/rendering/shaders/skydome</property>
61 </enable>
62 <label>Enable filters</label>
63 <name>master</name>
64 <property>/sim/rendering/als-filters/use-filtering</property>
65 <binding>
66 <command>property-assign</command>
67 <property>/sim/rendering/als-filters/use-night-vision</property>
68 <value type="bool">false</value>
69 </binding>
70 <binding>
71 <command>property-assign</command>
72 <property>/sim/rendering/als-filters/use-IR-vision</property>
73 <value type="bool">false</value>
74 </binding>
75 <binding>
76 <command>dialog-apply</command>
77 <object-name>master</object-name>
78 </binding>
79 </checkbox>
80
81 <group>
82 <layout>hbox</layout>
83
84 <radio>
85 <halign>left</halign>
86 <label>Normal</label>
87 <live>true</live>
88 <property>/sim/rendering/als-filters/use-normal-filters</property>
89 <enable>
90 <property>/sim/rendering/shaders/skydome</property>
91 <property>/sim/rendering/als-filters/use-filtering</property>
92 </enable>
93 <binding>
94 <command>property-assign</command>
95 <property>/sim/rendering/als-filters/use-night-vision</property>
96 <value type="bool">false</value>
97 </binding>
98 <binding>
99 <command>property-assign</command>
100 <property>/sim/rendering/als-filters/use-IR-vision</property>
101 <value type="bool">false</value>
102 </binding>
103 <binding>
104 <command>property-assign</command>
105 <property>/sim/rendering/als-filters/use-normal-filters</property>
106 <value type="bool">true</value>
107 </binding>
108 </radio>
109
110
111 <radio>
112 <halign>left</halign>
113 <label>Night vision</label>
114 <live>true</live>
115 <property>/sim/rendering/als-filters/use-night-vision</property>
116 <enable>
117 <property>/sim/rendering/shaders/skydome</property>
118 <property>/sim/rendering/als-filters/use-filtering</property>
119 </enable>
120 <binding>
121 <command>property-assign</command>
122 <property>/sim/rendering/als-filters/use-night-vision</property>
123 <value type="bool">true</value>
124 </binding>
125 <binding>
126 <command>property-assign</command>
127 <property>/sim/rendering/als-filters/use-normal-filters</property>
128 <value type="bool">false</value>
129 </binding>
130 <binding>
131 <command>property-assign</command>
132 <property>/sim/rendering/als-filters/use-IR-vision</property>
133 <value type="bool">false</value>
134 </binding>
135 </radio>
136
137 <radio>
138 <halign>right</halign>
139 <label>Infrared vision</label>
140 <live>true</live>
141 <property>/sim/rendering/als-filters/use-IR-vision</property>
142 <enable>
143 <property>/sim/rendering/shaders/skydome</property>
144 <property>/sim/rendering/als-filters/use-filtering</property>
145 </enable>
146 <binding>
147 <command>property-assign</command>
148 <property>/sim/rendering/als-filters/use-IR-vision</property>
149 <value type="bool">true</value>
150 </binding>
151 <binding>
152 <command>property-assign</command>
153 <property>/sim/rendering/als-filters/use-night-vision</property>
154 <value type="bool">false</value>
155 </binding>
156 <binding>
157 <command>property-assign</command>
158 <property>/sim/rendering/als-filters/use-normal-filters</property>
159 <value type="bool">false</value>
160 </binding>
161 </radio>
162
163 </group>
164
165 <hrule/>
166
167 <group>
168 <layout>hbox</layout>
169
170 <text>
171 <halign>left</halign>
172 <label>Brightness</label>
173 <enable>
174 <and>
175 <property>/sim/rendering/shaders/skydome</property>
176 <property>/sim/rendering/als-filters/use-filtering</property>
177 </and>
178 </enable>
179 </text>
180
181 <group>
182 <layout>table</layout>
183
184 <slider>
185 <row>0</row>
186 <col>0</col>
187 <halign>right</halign>
188 <name>brightness-default</name>
189 <visible>
190 <and>
191 <not>
192 <property>/sim/rendering/als-filters/use-night-vision</property>
193 </not>
194 <not>
195 <property>/sim/rendering/als-filters/use-IR-vision</property>
196 </not>
197 </and>
198 </visible>
199 <enable>
200 <and>
201 <property>/sim/rendering/shaders/skydome</property>
202 <property>/sim/rendering/als-filters/use-filtering</property>
203 </and>
204 </enable>
205 <pref-width>250</pref-width>
206 <min>0.5</min>
207 <max>2</max>
208 <step>0.01</step>
209 <live>true</live>
210 <property>/sim/rendering/als-filters/brightness</property>
211 <binding>
212 <command>dialog-apply</command>
213 <object-name>brightness-default</object-name>
214 </binding>
215 </slider>
216
217 <slider>
218 <row>0</row>
219 <col>0</col>
220 <halign>right</halign>
221 <name>brightness-night</name>
222 <visible>
223 <property>/sim/rendering/als-filters/use-night-vision</property>
224 </visible>
225 <enable>
226 <and>
227 <property>/sim/rendering/shaders/skydome</property>
228 <property>/sim/rendering/als-filters/use-filtering</property>
229 </and>
230 </enable>
231 <pref-width>250</pref-width>
232 <min>0.5</min>
233 <max>5</max>
234 <step>0.01</step>
235 <live>true</live>
236 <property>/sim/rendering/als-filters/brightness</property>
237 <binding>
238 <command>dialog-apply</command>
239 <object-name>brightness-night</object-name>
240 </binding>
241 </slider>
242
243 <slider>
244 <row>0</row>
245 <col>0</col>
246 <halign>right</halign>
247 <name>brightness-IR</name>
248 <visible>
249 <property>/sim/rendering/als-filters/use-IR-vision</property>
250 </visible>
251 <enable>
252 <and>
253 <property>/sim/rendering/shaders/skydome</property>
254 <property>/sim/rendering/als-filters/use-filtering</property>
255 </and>
256 </enable>
257 <pref-width>250</pref-width>
258 <min>0.4</min>
259 <max>2</max>
260 <step>0.01</step>
261 <live>true</live>
262 <property>/sim/rendering/als-filters/brightness</property>
263 <binding>
264 <command>dialog-apply</command>
265 <object-name>brightness-IR</object-name>
266 </binding>
267 </slider>
268
269 </group>
270
271 </group>
272
273 <group>
274 <layout>hbox</layout>
275
276 <text>
277 <halign>left</halign>
278 <label>Gamma</label>
279 <enable>
280 <and>
281 <property>/sim/rendering/shaders/skydome</property>
282 <property>/sim/rendering/als-filters/use-filtering</property>
283 </and>
284 </enable>
285 </text>
286
287 <group>
288 <layout>table</layout>
289
290 <slider>
291 <row>0</row>
292 <col>0</col>
293 <halign>right</halign>
294 <name>gamma-default</name>
295 <visible>
296 <and>
297 <not>
298 <property>/sim/rendering/als-filters/use-night-vision</property>
299 </not>
300 <not>
301 <property>/sim/rendering/als-filters/use-IR-vision</property>
302 </not>
303 </and>
304 </visible>
305 <enable>
306 <and>
307 <property>/sim/rendering/shaders/skydome</property>
308 <property>/sim/rendering/als-filters/use-filtering</property>
309 </and>
310 </enable>
311 <pref-width>250</pref-width>
312 <min>0</min>
313 <max>0.8</max>
314 <step>0.01</step>
315 <live>true</live>
316 <property>/sim/rendering/als-filters/gamma</property>
317 <binding>
318 <command>dialog-apply</command>
319 <object-name>gamma-default</object-name>
320 </binding>
321 </slider>
322
323 <slider>
324 <row>0</row>
325 <col>0</col>
326 <halign>right</halign>
327 <name>gamma-night</name>
328 <visible>
329 <property>/sim/rendering/als-filters/use-night-vision</property>
330 </visible>
331 <enable>
332 <and>
333 <property>/sim/rendering/shaders/skydome</property>
334 <property>/sim/rendering/als-filters/use-filtering</property>
335 </and>
336 </enable>
337 <pref-width>250</pref-width>
338 <min>-0.5</min>
339 <max>0.5</max>
340 <step>0.01</step>
341 <live>true</live>
342 <property>/sim/rendering/als-filters/gamma</property>
343 <binding>
344 <command>dialog-apply</command>
345 <object-name>gamma-night</object-name>
346 </binding>
347 </slider>
348
349 <slider>
350 <row>0</row>
351 <col>0</col>
352 <halign>right</halign>
353 <name>gamma-IR</name>
354 <visible>
355 <property>/sim/rendering/als-filters/use-IR-vision</property>
356 </visible>
357 <enable>
358 <and>
359 <property>/sim/rendering/shaders/skydome</property>
360 <property>/sim/rendering/als-filters/use-filtering</property>
361 </and>
362 </enable>
363 <pref-width>250</pref-width>
364 <min>0</min>
365 <max>1</max>
366 <step>0.01</step>
367 <live>true</live>
368 <property>/sim/rendering/als-filters/gamma</property>
369 <binding>
370 <command>dialog-apply</command>
371 <object-name>gamma-IR</object-name>
372 </binding>
373 </slider>
374
375 </group>
376
377 </group>
378
379
380 </group>
381
382 <hrule/>
383
384 <!--<text>
385 <label>To get reasonable results in night vision you have to adjust </label>
386 </text>
387
388 <text>
389 <label>brightness and gamma dependent on the current scene lighting</label>
390 </text>
391
392 <text>
393 <label>(Time of day, moonlight, etc.)</label>
394 </text>
395
396 <hrule/>-->
397
398 <group>
399 <layout>hbox</layout>
400
401 <button>
402 <legend>Reset filters</legend>
403 <enable>
404 <and>
405 <property>/sim/rendering/shaders/skydome</property>
406 <property>/sim/rendering/als-filters/use-filtering</property>
407 </and>
408 </enable>
409 <binding>
410 <command>property-assign</command>
411 <property>sim/rendering/als-filters/brightness</property>
412 <value type="float">1.0</value>
413 </binding>
414 <binding>
415 <command>property-assign</command>
416 <property>sim/rendering/als-filters/gamma</property>
417 <value type="float">0.0</value>
418 </binding>
419 </button>
420
421 <button>
422 <legend>Close</legend>
423 <default>true</default>
424 <key>Esc</key>
425 <binding>
426 <command>dialog-close</command>
427 </binding>
428 </button>
429 </group>
430
431 </PropertyList>