<
Viewpoint/>
<
NavigationInfo type='"EXAMINE"'/>
<
Transform DEF='
Cyl-Tf'>
<
Shape>
<
Appearance>
<Material diffuseColor='1 1 0'/>
</
Appearance>
<
Cylinder/>
</
Shape>
<
TouchSensor DEF='
ThS'/>
</
Transform>
<
OrientationInterpolator DEF='
OI'
key='0 0.25 0.5 0.75 1'
keyValue='
1 0 0 0
1 0 0 1.5708
1 0 0 3.1416
1 0 0 4.7124
1 0 0 6.2832'
/>
<
TimeSensor DEF='
TiS'
cycleInterval='5'/>
<
Script DEF='
Sc'>
<
field accessType='inputOnly'
type='
SFBool'
name='
isActive_ThS'/>
<
field accessType='outputOnly'
type='
SFTime'
name='
startTime'/>
<
field accessType='outputOnly'
type='
SFTime'
name='
stopTime'/>
<![CDATA[ecmascript:
function isActive_ThS (val,et) {
if (val == TRUE) startTime = et;
else stopTime = et;
}
]]>
</
Script>
<
ROUTE fromNode='
ThS'
fromField='isActive'
toNode='
Sc'
toField='isActive_ThS'/>
<
ROUTE fromNode='
Sc'
fromField='startTime'
toNode='
TiS'
toField='startTime'/>
<
ROUTE fromNode='
Sc'
fromField='stopTime'
toNode='
TiS'
toField='stopTime'/>
<
ROUTE fromNode='
TiS'
fromField='fraction_changed'
toNode='
OI'
toField='set_fraction'/>
<
ROUTE fromNode='
OI'
fromField='value_changed'
toNode='
Cyl-Tf'
toField='rotation'/>