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='XvlShellProtoDeclare.x3d'/> |
6 | <meta name='description' content='This is a development scene used to define the ProtoDeclaration for the XvlShell native node.'/> |
7 | <meta name=' warning ' content=' This scene is not for example use, instead it is a development scene used during X3D design. '/> |
8 | <meta name='creator' content='Marc Jablonski'/> |
9 | <meta name='created' content='22 November 2001'/> |
10 | <meta name='modified' content='20 October 2019'/> |
11 | <meta name=' error ' content=' Test X3D DTD experimental extensions mechanisms, the XVL nodes are not legal X3D '/> |
12 | <meta name='reference' content='readme.txt'/> |
13 | <meta name='reference' content='docs/LatticeXvl/LatticeXvlOverview.html'/> |
14 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/Basic/LatticeXvl/docs/LatticeXvl/LatticeXvlOverview.html'/> |
15 | <meta name='reference' content='http://www.xvl3d.com'/> |
16 | <meta name='subject' content='Lattice XVL parametric geometry X3D VRML'/> |
17 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Basic/LatticeXvl/XvlShellProtoDeclare.x3d'/> |
18 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
19 | <meta name='license' content='../license.html'/> |
20 | </head> |
21 | <Scene> |
22 | <WorldInfo title='XvlShellProtoDeclare.x3d'/> |
23 | <ProtoDeclare name='XvlShell'> |
24 | <ProtoInterface> |
25 | <!-- Allowable children of XvlShell: a single Coordinate node (required for rendering) and a single TextureCoordinate node (optional) --> |
26 | <field name='shellType' type='SFInt32' value='1' accessType='initializeOnly'/> |
27 | <field name='numberOfDivisions' type='SFInt32' value='4' accessType='initializeOnly'/> |
28 | <field name='coord' type='SFNode' accessType='initializeOnly'/> |
29 | <field name='texCoord' type='SFNode' accessType='initializeOnly'/> |
30 | <field name='vertexRound' type='MFFloat' accessType='initializeOnly'/> |
31 | <field name='edgeBeginCoordIndex' type='MFInt32' accessType='initializeOnly'/> |
32 | <field name='edgeEndCoordIndex' type='MFInt32' accessType='initializeOnly'/> |
33 | <field name='edgeRound' type='MFFloat' accessType='initializeOnly'/> |
34 | <field name='edgeBeginVector' type='MFVec3f' accessType='initializeOnly'/> |
35 | <field name='edgeEndVector' type='MFVec3f' accessType='initializeOnly'/> |
36 | <field name='faceCoordIndex' type='MFInt32' accessType='initializeOnly'/> |
37 | <field name='faceTexCoordIndex' type='MFInt32' accessType='initializeOnly'/> |
38 | <field name='faceEmpty' type='MFBool' accessType='initializeOnly'/> |
39 | <field name='faceHidden' type='MFBool' accessType='initializeOnly'/> |
40 | </ProtoInterface> |
41 | <ProtoBody> |
42 |
<!-- ROUTE information for IFS node:
[from XvlShellScript.coord_changed to set_coord
]
[from XvlShellScript.coordIndex_changed to set_coordIndex
]
[from XvlShellScript.texCoord_changed to set_texCoord
]
[from XvlShellScript.normal_changed to set_normal
]
-->
<IndexedFaceSet DEF='IFS'> |
43 | <Coordinate/> |
44 | <Normal/> |
45 | <TextureCoordinate/> |
46 | </IndexedFaceSet> |
47 | <!-- Warning: VRML97-style scripting, not X3D Scene Authoring Interface (SAI) --> |
48 |
<!-- ROUTE information for XvlShellScript node:
[from coord_changed to IFS.set_coord
]
[from coordIndex_changed to IFS.set_coordIndex
]
[from texCoord_changed to IFS.set_texCoord
]
[from normal_changed to IFS.set_normal
]
-->
<Script DEF='XvlShellScript' directOutput='true' url=' "XvlShell.class" "https://www.web3d.org/x3d/content/examples/Basic/LatticeXvl/XvlShell.class" '> |
49 | <field name='mShellType' type='SFInt32' accessType='initializeOnly'/> |
50 | <field name='mNumDiv' type='SFInt32' accessType='initializeOnly'/> |
51 | <field name='mCoord' type='SFNode' accessType='initializeOnly'/> |
52 | <field name='mTexCoord' type='SFNode' accessType='initializeOnly'/> |
53 | <field name='mVtxRound' type='MFFloat' accessType='initializeOnly'/> |
54 | <field name='mEdgeV0' type='MFInt32' accessType='initializeOnly'/> |
55 | <field name='mEdgeV1' type='MFInt32' accessType='initializeOnly'/> |
56 | <field name='mEdgeRound' type='MFFloat' accessType='initializeOnly'/> |
57 | <field name='mEdgeVec0' type='MFVec3f' accessType='initializeOnly'/> |
58 | <field name='mEdgeVec1' type='MFVec3f' accessType='initializeOnly'/> |
59 | <field name='mFaceCoordIndex' type='MFInt32' accessType='initializeOnly'/> |
60 | <field name='mFaceTexCoordIndex' type='MFInt32' accessType='initializeOnly'/> |
61 | <field name='mFaceEmpty' type='MFBool' accessType='initializeOnly'/> |
62 | <field name='mFaceHidden' type='MFBool' accessType='initializeOnly'/> |
63 | <field name='coord_changed' type='SFNode' accessType='outputOnly'/> |
64 | <field name='coordIndex_changed' type='MFInt32' accessType='outputOnly'/> |
65 | <field name='texCoord_changed' type='SFNode' accessType='outputOnly'/> |
66 | <field name='normal_changed' type='SFNode' accessType='outputOnly'/> |
67 | <IS> |
68 | <connect nodeField='mShellType' protoField='shellType'/> |
69 | <connect nodeField='mNumDiv' protoField='numberOfDivisions'/> |
70 | <connect nodeField='mCoord' protoField='coord'/> |
71 | <connect nodeField='mTexCoord' protoField='texCoord'/> |
72 | <connect nodeField='mVtxRound' protoField='vertexRound'/> |
73 | <connect nodeField='mEdgeV0' protoField='edgeBeginCoordIndex'/> |
74 | <connect nodeField='mEdgeV1' protoField='edgeEndCoordIndex'/> |
75 | <connect nodeField='mEdgeRound' protoField='edgeRound'/> |
76 | <connect nodeField='mEdgeVec0' protoField='edgeBeginVector'/> |
77 | <connect nodeField='mEdgeVec1' protoField='edgeEndVector'/> |
78 | <connect nodeField='mFaceCoordIndex' protoField='faceCoordIndex'/> |
79 | <connect nodeField='mFaceTexCoordIndex' protoField='faceTexCoordIndex'/> |
80 | <connect nodeField='mFaceEmpty' protoField='faceEmpty'/> |
81 | <connect nodeField='mFaceHidden' protoField='faceHidden'/> |
82 | </IS> |
83 | </Script> |
84 | < ROUTE fromNode='XvlShellScript' fromField='coord_changed' toNode='IFS' toField='set_coord'/> |
85 | < ROUTE fromNode='XvlShellScript' fromField='coordIndex_changed' toNode='IFS' toField='set_coordIndex'/> |
86 | < ROUTE fromNode='XvlShellScript' fromField='texCoord_changed' toNode='IFS' toField='set_texCoord'/> |
87 | < ROUTE fromNode='XvlShellScript' fromField='normal_changed' toNode='IFS' toField='set_normal'/> |
88 | </ProtoBody> |
89 | </ProtoDeclare> |
90 | <Background groundColor='0 .1 .2' skyColor='0 .1 .2'/> |
91 | <Viewpoint description='Hello LatticeXvl prototype' position='0 0 8'/> |
92 | <!-- Redirection text in case a user examines this PROTO file via a 3D browser: --> |
93 | <Anchor description='XvlShellAttributeAll' parameter='"target=_blank"' url=' "XvlShellAttributeAll.wrl" "https://www.web3d.org/x3d/content/examples/Basic/LatticeXvl/XvlShellAttributeAll.wrl" "XvlShellAttributeAll.x3d" "https://www.web3d.org/x3d/content/examples/Basic/LatticeXvl/XvlShellAttributeAll.x3d" '> |
94 | <Shape> |
95 | <Appearance> |
96 | <Material diffuseColor='0 1 1' emissiveColor='0 1 1'/> |
97 | </Appearance> |
98 | <Text string='"XvlShellProtoDeclare.wrl" "is a ProtoDeclare definition file." "" "To see an example scene using this new node," "click this text and view XvlShellAttributeAll"'> |
99 | <FontStyle justify='"MIDDLE" "MIDDLE"' size='0.5'/> |
100 | </Text> |
101 | </Shape> |
102 | </Anchor> |
103 | </Scene> |
104 | </X3D> |
Event Graph ROUTE Table entries with 4 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.
XvlShellScript
Script coord_changed SFNode |
IFS
IndexedFaceSet set_coord SFNode |
|
XvlShellScript
Script coordIndex_changed MFInt32 |
IFS
IndexedFaceSet set_coordIndex MFInt32 |
|
XvlShellScript
Script texCoord_changed SFNode |
IFS
IndexedFaceSet set_texCoord SFNode |
|
XvlShellScript
Script normal_changed SFNode |
IFS
IndexedFaceSet set_normal SFNode |
Anchor |
description='XvlShellAttributeAll' 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. -->