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='title' content='CubeWithLabeledSidesViewpointSequencer.x3d'/> |
6 | <meta name='description' content='ViewpointSequencer animation of a cube-shaped test model with faces on each side individually labeled.'/> |
7 | <meta name='creator' content='Don Brutzman'/> |
8 | <meta name='created' content='14 November 2014'/> |
9 | <meta name='modified' content='20 October 2019'/> |
10 | <meta name='subject' content='Viewpoint Tour'/> |
11 | <meta name='reference' content='ViewpointSequencerPrototypeIndex.html'/> |
12 | <meta name=' TODO ' content=' add ability for prototype to hide text '/> |
13 | <meta name='reference' content='BoxSwitch.x3d'/> |
14 | <meta name='reference' content='CubeWithLabeledSidesViewpointSequencer.png'/> |
15 | <meta name='drawing' content='CubeWithLabeledSidesViewpointSequencer.vsd'/> |
16 | <meta name='reference' content='../GeometricShapes/CubeWithLabeledSides.x3d'/> |
17 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/TestCube.x3d'/> |
18 | <meta name='drawing' content='https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/images/TestBoxImages.vsd'/> |
19 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/CubeWithLabeledSidesViewpointSequencer.x3d'/> |
20 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
21 | <meta name='license' content='../license.html'/> |
22 | </head> |
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='ViewpointSequencer' appinfo='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='viewpoints' type='MFNode' accessType='initializeOnly'
appinfo='Viewpoint USE nodes that are sequentially bound'/> |
30 |
<field name='interval' type='SFTime' accessType='inputOutput'
appinfo='number of seconds between viewpoint shifts'/> |
31 |
<field name='enabled' type='SFBool' accessType='inputOutput'
appinfo='whether ViewpointSequencer is enabled or not'/> |
32 |
<field name='set_enabled' type='SFBool' accessType='inputOnly'
appinfo='whether ViewpointSequencer is enabled or not'/> |
33 |
<field name='previous' type='SFBool' accessType='inputOnly'
appinfo='bind previous Viewpoint in list'/> |
34 |
<field name='next' type='SFBool' accessType='inputOnly'
appinfo='bind next Viewpoint in list'/> |
35 |
<field name='toggleMessage' type='MFString' accessType='inputOutput'
appinfo='Select message to toggle ViewpointSequencer'/> |
36 |
<field name='toggleMessageFontSize' type='SFFloat' accessType='initializeOnly'
appinfo='Font size for toggleMessage text'/> |
37 |
<field name='toggleMessageColor' type='SFColor' accessType='inputOutput'
appinfo='Color for toggleMessage text'/> |
38 |
<field name='traceEnabled' type='SFBool' accessType='inputOutput'
appinfo='enable console output'/> |
39 | </ExternProtoDeclare> |
40 | <Transform scale='0.5 0.5 0.5' translation='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='ViewpointSequencer' DEF='ViewpointSequencerExample'> |
43 | <fieldValue name='interval' value='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='FrontViewSequenced' description='Front view, sequenced' orientation='0 1 0 1.57' position='8 0 0'/> |
47 | <Viewpoint DEF='LeftViewSequenced' description='Left view, sequenced' orientation='0 1 0 3.1416' position='0 0 -8'/> |
48 | <Viewpoint DEF='TopViewSequenced' description='Top view, sequenced' orientation='1 0 0 -1.57' position='0 8 0'/> |
49 | <Viewpoint DEF='BackViewSequenced' description='Back view, sequenced' orientation='0 1 0 -1.57' position='-8 0 0'/> |
50 | <Viewpoint DEF='RightViewSequenced' description='Right view, sequenced' position='0 0 8'/> |
51 | <Viewpoint DEF='BottomViewSequenced' description='Bottom view, sequenced' orientation='1 0 0 1.57' position='0 -8 0'/> |
52 | </fieldValue> |
53 | <!-- initially enabled field is off (false), scene provides selectable text to activate --> |
54 | <fieldValue name='enabled' value='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 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. |
<!--
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>
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->