<!-- Invoke decimalDegrees in other scenes as an Inline child inside a scaling Transform node, at the topmost level of the scene graph. -->
<!-- This NavigationInfo allows examine mode and will be overridden by any parent scene. -->
<
ExternProtoDeclare name='
WhereAmI'
url='
"
../Chapter14-Prototypes/WhereAmI.x3d#WhereAmI"
"
http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14-Prototypes/WhereAmI.x3d#WhereAmI"
"
../Chapter14-Prototypes/WhereAmI.wrl#WhereAmI"
"
http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14-Prototypes/WhereAmI.wrl#WhereAmI"
'/>
<
ProtoInstance name='
WhereAmI'
containerField='
children'/>
<
Background skyColor='
1 1 1'/>
<
Viewpoint description='
Book View'
orientation='
0.356 -0.925 -0.136 -0.92'
position='
2.76 1.29 2.45'/>
<!-- Each arrow goes from +1m to -1m to allow linear scaling to fit a scene -->
<!-- Note each label rotates about the scene's vertical Y axis for consistency, enabling local orientation by user -->
<
Group>
<!-- Vertical Y arrow and label -->
<
Group DEF='
ARROW'>
<
Shape>
<
Appearance DEF='
ARROW_APPEARANCE'>
<Material diffuseColor='.3 .3 1' emissiveColor='.1 .1 .33'/>
</
Appearance>
<
Cylinder bottom='
false'
radius='
.025'
top='
false'/>
</
Shape>
<
Transform translation='
0 1 0'>
<
Shape DEF='
ARROW_POINTER'>
</
Shape>
</
Transform>
<
Transform rotation='
1 0 0 3.1416'
translation='
0 -1 0'>
</
Transform>
</
Group>
<
Transform translation='
0 1.08 0'>
<
Billboard>
<
Shape>
<
Appearance DEF='
LABEL_APPEARANCE'>
<Material diffuseColor='0 0 0' emissiveColor='.33 .33 .1'/>
</
Appearance>
<
Text string='
"Up" "Y"'
solid='
true'>
<
FontStyle DEF='
LABEL_FONT_TOP'
family='
SANS'
justify='
"MIDDLE" "END"'
size='
.2'/>
</
Text>
</
Shape>
</
Billboard>
</
Transform>
</
Group>
<
Transform rotation='
0 0 1 -1.5708'>
<!-- Horizontal X arrow and label -->
<
Group>
<
Group USE='
ARROW'/>
<
Transform rotation='
0 0 1 1.5708'
translation='
.072 1.1 0'>
<!-- note label rotated back to original coordinate frame -->
<
Billboard>
<
Shape>
<
Appearance USE='
LABEL_APPEARANCE'/>
<
Text string='
"X" "North"'
solid='
true'>
<
FontStyle DEF='
LABEL_FONT'
family='
SANS'
justify='
"MIDDLE" "MIDDLE"'
size='
.2'/>
</
Text>
</
Shape>
</
Billboard>
</
Transform>
</
Group>
</
Transform>
<
Transform rotation='
1 0 0 1.5708'>
<!-- Perpendicular Z arrow and label, note right-hand rule -->
<
Group>
<
Group USE='
ARROW'/>
<
Transform rotation='
1 0 0 -1.5708'
translation='
0 1.1 .072'>
<!-- note label rotated back to original coordinate frame -->
<
Billboard>
<
Shape>
<
Appearance USE='
LABEL_APPEARANCE'/>
<
Text string='
"Z" "East"'
solid='
true'>
</
Text>
</
Shape>
</
Billboard>
</
Transform>
</
Group>
</
Transform>