Debian Codegraph @

Aircraft/c172p/Systems/views.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4 Copyright (c) 2015 onox
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -->
19
20 <PropertyList>
21
22 <logic>
23 <name>View Walker Enabled</name>
24 <input>
25 <property>/sim/walker/outside</property>
26 </input>
27 <output>
28 <property>/sim/view[110]/enabled</property>
29 </output>
30 <output>
31 <property>/sim/view[111]/enabled</property>
32 </output>
33 </logic>
34
35 <!-- ================================================================== -->
36 <!-- Scroll Wheel Zooming -->
37 <!-- ================================================================== -->
38
39 <logic>
40 <name>View Zoom Enabled</name>
41 <input>
42 <and>
43 <equals>
44 <property>/sim/current-view/type</property>
45 <value>lookat</value>
46 </equals>
47 <not-equals>
48 <property>/sim/current-view/name</property>
49 <value>Tower View</value>
50 </not-equals>
51 <not-equals>
52 <property>/sim/current-view/name</property>
53 <value>Fly-By View</value>
54 </not-equals>
55 <not-equals>
56 <property>/sim/current-view/name</property>
57 <value>Chase View</value>
58 </not-equals>
59 <not-equals>
60 <property>/sim/current-view/name</property>
61 <value>Chase View Without Yaw</value>
62 </not-equals>
63 <not-equals>
64 <property>/sim/current-view/name</property>
65 <value>Walk View</value>
66 </not-equals>
67 </and>
68 </input>
69 <output>
70 <property>/sim/current-view/can-change-z-offset</property>
71 </output>
72 </logic>
73
74 <filter>
75 <name>View Zoom Decrease Step</name>
76 <type>gain</type>
77 <input>
78 <condition>
79 <less-than-equals>
80 <property>/sim/current-view/z-offset-m</property>
81 <value>-50.0</value>
82 </less-than-equals>
83 </condition>
84 <value>-10.0</value>
85 </input>
86 <input>
87 <condition>
88 <less-than-equals>
89 <property>/sim/current-view/z-offset-m</property>
90 <value>-15.0</value>
91 </less-than-equals>
92 </condition>
93 <value>-5.0</value>
94 </input>
95 <input>
96 <value>-2.0</value>
97 </input>
98 <output>
99 <property>/sim/current-view/z-offset-dec-step</property>
100 </output>
101 </filter>
102
103 <filter>
104 <name>View Zoom Increase Step</name>
105 <type>gain</type>
106 <input>
107 <condition>
108 <less-than>
109 <property>/sim/current-view/z-offset-m</property>
110 <value>-50.0</value>
111 </less-than>
112 </condition>
113 <value>10.0</value>
114 </input>
115 <input>
116 <condition>
117 <less-than>
118 <property>/sim/current-view/z-offset-m</property>
119 <value>-15.0</value>
120 </less-than>
121 </condition>
122 <value>5.0</value>
123 </input>
124 <input>
125 <value>2.0</value>
126 </input>
127 <output>
128 <property>/sim/current-view/z-offset-inc-step</property>
129 </output>
130 </filter>
131
132 </PropertyList>