| 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='title' content=' PushButtonExample.x3d '/> |
| 6 | <meta name='description' content='PushButton widget example use, inner button and outer shape can be round or square'/> |
| 7 | <meta name='creator' content='Don Brutzman, Murat Onder and MV4205 class, Spring 2004 Quarter'/> |
| 8 | <meta name='created' content='12 May 2004'/> |
| 9 | <meta name='modified' content='28 November 2019'/> |
| 10 | <meta name='reference' content=' PushButtonPrototype.x3d '/> |
| 11 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/PushButtonExample.x3d '/> |
| 12 | <meta name='generator' content='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 13 | <meta name='license' content='../../license.html'/> |
| 14 | </head> |
| 15 | <Scene> |
| 16 | <WorldInfo title='PushButtonExample.x3d'/> |
| 17 | <Viewpoint description='Initial Viewpoint' orientation='0.123 -0.991 0.05 0.7741' position='-2 -0.1 2'/> |
| 18 | <Background skyColor='0.8 0.6 0.1'/> |
| 19 | <ExternProtoDeclare name='PushButton' appinfo='PushButton widget, inner button and outer shape can be round or square' url=' "PushButtonPrototype.x3d#PushButton" "../../Tools/Animation/PushButtonPrototype.x3d#PushButton" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/PushButtonPrototype.x3d#PushButton" "../../Tools/Animation/PushButtonPrototype.wrl#PushButton" "PushButtonPrototype.wrl#PushButton" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/PushButtonPrototype.wrl#PushButton" '> |
| 20 |
<field name='traceEnabled' type='SFBool' accessType='initializeOnly'
appinfo='enables the console print-out in case of assigning wrong values default is true'/> |
| 21 | <field name='outerShapeMaterial' type='SFNode' accessType='initializeOnly'/> |
| 22 |
<field name='defaultMaterial' type='SFNode' accessType='initializeOnly'
appinfo='defaultMaterial for inner pushbutton'/> |
| 23 |
<field name='toggleMaterial' type='SFNode' accessType='initializeOnly'
appinfo='toggleMaterial for inner pushbutton'/> |
| 24 |
<field name='value_changed' type='SFBool' accessType='outputOnly'
appinfo='boolean output of button selection'/> |
| 25 |
<field name='outerSwitchStyle' type='SFString' accessType='initializeOnly'
appinfo='allowed values: round or square default is round'/> |
| 26 |
<field name='set_outerSwitchStyle' type='SFString' accessType='inputOnly'
appinfo='allowed values: round or square default is round'/> |
| 27 |
<field name='innerSwitchStyle' type='SFString' accessType='initializeOnly'
appinfo='allowed values: round square. default is round'/> |
| 28 |
<field name='set_innerSwitchStyle' type='SFString' accessType='inputOnly'
appinfo='allowed values: round square. default is round'/> |
| 29 |
<field name='delayInterval' type='SFTime' accessType='initializeOnly'
appinfo='time delay for button movement so for color change default is 0.5 sec.'/> |
| 30 | </ExternProtoDeclare> |
| 31 | <Transform DEF='RoundRound' translation='-.7 0 0'> |
| 32 | <ProtoInstance name='PushButton'> |
| 33 | <fieldValue name='outerSwitchStyle' value='square'/> |
| 34 | <fieldValue name='innerSwitchStyle' value='round'/> |
| 35 | <fieldValue name='outerShapeMaterial'> |
| 36 | <Material ambientIntensity='0.25' diffuseColor='0.029158 0.026292 0.026964' shininess='0.06' specularColor='0.641609 0.651044 0.979592'> |
| 37 | <!-- Universal Media Library: Metals 17 --> |
| 38 | </Material> |
| 39 | </fieldValue> |
| 40 | <fieldValue name='defaultMaterial'> |
| 41 | <Material diffuseColor='0 0.8 0' shininess='0.35'/> |
| 42 | </fieldValue> |
| 43 | <fieldValue name='toggleMaterial'> |
| 44 | <Material diffuseColor='0.8 0 0' shininess='0.35'/> |
| 45 | </fieldValue> |
| 46 | </ProtoInstance> |
| 47 | </Transform> |
| 48 | <Transform DEF='RoundSquare' translation='.7 0 0'> |
| 49 | <ProtoInstance name='PushButton'> |
| 50 | <fieldValue name='traceEnabled' value='true'/> |
| 51 | <fieldValue name='outerSwitchStyle' value='round'/> |
| 52 | <fieldValue name='innerSwitchStyle' value='square'/> |
| 53 | <fieldValue name='outerShapeMaterial'> |
| 54 | <Material ambientIntensity='0.25' diffuseColor='0.029158 0.026292 0.026964' shininess='0.06' specularColor='0.641609 0.651044 0.979592'> |
| 55 | <!-- Universal Media Library: Metals 17 --> |
| 56 | </Material> |
| 57 | </fieldValue> |
| 58 | <fieldValue name='defaultMaterial'> |
| 59 | <Material ambientIntensity='0' diffuseColor='0 0 0' emissiveColor='0 1 0.168349' shininess='0.05102' specularColor='0.622449 0.622449 0.622449'> |
| 60 | <!-- Universal Media Library: Neon 5 --> |
| 61 | </Material> |
| 62 | </fieldValue> |
| 63 | <fieldValue name='toggleMaterial'> |
| 64 | <Material ambientIntensity='0' diffuseColor='0 0 0' emissiveColor='1 0 0.080733' shininess='0.05102' specularColor='0.622449 0.622449 0.622449'> |
| 65 | <!-- Universal Media Library: Neon 17 --> |
| 66 | </Material> |
| 67 | </fieldValue> |
| 68 | <fieldValue name='delayInterval' value='1'/> |
| 69 | </ProtoInstance> |
| 70 | </Transform> |
| 71 | </Scene> |
| 72 | </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.
| line 32
ProtoInstance PushButton |
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 49
ProtoInstance PushButton |
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.
-->