X3D Model Documentation: CubeWithLabeledSidesViewpointSequencer.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='Immersive' 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='CubeWithLabeledSidesViewpointSequencer.x3d'/>
  6            <meta name='descriptioncontent='ViewpointSequencer animation of a cube-shaped test model with faces on each side individually labeled.'/>
  7            <meta name='creatorcontent='Don Brutzman'/>
  8            <meta name='createdcontent='14 November 2014'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='subjectcontent='Viewpoint Tour'/>
 11            <meta name='referencecontent='ViewpointSequencerPrototypeIndex.html'/>
 12            <meta name=' TODO content=' add ability for prototype to hide text '/>
 13            <meta name='referencecontent='BoxSwitch.x3d'/>
 14            <meta name='referencecontent='CubeWithLabeledSidesViewpointSequencer.png'/>
 15            <meta name='drawingcontent='CubeWithLabeledSidesViewpointSequencer.vsd'/>
 16            <meta name='referencecontent='../GeometricShapes/CubeWithLabeledSides.x3d'/>
 17            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/TestCube.x3d'/>
 18            <meta name='drawingcontent='https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/TestBoxImages.vsd'/>
 19            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/CubeWithLabeledSidesViewpointSequencer.x3d'/>
 20            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 21            <meta name='licensecontent='../license.html'/>
 22       </head>
<!--

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

<!-- to top Index for DEF nodes: BackViewSequenced, BottomViewSequenced, FrontViewSequenced, LeftViewSequenced, RightViewSequenced, TopViewSequenced, ViewpointSequencerExample

Index for Viewpoint nodes: BackViewSequenced, BottomViewSequenced, FrontViewSequenced, LeftViewSequenced, RightViewSequenced, TopViewSequenced

Index for ExternProtoDeclare definition: ViewpointSequencer
-->
 23       <Scene>
 24            <WorldInfo title='CubeWithLabeledSidesViewpointSequencer.x3d'/>
 25            <Background skyColor='0.3 0.3 0.3'/>
 26            <Inline   url=' "../GeometricShapes/CubeWithLabeledSides.x3d" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/CubeWithLabeledSides.x3d" "../GeometricShapes/CubeWithLabeledSides.wrl" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/CubeWithLabeledSides.wrl" '/>
 27            <!-- ==================== -->
 28            <ExternProtoDeclare name='ViewpointSequencerappinfo='Sequentially binds each Viewpoint in a set of Viewpoint USE nodes, creating an automatic tour for a scene'   url=' "ViewpointSequencerPrototype.x3d#ViewpointSequencer" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/ViewpointSequencerPrototype.x3d#ViewpointSequencer" "ViewpointSequencerPrototype.wrl#ViewpointSequencer" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/ViewpointSequencerPrototype.wrl#ViewpointSequencer" '>
 29                 <field name='viewpointstype='MFNodeaccessType='initializeOnly'
                appinfo='Viewpoint USE nodes that are sequentially bound'/>
 30                 <field name='intervaltype='SFTimeaccessType='inputOutput'
                appinfo='number of seconds between viewpoint shifts'/>
 31                 <field name='enabledtype='SFBoolaccessType='inputOutput'
                appinfo='whether ViewpointSequencer is enabled or not'/>
 32                 <field name='set_enabledtype='SFBoolaccessType='inputOnly'
                appinfo='whether ViewpointSequencer is enabled or not'/>
 33                 <field name='previoustype='SFBoolaccessType='inputOnly'
                appinfo='bind previous Viewpoint in list'/>
 34                 <field name='nexttype='SFBoolaccessType='inputOnly'
                appinfo='bind next Viewpoint in list'/>
 35                 <field name='toggleMessagetype='MFStringaccessType='inputOutput'
                appinfo='Select message to toggle ViewpointSequencer'/>
 36                 <field name='toggleMessageFontSizetype='SFFloataccessType='initializeOnly'
                appinfo='Font size for toggleMessage text'/>
 37                 <field name='toggleMessageColortype='SFColoraccessType='inputOutput'
                appinfo='Color for toggleMessage text'/>
 38                 <field name='traceEnabledtype='SFBoolaccessType='inputOutput'
                appinfo='enable console output'/>
 39            </ExternProtoDeclare>
 40            <Transform scale='0.5 0.5 0.5translation='0 -2 0'>
 41                 <!-- Only one copy of a given ExternProtoDeclare is needed in a scene. Multiple ProtoInstance nodes can be created like the following: -->
 42                 <ProtoInstance name='ViewpointSequencerDEF='ViewpointSequencerExample'>
 43                      <fieldValue name='intervalvalue='2'/>
 44                      <fieldValue name='viewpoints'>
 45                           <!-- These viewpoints were copied from the Inline scene above. Authors can also DEF/USE other Viewpoint nodes used elsewhere in a scene -->
 46                           <Viewpoint DEF='FrontViewSequenceddescription='Front view, sequencedorientation='0 1 0 1.57position='8 0 0'/>
 47                           <Viewpoint DEF='LeftViewSequenceddescription='Left view, sequencedorientation='0 1 0 3.1416position='0 0 -8'/>
 48                           <Viewpoint DEF='TopViewSequenceddescription='Top view, sequencedorientation='1 0 0 -1.57position='0 8 0'/>
 49                           <Viewpoint DEF='BackViewSequenceddescription='Back view, sequencedorientation='0 1 0 -1.57position='-8 0 0'/>
 50                           <Viewpoint DEF='RightViewSequenceddescription='Right view, sequencedposition='0 0 8'/>
 51                           <Viewpoint DEF='BottomViewSequenceddescription='Bottom view, sequencedorientation='1 0 0 1.57position='0 -8 0'/>
 52                      </fieldValue>
 53                      <!-- initially enabled field is off (false), scene provides selectable text to activate -->
 54                      <fieldValue name='enabledvalue='false'/>
 55                 </ProtoInstance>
 56                 <!-- Example use can be found at https://savage.nps.edu/Savage/Tools/Animation/ViewpointSequencerExample.x3d -->
 57            </Transform>
 58            <!-- ==================== -->
 59       </Scene>
 60  </X3D>
<!--

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

<!-- to top Index for DEF nodes: BackViewSequenced, BottomViewSequenced, FrontViewSequenced, LeftViewSequenced, RightViewSequenced, TopViewSequenced, ViewpointSequencerExample

Index for Viewpoint nodes: BackViewSequenced, BottomViewSequenced, FrontViewSequenced, LeftViewSequenced, RightViewSequenced, TopViewSequenced

Index for ExternProtoDeclare definition: ViewpointSequencer
-->
X3D Tooltips element index: Background, ExternProtoDeclare, field, fieldValue, head, Inline, meta, ProtoInstance, Scene, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, 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.

ViewpointSequencerExample
ProtoInstance
ViewpointSequencer
No ROUTE connection found for output events 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/X3dForAdvancedModeling/Animation/CubeWithLabeledSidesViewpointSequencerIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/CubeWithLabeledSidesViewpointSequencer.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)
    <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. -->