| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN" "https://www.web3d.org/specifications/x3d-3.1.dtd">
|
| 3 | <X3D profile='Immersive' version='3.1' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.1.xsd'> |
| 4 | <head> |
| 5 | <meta name='title' content=' BollardHydraulicSecurityExample.x3d '/> |
| 6 | <meta name='description' content='Rising/retractable security bollard: example use, showing multiple copies of a single triggered bollard.'/> |
| 7 | <meta name='creator' content='Don Brutzman and MV4205 Advanced XML class'/> |
| 8 | <meta name='created' content='5 September 2007'/> |
| 9 | <meta name='modified' content='20 October 2019'/> |
| 10 | <meta name=' warning ' content=" USE copies of the DEF'ed bollard are not animating. Shouldn't they? "/> |
| 11 | <meta name='reference' content='http://www.atgaccess.com'/> |
| 12 | <meta name='reference' content=' BollardHydraulicSecurityPrototype.x3d '/> |
| 13 | <meta name='reference' content=' https://www.web3d.org/x3d/content/examples/Savage/Buildings/SecurityPerimeter/BollardHydraulicSecurityPrototype.x3d '/> |
| 14 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Savage/Buildings/SecurityPerimeter/BollardHydraulicSecurityExample.x3d '/> |
| 15 | <meta name='generator' content='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 16 | <meta name='license' content='../../license.html'/> |
| 17 | </head> |
| 18 | <Scene> |
| 19 | <WorldInfo title='BollardHydraulicSecurityExample.x3d'/> |
| 20 | <ExternProtoDeclare name='BollardHydraulicSecurity' appinfo='A security bollard can be raised or lowered to prevent vehicle access by blocking a road. Usually multiple bollards are installed side by side raised and lowered together.' url=' "BollardHydraulicSecurityPrototype.x3d#BollardHydraulicSecurity" "../../../Savage/Buildings/SecurityPerimeter/BollardHydraulicSecurityPrototype.x3d#BollardHydraulicSecurity" "https://www.web3d.org/x3d/content/examples/Savage/Buildings/SecurityPerimeter/BollardHydraulicSecurityPrototype.x3d#BollardHydraulicSecurity" "BollardHydraulicSecurityPrototype.wrl#BollardHydraulicSecurity" "../../../Savage/Buildings/SecurityPerimeter/BollardHydraulicSecurityPrototype.wrl#BollardHydraulicSecurity" "https://www.web3d.org/x3d/content/examples/Savage/Buildings/SecurityPerimeter/BollardHydraulicSecurityPrototype.wrl#BollardHydraulicSecurity" '> |
| 21 | <field name='radius' type='SFFloat' accessType='initializeOnly'/> |
| 22 | <field name='height' type='SFFloat' accessType='initializeOnly'/> |
| 23 | <field name='textureUrl' type='MFString' accessType='inputOutput'/> |
| 24 | <field name='diffuseColor' type='SFColor' accessType='inputOutput'/> |
| 25 |
<field name='raise' type='SFBool' accessType='inputOnly'
appinfo='Command to raise the bollard.'/> |
| 26 |
<field name='lower' type='SFBool' accessType='inputOnly'
appinfo='Command to lower the bollard.'/> |
| 27 | <!-- TODO: add TimeDelaySensor nodes to report completion by the following output fields --> |
| 28 |
<field name='isRaised' type='SFBool' accessType='outputOnly'
appinfo='Notification event sent when bollard is fully raised.'/> |
| 29 |
<field name='isLowered' type='SFBool' accessType='outputOnly'
appinfo='Notification event sent when bollard is fully lowered.'/> |
| 30 | </ExternProtoDeclare> |
| 31 | <!-- ==================== --> |
| 32 | <Viewpoint description='Bollard view' position='0 0 6'/> |
| 33 | <!-- test locally during development, once complete we split this out into a separate Example scene. --> |
| 34 |
<!-- ROUTE information for Bollard node:
[from ClickToRaiseBollard.isActive to raise
]
[from ClickToLowerBollard.isActive to lower
]
-->
<ProtoInstance name='BollardHydraulicSecurity' DEF='Bollard'> |
| 35 | <fieldValue name='height' value='0.85'/> |
| 36 | <fieldValue name='radius' value='0.2'/> |
| 37 | <fieldValue name='textureUrl' value=' "fan.png" '/> |
| 38 | </ProtoInstance> |
| 39 | <Transform DEF='RightBollard' translation='2 0 0'> |
| 40 | <ProtoInstance name='BollardHydraulicSecurity'/> |
| 41 | </Transform> |
| 42 | <Transform DEF='LeftBollard' translation='-2 0 0'> |
| 43 | <ProtoInstance name='BollardHydraulicSecurity'/> |
| 44 | </Transform> |
| 45 | <Shape DEF='GroundLevel'> |
| 46 | <Box size='10 0.01 10'/> |
| 47 | </Shape> |
| 48 | <Transform DEF='RaiseInterface' translation='-2 -1.5 0'> |
| 49 | <Shape> |
| 50 | <Text string='"Click to" "raise"'> |
| 51 | <FontStyle justify='"MIDDLE" "MIDDLE"' size='0.3'/> |
| 52 | </Text> |
| 53 | </Shape> |
| 54 | <Shape> |
| 55 | <Box size='3 2 0.01'/> |
| 56 | <Appearance> |
| 57 | <Material transparency='1'/> |
| 58 | </Appearance> |
| 59 | </Shape> |
| 60 |
<!-- ROUTE information for ClickToRaiseBollard node:
[from isActive to Bollard.raise
]
-->
<TouchSensor DEF='ClickToRaiseBollard' description='click to raise bollard'/> |
| 61 | < ROUTE fromNode='ClickToRaiseBollard' fromField='isActive' toNode='Bollard' toField='raise'/> |
| 62 | </Transform> |
| 63 | <Transform DEF='LowerInterface' translation='2 -1.5 0'> |
| 64 | <Shape> |
| 65 | <Text string='"Click to" "lower"'> |
| 66 | <FontStyle justify='"MIDDLE" "MIDDLE"' size='0.3'/> |
| 67 | </Text> |
| 68 | </Shape> |
| 69 | <Shape> |
| 70 | <Box size='3 2 0.01'/> |
| 71 | <Appearance> |
| 72 | <Material transparency='1'/> |
| 73 | </Appearance> |
| 74 | </Shape> |
| 75 |
<!-- ROUTE information for ClickToLowerBollard node:
[from isActive to Bollard.lower
]
-->
<TouchSensor DEF='ClickToLowerBollard' description='click tolower bollard'/> |
| 76 | < ROUTE fromNode='ClickToLowerBollard' fromField='isActive' toNode='Bollard' toField='lower'/> |
| 77 | </Transform> |
| 78 | </Scene> |
| 79 | </X3D> |
Event Graph ROUTE Table entries with 2 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.
|
ClickToLowerBollard
TouchSensor isActive SFBool |
Bollard
ProtoInstance lower SFBool |
|
ClickToRaiseBollard
TouchSensor isActive SFBool |
Bollard
ProtoInstance raise SFBool |
| line 40
ProtoInstance BollardHydraulicSecurity |
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. |
| line 43
ProtoInstance BollardHydraulicSecurity |
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. |
|
Bollard
ProtoInstance BollardHydraulicSecurity |
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. |
<!--
Color-coding 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.
-->