summaryrefslogtreecommitdiff
path: root/libs/assimp/test/models/X3D/ComputerKeyboard.x3d
blob: 2d6c0707f5e806052cf25566fb0f942b22fac0c2 (plain)
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
221
222
223
224
225
226
227
228
229
230
231
232
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.0.xsd'>
  <head>
    <meta content='ComputerKeyboard.x3d' name='title'/>
    <meta content='A computer keyboard for the control panel in the CVN bridge control. The buttons animated to be pushed in when touched.' name='description'/>
    <meta content='Foo Khee Loon' name='creator'/>
    <meta content='17 February 2001' name='created'/>
    <meta content='13 January 2014' name='modified'/>
    <meta content='http://www.web3d.org/x3d/content/examples/Basic/StudentProjects/ComputerKeyboard.x3d' name='identifier'/>
    <meta content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit' name='generator'/>
    <meta content='../license.html' name='license'/>
  </head>
  <Scene>
    <Viewpoint description='Front View' fieldOfView='1' orientation='0 1 0 1.571' position='1 0.2 0.5'/>
    <Transform rotation='1 0 0 1.571'>
      <Shape>
        <Appearance>
          <Material diffuseColor='0.8 0.8 0.7'/>
        </Appearance>
        <Extrusion ccw='false' creaseAngle='1.75' crossSection='0 0 0.025 -0.05 0.05 -0.07 0.075 -0.08 0.1 -0.09 0.35 -0.04 0.4 -0.03 0.45 -0.0275 0.45 0 0.045 -0.0275 0.045 0 0 0' spine='0 0 0 0 0.98 0'/>
      </Shape>
      <Transform DEF='EscapeButton' rotation='1 0 0 -1.571' translation='0.1 0.95 -0.065'>
        <Shape>
          <Appearance>
            <Material diffuseColor='0.7 0.7 0.8'/>
          </Appearance>
          <Extrusion creaseAngle='2' crossSection='-0.02 -0.02 -0.02 0.02 0.02 0.02 0.02 -0.02 -0.02 -0.02' scale='1 1 1.2 1.2 0.7 0.7' spine='0 0 0 0 0.02 0 0 0.04 0'/>
        </Shape>
        <TouchSensor DEF='TouchButton' description='touch keys to animate'/>
        <TimeSensor DEF='push' stopTime='0.5'/>
        <PositionInterpolator DEF='Move' key='0 0.5 1' keyValue='0.1 0.95 -0.065 0.1 0.95 -0.05 0.1 0.95 -0.065'/>
      </Transform>
      <!-- first row of the keyboard -->
      <Transform translation='0 -0.1 0'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0 -0.1467 0'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0 -0.193367 0'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0 -0.240033 0'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0 -0.340033 0'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0 -0.386700 0'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0 -0.43336700 0'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0 -0.4800 0'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0 -0.5800 0'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0 -0.626667 0'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0 -0.67333 0'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0 -0.72 0'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0 -0.82 0'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0 -0.8667 0'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0 -0.91333 0'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <!-- second row of key board -->
      <Transform translation='0.1 -0.001 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.048667 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.0963 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.144 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.19167666 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.23934 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.2871 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.33466 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.382333 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.43 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.477 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.525333 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.57 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.62066 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.66833 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.716 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.763666 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.811333 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.859 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform translation='0.1 -0.9066 0.015'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <!-- third row of key board -->
      <Group DEF='row'>
        <Transform translation='0.146667 -0.001 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.04866671 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.096331 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.144 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.191664 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.2393664 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.287 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.3346677 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.38236677 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.437 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.4776 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.525334776 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.57376 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.62057376 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.66832057376 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.716 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.7636 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.8113336 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.859 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
        <Transform translation='0.1467 -0.90667859 0.025'>
          <Transform USE='EscapeButton'/>
        </Transform>
      </Group>
      <!-- Fourth row of key board -->
      <Transform translation='0.04667 0 0.01'>
        <Group USE='row'/>
      </Transform>
      <!-- Fifth row of key board -->
      <Transform translation='0.093347 0 0.02'>
        <Group USE='row'/>
      </Transform>
      <!-- sixth row of key board -->
      <Transform scale='1 2 1' translation='0.286667 -1 0.055'>
        <Transform USE='EscapeButton'/>
      </Transform>
      <Transform DEF='space_bar' rotation='0 0 1 1.571' translation='0.3902677 0.5 -0.045'>
        <Transform rotation='1 0 0 1.571'>
          <Shape>
            <Appearance>
              <Material diffuseColor='0.7 0.7 0.8'/>
            </Appearance>
            <Extrusion creaseAngle='2' crossSection='-0.25 -0.02 -0.25 0.02 0.25 0.02 0.25 -0.02 -0.25 -0.02' scale='1 1 1.2 1.2 0.7 0.7' spine='0 0 0 0 0.02 0 0 0.04 0'/>
          </Shape>
        </Transform>
      </Transform>
      <Transform USE='EscapeButton'/>
    </Transform>
    <ROUTE fromField='touchTime' fromNode='TouchButton' toField='set_startTime' toNode='push'/>
    <ROUTE fromField='fraction_changed' fromNode='push' toField='set_fraction' toNode='Move'/>
    <ROUTE fromField='value_changed' fromNode='Move' toField='set_translation' toNode='EscapeButton'/>
  </Scene>
</X3D>