<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd">
<X3D profile='Immersive'  version='4.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' https://www.web3d.org/specifications/x3d-4.0.xsd ' >
<head>
<meta name='titlecontent=' VisibleShapesTest.x3d '/>
<meta name='descriptioncontent='Test scene for visible field on X3DBoundedObject nodes, which is new to X3Dv4.'/>
<meta name='createdcontent='18 January 2020'/>
<meta name='modifiedcontent='4 October 2023'/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='specificationSectioncontent=' X3D 4.0 Architecture, ISO/IEC 19775-1:2023, 10 Grouping component, 10.3.1 X3DBoundedObject'/>
<meta name='specificationUrlcontent=' https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/grouping.html#X3DBoundedObject '/>
<meta name='specificationSectioncontent=' X3D 4.0 Architecture, ISO/IEC 19775-1:2023, 12 Shape component, 12.3.5 X3DShapeNode'/>
<meta name='specificationUrlcontent=' https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/shape.html#X3DShapeNode '/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/VisibleShapesTest.x3d '/>
<meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!-- -->
<Scene>
<WorldInfo title='VisibleShapesTest.x3d'/>
<Viewpoint DEF='EntryViewdescription='Visible Shapes Testposition='0 0 12'/>
<!-- ROUTE information for BoxGroupingNode node:  [from Pulsar1.value_changed to visible ] -->
<Transform DEF='BoxGroupingNodetranslation='-3 1.5 0'>
<Shape DEF='BoxShape'>
<Box/>
<Appearance>
<Material DEF='ReddiffuseColor='1 0 0'/>
</Appearance>
</Shape>
<Transform translation='0 -2 0'>
<Shape DEF='BoxVisibleText'>
<Text string='"Box visible"'>
<FontStyle DEF='TextStylefamily='"SANS"justify='"MIDDLE" "MIDDLE"style='BOLD'/>
</Text>
<Appearance>
<Material USE=' Red'/>
</Appearance>
</Shape>
</Transform>
<!-- ROUTE information for Pulsar1 node:  [from SequencerClock.fraction_changed to set_fraction ] [from value_changed to BoxGroupingNode.visible ] -->
<BooleanSequencer DEF='Pulsar1key='0 0.25 0.5 0.75 1keyValue='true false true true true'/>

< ROUTE  fromNode=' Pulsar1' fromField='value_changed' toNode=' BoxGroupingNode' toField='visible'/>
</Transform>
<Transform DEF='SphereGroupingNodetranslation='0 1.5 0'>
<!-- ROUTE information for SphereShape node:  [from Pulsar2.value_changed to visible ] -->
<Shape DEF='SphereShape'>
<Sphere/>
<Appearance>
<Material DEF='GreendiffuseColor='0 1 0'/>
</Appearance>
</Shape>
<Transform translation='0 -3 0'>
<!-- ROUTE information for SphereVisibleText node:  [from Pulsar2.value_changed to visible ] -->
<Shape DEF='SphereVisibleText'>
<Text string='"Sphere visible"'>
<FontStyle USE=' TextStyle'/>
</Text>
<Appearance>
<Material USE=' Green'/>
</Appearance>
</Shape>
</Transform>
<!-- ROUTE information for Pulsar2 node:  [from SequencerClock.fraction_changed to set_fraction ] [from value_changed to SphereShape.visible ] [from value_changed to SphereVisibleText.visible ] -->
<BooleanSequencer DEF='Pulsar2key='0 0.25 0.5 0.75 1keyValue='true true false true true'/>

< ROUTE  fromNode=' Pulsar2' fromField='value_changed' toNode=' SphereShape' toField='visible'/>
< ROUTE  fromNode=' Pulsar2' fromField='value_changed' toNode=' SphereVisibleText' toField='visible'/>
</Transform>
<Transform DEF='CylinderGroupingNodetranslation='3 1.5 0'>
<!-- ROUTE information for CylinderShape node:  [from Pulsar3.value_changed to visible ] -->
<Shape DEF='CylinderShape'>
<Cylinder/>
<Appearance>
<Material DEF='BluediffuseColor='0 0 1'/>
</Appearance>
</Shape>
<Transform translation='0 -4 0'>
<!-- ROUTE information for CylinderVisibleText node:  [from Pulsar3.value_changed to visible ] -->
<Shape DEF='CylinderVisibleText'>
<Text string='"Cylinder visible"'>
<FontStyle USE=' TextStyle'/>
</Text>
<Appearance>
<Material USE=' Blue'/>
</Appearance>
</Shape>
</Transform>
<!-- ROUTE information for Pulsar3 node:  [from SequencerClock.fraction_changed to set_fraction ] [from value_changed to CylinderShape.visible ] [from value_changed to CylinderVisibleText.visible ] -->
<BooleanSequencer DEF='Pulsar3key='0 0.25 0.5 0.75 1keyValue='true true true false true'/>

< ROUTE  fromNode=' Pulsar3' fromField='value_changed' toNode=' CylinderShape' toField='visible'/>
< ROUTE  fromNode=' Pulsar3' fromField='value_changed' toNode=' CylinderVisibleText' toField='visible'/>
</Transform>
<!-- ROUTE information for SequencerClock node:  [from fraction_changed to Pulsar1.set_fraction ] [from fraction_changed to Pulsar2.set_fraction ] [from fraction_changed to Pulsar3.set_fraction ] -->
<TimeSensor DEF='SequencerClockcycleInterval='8loop='true'/>

< ROUTE  fromNode=' SequencerClock' fromField='fraction_changed' toNode=' Pulsar1' toField='set_fraction'/>
< ROUTE  fromNode=' SequencerClock' fromField='fraction_changed' toNode=' Pulsar2' toField='set_fraction'/>
< ROUTE  fromNode=' SequencerClock' fromField='fraction_changed' toNode=' Pulsar3' toField='set_fraction'/>
</Scene>
</X3D>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: Blue, BoxGroupingNode, BoxShape, BoxVisibleText, CylinderGroupingNode, CylinderShape, CylinderVisibleText, EntryView, Green, Pulsar1, Pulsar2, Pulsar3, Red, SequencerClock, SphereGroupingNode, SphereShape, SphereVisibleText, TextStyle

Index for Viewpoint node: EntryView
-->

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

SequencerClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
Pulsar1
BooleanSequencer
set_fraction
SFFloat

 
 
then
Pulsar1
BooleanSequencer
value_changed
SFBool

ROUTE
event to
(2)
BoxGroupingNode
Transform
visible
SFBool
SequencerClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
Pulsar2
BooleanSequencer
set_fraction
SFFloat

 
 
then
Pulsar2
BooleanSequencer
value_changed
SFBool

ROUTE
event to
(2)
SphereShape
Shape
visible
SFBool
 
 
 
then
Pulsar2
BooleanSequencer
value_changed
SFBool

ROUTE
event to
(2)
SphereVisibleText
Shape
visible
SFBool
SequencerClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
Pulsar3
BooleanSequencer
set_fraction
SFFloat

 
 
then
Pulsar3
BooleanSequencer
value_changed
SFBool

ROUTE
event to
(2)
CylinderShape
Shape
visible
SFBool
 
 
 
then
Pulsar3
BooleanSequencer
value_changed
SFBool

ROUTE
event to
(2)
CylinderVisibleText
Shape
visible
SFBool


-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/VisibleShapesTestIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/VisibleShapesTest.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. -->