X3D Model Documentation: CopperRockfishPlacardViewer.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
  3  <X3D profile='Interactive' version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'>
  4       <head>
  5            <meta name='titlecontent='CopperRockfishPlacardViewer.x3d'/>
  6            <meta name='descriptioncontent='Viewer for tank placards - needs photo on one side, placard on other, and conversion into prototype once ready.'/>
  7            <meta name='createdcontent='1 April 2002'/>
  8            <meta name='modifiedcontent='20 October 2019'/>
  9            <meta name='creatorcontent='Todd Gagnon and Mark A. Boyd'/>
 10            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/CopperRockfishPlacardViewer.x3d'/>
 11            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 12            <meta name='licensecontent='../license.html'/>
 13       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: BASE_TRANSFORM, BLUEROCKFISH_TRANSFORM, BLUEROCKFISHCLOCK, BlueRockfishPathInterpolator, BlueRockfishTouchSensor, BUTTON_TRANSFORM, BUTTON_TRANSFORM2, CopperRockfish, CopperRockfishImage, FrontTouchSensor, FRONTTOUCHSENSORCLOCK, PictureTouchSensor, PlaqueToPictureInterpolator

Index for Viewpoint node: CopperRockfish
-->
 14       <Scene>
 15            <WorldInfo title='CopperRockfishPlacardViewer.x3d'/>
 16            <Viewpoint DEF='CopperRockfishdescription='Copper Rockfishposition='0.0 0.0 4.0'/>
 17            <Group>
 18 
               <!-- ROUTE information for BlueRockfishTouchSensor node:  [from touchTime to BLUEROCKFISHCLOCK.set_startTime ] -->
               <TouchSensor DEF='BlueRockfishTouchSensordescription='touch to rotate'/>
 19 
               <!-- ROUTE information for BLUEROCKFISHCLOCK node:  [from BlueRockfishTouchSensor.touchTime to set_startTime ] [from PictureTouchSensor.touchTime to set_startTime ] [from fraction_changed to BlueRockfishPathInterpolator.set_fraction ] -->
               <TimeSensor DEF='BLUEROCKFISHCLOCKcycleInterval='2.0'/>
 20 
               <!-- ROUTE information for BlueRockfishPathInterpolator node:  [from BLUEROCKFISHCLOCK.fraction_changed to set_fraction ] [from value_changed to BLUEROCKFISH_TRANSFORM.set_rotation ] -->
               <OrientationInterpolator DEF='BlueRockfishPathInterpolatorkey='0.0 0.5 1.0keyValue='0.0 1.0 0.0 0.0 0.0 1.0 0.0 1.57 0.0 1.0 0.0 3.14'/>
 21 
               <!-- ROUTE information for BLUEROCKFISH_TRANSFORM node:  [from BlueRockfishPathInterpolator.value_changed to set_rotation ] [from PlaqueToPictureInterpolator.value_changed to set_rotation ] -->
               <Transform DEF='BLUEROCKFISH_TRANSFORM'>
 22                      <Shape>
 23                           <Appearance>
 24                                <ImageTexture DEF='CopperRockfishImage'   url=' "CopperRockfishPlacard.jpg " "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/CopperRockfishPlacard.jpg " '/>
 25                                <TextureTransform scale='1 2'/>
 26                           </Appearance>
 27                           <IndexedFaceSet coordIndex='0 1 2 3 0 -1'>
 28                                <Coordinate point='-2 -1 0 2 -1 0 2 1 0 -2 1 0'/>
 29                           </IndexedFaceSet>
 30                      </Shape>
 31                 </Transform>
 32                 <Group>
 33                      <Transform DEF='BUTTON_TRANSFORMtranslation='1.0 2.0 0.0'>
 34                           <Shape>
 35                                <Appearance>
 36                                     <Material diffuseColor='0.0 1.0 0.0'/>
 37                                </Appearance>
 38                                <Sphere radius='0.5'/>
 39                           </Shape>
 40                      </Transform>
 41 
                    <!-- ROUTE information for FrontTouchSensor node:  [from touchTime to FRONTTOUCHSENSORCLOCK.set_startTime ] -->
                    <TouchSensor DEF='FrontTouchSensordescription='touch to rotate'/>
 42 
                    <!-- ROUTE information for FRONTTOUCHSENSORCLOCK node:  [from FrontTouchSensor.touchTime to set_startTime ] [from fraction_changed to PlaqueToPictureInterpolator.set_fraction ] -->
                    <TimeSensor DEF='FRONTTOUCHSENSORCLOCKcycleInterval='2.0'/>
 43 
                    <!-- ROUTE information for PlaqueToPictureInterpolator node:  [from FRONTTOUCHSENSORCLOCK.fraction_changed to set_fraction ] [from value_changed to BLUEROCKFISH_TRANSFORM.set_rotation ] -->
                    <OrientationInterpolator DEF='PlaqueToPictureInterpolatorkey='0.0 0.5 1.0keyValue='0.0 1.0 0.0 3.14 0.0 1.0 0.0 1.57 0.0 1.0 0.0 0.0'/>
 44                 </Group>
 45                 <Group>
 46                      <Transform DEF='BUTTON_TRANSFORM2translation='-1.0 2.0 0.0'>
 47                           <Shape>
 48                                <Appearance>
 49                                     <Material diffuseColor='1.0 0.0 0.0'/>
 50                                </Appearance>
 51                                <Sphere radius='0.5'/>
 52                           </Shape>
 53                      </Transform>
 54 
                    <!-- ROUTE information for PictureTouchSensor node:  [from touchTime to BLUEROCKFISHCLOCK.set_startTime ] -->
                    <TouchSensor DEF='PictureTouchSensordescription='touch to rotate'/>
 55                 </Group>
 56                 <Group>
 57                      <Transform DEF='BASE_TRANSFORMtranslation='0.0 0.0 -0.3'>
 58                           <Shape>
 59                                <Appearance>
 60                                     <Material diffuseColor='0.3 0.3 0.6'/>
 61                                </Appearance>
 62                                <Box size='8.0 6.0 0.3'/>
 63                           </Shape>
 64                      </Transform>
 65                      <Group>
 66                           <Transform translation='0.0 -2.6 0.0'>
 67                                <Shape>
 68                                     <Appearance>
 69                                          <Material diffuseColor='0.8 0.8 0.2'/>
 70                                     </Appearance>
 71                                     <Box size='8.0 1.0 1.0'/>
 72                                </Shape>
 73                           </Transform>
 74                      </Group>
 75                      <Group>
 76                           <Transform translation='0.0 2.6 0.0'>
 77                                <Shape>
 78                                     <Appearance>
 79                                          <Material diffuseColor='0.8 0.8 0.2'/>
 80                                     </Appearance>
 81                                     <Box size='8.0 1.0 1.0'/>
 82                                </Shape>
 83                           </Transform>
 84                      </Group>
 85                      <Group>
 86                           <Transform rotation='0.0 0.0 1.0 1.58translation='3.6 0.0 0.0'>
 87                                <Shape>
 88                                     <Appearance>
 89                                          <Material diffuseColor='0.8 0.8 0.2'/>
 90                                     </Appearance>
 91                                     <Box size='6.2 1.0 1.0'/>
 92                                </Shape>
 93                           </Transform>
 94                      </Group>
 95                      <Group>
 96                           <Transform rotation='0.0 0.0 1.0 1.58translation='-3.6 0.0 0.0'>
 97                                <Shape>
 98                                     <Appearance>
 99                                          <Material diffuseColor='0.8 0.8 0.2'/>
100                                     </Appearance>
101                                     <Box size='6.2 1.0 1.0'/>
102                                </Shape>
103                           </Transform>
104                      </Group>
105                 </Group>
106            </Group>
107            < ROUTE  fromNode='BlueRockfishTouchSensor' fromField='touchTime' toNode='BLUEROCKFISHCLOCK' toField='set_startTime'/>
108            < ROUTE  fromNode='BLUEROCKFISHCLOCK' fromField='fraction_changed' toNode='BlueRockfishPathInterpolator' toField='set_fraction'/>
109            < ROUTE  fromNode='BlueRockfishPathInterpolator' fromField='value_changed' toNode='BLUEROCKFISH_TRANSFORM' toField='set_rotation'/>
110            < ROUTE  fromNode='FrontTouchSensor' fromField='touchTime' toNode='FRONTTOUCHSENSORCLOCK' toField='set_startTime'/>
111            < ROUTE  fromNode='FRONTTOUCHSENSORCLOCK' fromField='fraction_changed' toNode='PlaqueToPictureInterpolator' toField='set_fraction'/>
112            < ROUTE  fromNode='PlaqueToPictureInterpolator' fromField='value_changed' toNode='BLUEROCKFISH_TRANSFORM' toField='set_rotation'/>
113            < ROUTE  fromNode='PictureTouchSensor' fromField='touchTime' toNode='BLUEROCKFISHCLOCK' toField='set_startTime'/>
114       </Scene>
115  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: BASE_TRANSFORM, BLUEROCKFISH_TRANSFORM, BLUEROCKFISHCLOCK, BlueRockfishPathInterpolator, BlueRockfishTouchSensor, BUTTON_TRANSFORM, BUTTON_TRANSFORM2, CopperRockfish, CopperRockfishImage, FrontTouchSensor, FRONTTOUCHSENSORCLOCK, PictureTouchSensor, PlaqueToPictureInterpolator

Index for Viewpoint node: CopperRockfish
-->
X3D Tooltips element index: Appearance, Box, Coordinate, Group, head, ImageTexture, IndexedFaceSet, Material, meta, OrientationInterpolator, ROUTE, Scene, Shape, Sphere, TextureTransform, TimeSensor, TouchSensor, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

Event Graph ROUTE Table entries with 7 ROUTE connections total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.

BlueRockfishTouchSensor
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
BLUEROCKFISHCLOCK
TimeSensor
set_startTime
SFTime
then
 
 
 
BLUEROCKFISHCLOCK
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
BlueRockfishPathInterpolator
OrientationInterpolator
set_fraction
SFFloat
then
 
 
 
BlueRockfishPathInterpolator
OrientationInterpolator
value_changed
SFRotation

ROUTE
event to
(3)
BLUEROCKFISH_TRANSFORM
Transform
set_rotation
SFRotation

FrontTouchSensor
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
FRONTTOUCHSENSORCLOCK
TimeSensor
set_startTime
SFTime
then
 
 
 
FRONTTOUCHSENSORCLOCK
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
PlaqueToPictureInterpolator
OrientationInterpolator
set_fraction
SFFloat
then
 
 
 
PlaqueToPictureInterpolator
OrientationInterpolator
value_changed
SFRotation

ROUTE
event to
(3)
BLUEROCKFISH_TRANSFORM
Transform
set_rotation
SFRotation

PictureTouchSensor
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
BLUEROCKFISHCLOCK
TimeSensor
set_startTime
SFTime
then
 
 
 
BLUEROCKFISHCLOCK
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
BlueRockfishPathInterpolator
OrientationInterpolator
set_fraction
SFFloat
then
 
 
 
BlueRockfishPathInterpolator
OrientationInterpolator
value_changed
SFRotation

ROUTE
event to
(3)
BLUEROCKFISH_TRANSFORM
Transform
set_rotation
SFRotation

Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/CopperRockfishPlacardViewerIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/CopperRockfishPlacardViewer.x3d -->

<!-- Color legend: X3D terminology <X3dNode DEF='idName' field='value'/> matches XML terminology <XmlElement DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->