X3D Model Documentation: ViewpointSequencerExample.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2 
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
  3  <X3D profile='Immersive' version='3.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'>
  4       <head>
  5            <meta name='titlecontent=' ViewpointSequencerExample.x3d '/>
  6            <meta name='descriptioncontent='Animate through a set of Viewpoints and repeat'/>
  7            <meta name='creatorcontent='Don Brutzman'/>
  8            <meta name='createdcontent='11 December 2002'/>
  9            <meta name='modifiedcontent='28 November 2019'/>
 10            <meta name='subjectcontent='Viewpoint Tour'/>
 11            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/ViewpointSequencerExample.x3d '/>
 12            <meta name='generatorcontent='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 13            <meta name='licensecontent='../../license.html'/>
 14       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: BackdropBox, CoordinateAxes, View0, View1, View2, View3, View4, Viewpoints

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5, View0, View1, View2, View3, View4

Index for ExternProtoDeclare definition: ViewpointSequencer
-->
 15       <Scene>
 16            <WorldInfo title='ViewpointSequencerExample.x3d'/>
 17            <ExternProtoDeclare name='ViewpointSequencerappinfo='Sequentially binds each Viewpoint in a set of Viewpoint USE nodes, creating an automatic tour for a scene'   url=' "../../../Savage/Tools/Animation/ViewpointSequencerPrototype.x3d#ViewpointSequencer" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/ViewpointSequencerPrototype.x3d#ViewpointSequencer" "../../../Savage/Tools/Animation/ViewpointSequencerPrototype.wrl#ViewpointSequencer" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/ViewpointSequencerPrototype.wrl#ViewpointSequencer" '>
 18                 <field name='viewpointstype='MFNodeaccessType='initializeOnly'
                appinfo='Viewpoint USE nodes that are sequentially bound'/>
 19                 <field name='intervaltype='SFTimeaccessType='inputOutput'
                appinfo='number of seconds between viewpoint shifts'/>
 20                 <field name='enabledtype='SFBoolaccessType='inputOutput'
                appinfo='whether ViewpointSequencer is enabled or not'/>
 21                 <field name='set_enabledtype='SFBoolaccessType='inputOnly'
                appinfo='whether ViewpointSequencer is enabled or not'/>
 22                 <field name='previoustype='SFBoolaccessType='inputOnly'
                appinfo='bind previous Viewpoint in list'/>
 23                 <field name='nexttype='SFBoolaccessType='inputOnly'
                appinfo='bind next Viewpoint in list'/>
 24                 <field name='toggleMessagetype='MFStringaccessType='inputOutput'
                appinfo='Select message to toggle ViewpointSequencer'/>
 25                 <field name='toggleMessageFontSizetype='SFFloataccessType='initializeOnly'
                appinfo='Font size for toggleMessage text'/>
 26                 <field name='toggleMessageColortype='SFColoraccessType='inputOutput'
                appinfo='Color for toggleMessage text'/>
 27                 <field name='traceEnabledtype='SFBoolaccessType='inputOutput'
                appinfo='enable console output'/>
 28            </ExternProtoDeclare>
 29            <!-- ===============Example============== -->
 30            <Group DEF='Viewpoints'>
 31 
               <!-- Viewpoint View0 is a DEF node that has 1 USE node: USE_1 -->
               <Viewpoint DEF='View0description='View zero (+Y axis)orientation='1 0 0 -1.57position='0 10 0'/>
 32 
               <!-- Viewpoint View1 is a DEF node that has 1 USE node: USE_1 -->
               <Viewpoint DEF='View1description='View one (+Z axis)'/>
 33 
               <!-- Viewpoint View2 is a DEF node that has 1 USE node: USE_1 -->
               <Viewpoint DEF='View2description='View two (+X axis)orientation='0 1 0 1.57position='10 0 0'/>
 34 
               <!-- Viewpoint View3 is a DEF node that has 1 USE node: USE_1 -->
               <Viewpoint DEF='View3description='View three (-Z axis)orientation='0 1 0 3.14position='0 0 -10'/>
 35 
               <!-- Viewpoint View4 is a DEF node that has 1 USE node: USE_1 -->
               <Viewpoint DEF='View4description='View four (-X axis)orientation='0 1 0 -1.57position='-10 0 0'/>
 36            </Group>
 37            <Transform translation='0 -2 0'>
 38                 <ProtoInstance name='ViewpointSequencer'>
 39                      <fieldValue name='viewpoints'>
 40                           <Viewpoint USE='View0'/>
 41                           <Viewpoint USE='View1'/>
 42                           <Viewpoint USE='View2'/>
 43                           <Viewpoint USE='View3'/>
 44                           <Viewpoint USE='View4'/>
 45                      </fieldValue>
 46                      <fieldValue name='intervalvalue='2'/>
 47                      <!-- initially enabled is off, scene provides selectable text to activate -->
 48                      <fieldValue name='enabledvalue='false'/>
 49                      <fieldValue name='traceEnabledvalue='true'/>
 50                 </ProtoInstance>
 51            </Transform>
 52            <Shape>
 53                 <Box DEF='BackdropBoxsize='0.2 0.4 0.6'/>
 54                 <Appearance>
 55                      <Material diffuseColor='1 0.4 0.2'/>
 56                 </Appearance>
 57            </Shape>
 58            <Inline DEF='CoordinateAxes'   url=' "../../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "../../Tools/Authoring/CoordinateAxes.x3d" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxes.x3d" "../../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" "../../Tools/Authoring/CoordinateAxes.wrl" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxes.wrl" '/>
 59       </Scene>
 60  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: BackdropBox, CoordinateAxes, View0, View1, View2, View3, View4, Viewpoints

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5, View0, View1, View2, View3, View4

Index for ExternProtoDeclare definition: ViewpointSequencer
-->
X3D Tooltips element index: Appearance, Box, ExternProtoDeclare, field, fieldValue, Group, head, Inline, Material, meta, ProtoInstance, Scene, Shape, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

Event Graph ROUTE Table with 0 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.

line 38
ProtoInstance
ViewpointSequencer
No direct ROUTE connection found for events to/from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 

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/Savage/Tools/Animation/ViewpointSequencerExampleIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/Tools/Animation/ViewpointSequencerExample.x3d -->

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

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