~holger-seelig/cobweb.js/trunk

« back to all changes in this revision

Viewing changes to cobweb.js/tests/Components/PointingDeviceSensor/PlaneSensor.x3d

  • Committer: Holger Seelig
  • Date: 2017-08-22 04:53:24 UTC
  • Revision ID: holger.seelig@yahoo.de-20170822045324-4of4xxgt79669gbt
Switched to npm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd">
3
 
<X3D profile='Full' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.3.xsd'>
4
 
  <head>
5
 
    <meta name='comment' content='World of Titania'/>
6
 
    <meta name='created' content='Fri, 10 Apr 2015 06:06:50 GMT'/>
7
 
    <meta name='creator' content='Holger Seelig'/>
8
 
    <meta name='generator' content='Titania V0.7.7, http://titania.create3000.de'/>
9
 
    <meta name='modified' content='Fri, 10 Apr 2015 06:06:50 GMT'/>
10
 
    <meta name='title' content='PlaneSensor'/>
11
 
  </head>
12
 
  <Scene>
13
 
    <Transform
14
 
        translation='3.65468 0.0348776 2.6975'
15
 
        rotation='-0.57735 0.57735 0.577351 2.09439'
16
 
        scale='26.825 26.8249 26.825'
17
 
        scaleOrientation='0.025734 0.998112 0.0557681 0.774604'>
18
 
      <Viewpoint
19
 
          description='Front'
20
 
          position='0.00763417 1.06064 5.59705'
21
 
          centerOfRotation='0.00763417 1.06064 0'/>
22
 
      <Viewpoint
23
 
          description='Back'
24
 
          position='0 0 -10'
25
 
          orientation='0 1 0 3.14159'/>
26
 
      <Viewpoint
27
 
          description='Left'
28
 
          position='-10 0 0'
29
 
          orientation='-0 -1 -0 1.5708'/>
30
 
      <Viewpoint
31
 
          description='Right'
32
 
          position='10 0 0'
33
 
          orientation='0 1 0 1.5708'/>
34
 
      <PlaneSensor DEF='Touch1'
35
 
          axisRotation='0 0 1 0.78'
36
 
          maxPosition='2 2'/>
37
 
      <Transform DEF='Button1'
38
 
          scaleOrientation='-0.357407 0.862856 -0.357407 4.51948'>
39
 
        <Transform DEF='Shape1'>
40
 
          <Transform
41
 
              translation='0 1 0'>
42
 
            <Shape>
43
 
              <Text
44
 
                  string='"1"'>
45
 
                <FontStyle
46
 
                    justify='"MIDDLE"'/>
47
 
              </Text>
48
 
            </Shape>
49
 
          </Transform>
50
 
          <Transform DEF='Cube'
51
 
              rotation='0 0 1 0.78'
52
 
              scale='0.5 0.5 0.5'>
53
 
            <Shape>
54
 
              <IndexedFaceSet
55
 
                  solid='false'
56
 
                  colorPerVertex='false'
57
 
                  colorIndex='0, 1, 2, 3, 4, 5'
58
 
                  texCoordIndex='0, 1, 3, 2, -1, 0, 1, 3, 2, -1, 0, 1, 3, 2, -1, 0, 1, 3, 2, -1, 0, 1, 3, 2, -1, 0, 1, 3, 2, -1'
59
 
                  coordIndex='0, 1, 3, 2, -1, 4, 5, 7, 6, -1, 6, 7, 1, 0, -1, 2, 3, 5, 4, -1, 6, 0, 2, 4, -1, 1, 7, 5, 3, -1'>
60
 
                <Color
61
 
                    color='1 0 0, 0 1 0, 0 0 1, 1 1 0, 0 1 1, 1 0 1'/>
62
 
                <TextureCoordinate
63
 
                    point='0 1, 0 0, 1 1, 1 0'/>
64
 
                <Coordinate
65
 
                    point='-1 1 1, -1 -1 1, 1 1 1, 1 -1 1, 1 1 -1, 1 -1 -1, -1 1 -1, -1 -1 -1'/>
66
 
              </IndexedFaceSet>
67
 
            </Shape>
68
 
          </Transform>
69
 
        </Transform>
70
 
      </Transform>
71
 
      <Transform DEF='BBox'
72
 
          translation='0 -1.49012e-08 0'
73
 
          rotation='0 0 1 0.78'
74
 
          scale='2 2 1'
75
 
          scaleOrientation='7.82146e-14 7.82146e-14 -1 1.5708'>
76
 
        <Shape>
77
 
          <IndexedLineSet
78
 
              coordIndex='0, 1, 2, 3, 4, -1'>
79
 
            <Coordinate
80
 
                point='0 0 0, 1 0 0, 1 1 0, 0 1 0, 0 0 0'/>
81
 
          </IndexedLineSet>
82
 
        </Shape>
83
 
      </Transform>
84
 
      <Transform DEF='TrackPoint'
85
 
          translation='-3.96299e-08 -4.25478e-08 0'
86
 
          scaleOrientation='-0.357407 0.862856 -0.357407 4.51948'>
87
 
        <Shape>
88
 
          <Appearance>
89
 
            <LineProperties
90
 
                linewidthScaleFactor='5'/>
91
 
          </Appearance>
92
 
          <PointSet>
93
 
            <Coordinate
94
 
                point='0 0 0'/>
95
 
          </PointSet>
96
 
        </Shape>
97
 
      </Transform>
98
 
    </Transform>
99
 
    <Script DEF='Debug'>
100
 
      <field accessType='inputOnly' type='SFVec3f' name='set_trackPoint1'/>
101
 
      <field accessType='inputOnly' type='SFBool' name='set_isOver1'/>
102
 
      <field accessType='inputOnly' type='SFBool' name='set_isActive1'/>
103
 
<![CDATA[vrmlscript:
104
 
function set_trackPoint1 (value)
105
 
{
106
 
        print ('Touch 1 trackPoint: ' + value);
107
 
}
108
 
 
109
 
function set_isOver1 (value)
110
 
{
111
 
        print ('Touch 1 isOver: ' + value);
112
 
}
113
 
 
114
 
function set_isActive1 (value)
115
 
{
116
 
        print ('Touch 1 isActive: ' + value);
117
 
}
118
 
]]> 
119
 
    </Script>
120
 
    <Viewpoint
121
 
        description='Home'
122
 
        position='-88.6722 213.073 -140.126'
123
 
        orientation='-0.687201 0.577929 0.440173 2.68045'
124
 
        centerOfRotation='-3.18198 0.0348932 2.69748'/>
125
 
    <ROUTE fromNode='Touch1' fromField='trackPoint_changed' toNode='TrackPoint' toField='set_translation'/>
126
 
    <ROUTE fromNode='BBox' fromField='rotation_changed' toNode='Touch1' toField='set_axisRotation'/>
127
 
    <ROUTE fromNode='BBox' fromField='rotation_changed' toNode='Cube' toField='set_rotation'/>
128
 
    <ROUTE fromNode='Touch1' fromField='trackPoint_changed' toNode='Debug' toField='set_trackPoint1'/>
129
 
    <ROUTE fromNode='Touch1' fromField='isOver' toNode='Debug' toField='set_isOver1'/>
130
 
    <ROUTE fromNode='Touch1' fromField='isActive' toNode='Debug' toField='set_isActive1'/>
131
 
    <ROUTE fromNode='Touch1' fromField='translation_changed' toNode='Button1' toField='set_translation'/>
132
 
  </Scene>
133
 
</X3D>