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='IntegerSequencerPrototype.x3d'/> |
6 | <meta name='description' content='This proto, modeled after a ScalarInterpolator, generates an array of integer values based on the input fraction and keys.'/> |
7 | <meta name=' warning ' content=' MFInt32 keyValue accessType is listed as initializeOnly/field, since inputOutput cannot be translated to exposedField in VRML97 scripting. '/> |
8 | <meta name='creator' content='Don Brutzman, Estuko Lippi, Jeff Weekley, Jane Wu, Matthew Braun'/> |
9 | <meta name='created' content='20 August 2001'/> |
10 | <meta name='modified' content='21 January 2020'/> |
11 | <meta name='reference' content='https://www.web3d.org/technicalinfo/specifications/vrml97/part1/nodesRef.html#ScalarInterpolator'/> |
12 | <meta name='subject' content='integer sequencer'/> |
13 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Basic/development/IntegerSequencerPrototype.x3d'/> |
14 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
15 | <meta name='license' content='../license.html'/> |
16 | </head> |
17 | <Scene> |
18 | <WorldInfo title='IntegerSequencerPrototype.x3d'/> |
19 | <ProtoDeclare name='IntegerSequencer'> |
20 | <ProtoInterface> |
21 |
<field name='set_fraction' type='SFFloat' accessType='inputOnly'
appinfo='Regular interpolator-style input, range [0..1]'/> |
22 |
<field name='set_key' type='MFFloat' accessType='inputOnly'
appinfo='Array sequentially increasing typically [0..1]. Must have the same number of keys as keyValues.'/> |
23 |
<field name='key' type='MFFloat' accessType='inputOutput'
appinfo='Array sequentially increasing typically [0..1]. Must have the same number of keys as keyValues.'/> |
24 |
<field name='key_changed' type='MFFloat' accessType='outputOnly'
appinfo='Array sequentially increasing typically [0..1]. Must have the same number of keys as keyValues.'/> |
25 |
<field name='set_keyValue' type='MFInt32' accessType='inputOnly'
appinfo='Array of integer values. Must have the same number of keys as keyValues.'/> |
26 |
<field name='keyValue' type='MFInt32' accessType='initializeOnly'
appinfo='Array of integer values. Must have the same number of keys as keyValues.'/> |
27 |
<field name='keyValue_changed' type='MFInt32' accessType='outputOnly'
appinfo='Array of integer values. Must have the same number of keys as keyValues.'/> |
28 |
<field name='value_changed' type='SFInt32' accessType='outputOnly'
appinfo='Regular interpolator-style input'/> |
29 |
<field name='previous' type='SFBool' accessType='inputOnly'
appinfo='Utility method'/> |
30 |
<field name='next' type='SFBool' accessType='inputOnly'
appinfo='Utility method'/> |
31 | </ProtoInterface> |
32 | <ProtoBody> |
33 | <Group> |
34 | <Switch whichChoice='-1'> |
35 | |
36 | <IS> |
37 | <connect nodeField='key' protoField='key'/> |
38 | </IS> |
39 | </ScalarInterpolator> |
40 | </Switch> |
41 | <Script DEF='SequencerScript' directOutput='true'> |
42 | <!-- Regular interpolator-style input --> |
43 |
<field name='set_fraction' type='SFFloat' accessType='inputOnly'
appinfo='range [0..1]'/> |
44 |
<field name='set_key' type='MFFloat' accessType='inputOnly'
appinfo='Array sequentially increasing [0..1]. Must have the same number of keys as keyValues.'/> |
45 | <field name='keyHolderNode' type='SFNode' accessType='initializeOnly'> |
46 | <ScalarInterpolator USE='KeyHolder'/> |
47 | </field> |
48 |
<field name='key_changed' type='MFFloat' accessType='outputOnly'
appinfo='Array sequentially increasing [0..1]. Must have the same number of keys as keyValues.'/> |
49 |
<field name='set_keyValue' type='MFInt32' accessType='inputOnly'
appinfo='Array of integer values. Must have the same number of keys as keyValues.'/> |
50 | <field name='keyValue' type='MFInt32' accessType='initializeOnly'/> |
51 |
<field name='keyValue_changed' type='MFInt32' accessType='outputOnly'
appinfo='Array of integer values. Must have the same number of keys as keyValues.'/> |
52 | <!-- Regular interpolator-style output --> |
53 | <field name='value_changed' type='SFInt32' accessType='outputOnly'/> |
54 | <!-- Utility methods --> |
55 | <field name='previous' type='SFBool' accessType='inputOnly'/> |
56 | <field name='next' type='SFBool' accessType='inputOnly'/> |
57 |
<field name='traceEnabled' type='SFBool' value='true' accessType='initializeOnly'
appinfo='For development use only not for inclusion in specification implementations.'/> |
58 | <!-- Script-specific interfaces, not needed for node definition --> |
59 | <field name='previousFraction' type='SFFloat' value='0.0' accessType='initializeOnly'/> |
60 | <field name='nextIndex' type='SFInt32' value='0' accessType='initializeOnly'/> |
61 | <field name='isValid' type='SFBool' value='true' accessType='initializeOnly'/> |
62 | <field name='recheckValidity' type='SFBool' value='false' accessType='initializeOnly'/> |
63 | <IS> |
64 | <connect nodeField='set_fraction' protoField='set_fraction'/> |
65 | <connect nodeField='set_key' protoField='set_key'/> |
66 | <connect nodeField='key_changed' protoField='key_changed'/> |
67 | <connect nodeField='set_keyValue' protoField='set_keyValue'/> |
68 | <connect nodeField='keyValue' protoField='keyValue'/> |
69 | <connect nodeField='keyValue_changed' protoField='keyValue_changed'/> |
70 | <connect nodeField='value_changed' protoField='value_changed'/> |
71 | <connect nodeField='previous' protoField='previous'/> |
72 | <connect nodeField='next' protoField='next'/> |
73 | </IS> |
75 | </Script> |
76 | </Group> |
77 | </ProtoBody> |
78 | </ProtoDeclare> |
79 | <!-- ===============Example============== --> |
80 | <Anchor description='IntegerSequencerExample' parameter='"target=_blank"' url=' "IntegerSequencerExample.x3d" "https://savage.nps.edu/Savage/Tools/Animation/IntegerSequencerExample.x3d" "IntegerSequencerExample.wrl" "https://savage.nps.edu/Savage/Tools/Animation/IntegerSequencerExample.wrl" '> |
81 | <Shape> |
82 | <Text string='"IntegerSequencerPrototype" "defines a prototype" "" "Click text to see example scene" "IntegerSequencerExample"'> |
83 | <FontStyle justify='"MIDDLE" "MIDDLE"' size='0.9'/> |
84 | </Text> |
85 | <Appearance> |
86 | <Material diffuseColor='1 1 0.2'/> |
87 | </Appearance> |
88 | </Shape> |
89 | </Anchor> |
90 | </Scene> |
91 | </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.
SequencerScript
Script |
No ROUTE connection found for output events from this node. Contains SFNode field with direct access to another node. |
Anchor |
description='IntegerSequencerExample' User-interaction hint for this node. |
<!--
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)
<ProtoDeclare
name='ProtoName'>
<field
name='fieldName'/> </ProtoDeclare>
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->