X3D Model Documentation: GridXZPrototype.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
  3  <X3D profile='Immersive' version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'>
  4       <head>
  5            <meta name='titlecontent=' GridXZPrototype.x3d '/>
  6            <meta name='creatorcontent='Don Brutzman'/>
  7            <meta name='createdcontent='2 February 2003'/>
  8            <meta name='modifiedcontent='28 November 2019'/>
  9            <meta name='descriptioncontent='Line grid authoring tool to enable precise measurement of objects in 3D space - fixed position. Oriented along XZ plane, size 20m by 20m, default block size 1m by 1m.'/>
 10            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridXZPrototype.x3d '/>
 11            <meta name='generatorcontent='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 12            <meta name='licensecontent='../../license.html'/>
 13       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: East, EastText, EndPoints, GridLocation, LabelAppearance, LabelFont, LabelsOffset, Liines, LinesAlignedAlongX, LinesAlignedAlongZ, North, NorthEast, NorthEastText, NorthText, NorthWest, NorthWestText, Origin, OriginText, South, SouthEast, SouthEastText, SouthText, SouthWest, SouthWestText, West, WestText

Index for Viewpoint node: Viewpoint_1

Index for ProtoDeclare definition: GridXZ
-->
 14       <Scene>
 15            <WorldInfo title='GridXZPrototype.x3d'/>
 16            <ProtoDeclare name='GridXZappinfo='Line grid authoring tool to enable precise measurement of objects in 3D space - fixed position. Oriented along XZ plane size 20m by 20m.'>
 17                 <ProtoInterface>
 18                      <field name='descriptiontype='SFStringvalue='GridXZaccessType='initializeOnly'
                     appinfo='Purpose of this grid displayed for overall Viewpoint'/>
 19                      <field name='labelColortype='SFColorvalue='1 1 1accessType='inputOutput'
                     appinfo='color for descriptive labels at grid edges and corners'/>
 20                      <field name='scaletype='SFVec3fvalue='1 1 1accessType='inputOutput'
                     appinfo='default unscaled size: 10m by 10m'/>
 21                      <field name='labelsOffsettype='SFVec3fvalue='0 -0.5 0accessType='inputOutput'
                     appinfo='label location offset (in meters) to improve readability'/>
 22                      <field name='originLabeltype='MFStringvalue='"origin" "0 0 0"accessType='inputOutput'/>
 23                      <field name='NorthLabeltype='MFStringvalue='"North" "-Z"accessType='inputOutput'
                     appinfo='-Z axis'/>
 24                      <field name='NorthEastLabeltype='MFStringvalue='"10 0 -10"accessType='inputOutput'/>
 25                      <field name='EastLabeltype='MFStringvalue='"East" "+X"accessType='inputOutput'
                     appinfo='+X axis'/>
 26                      <field name='SouthEastLabeltype='MFStringvalue='"10 0 10"accessType='inputOutput'/>
 27                      <field name='SouthLabeltype='MFStringvalue='"South" "+Z"accessType='inputOutput'
                     appinfo='+Z axis'/>
 28                      <field name='SouthWestLabeltype='MFStringvalue='"-10 0 10"accessType='inputOutput'/>
 29                      <field name='WestLabeltype='MFStringvalue='"West" "-X"accessType='inputOutput'
                     appinfo='-X axis'/>
 30                      <field name='NorthWestLabeltype='MFStringvalue='"-10 0 -10"accessType='inputOutput'/>
 31                 </ProtoInterface>
 32                 <ProtoBody>
 33                      <Transform DEF='GridLocation'>
 34                           <IS>
 35                                <connect nodeField='scaleprotoField='scale'/>
 36                           </IS>
 37                           <Viewpoint orientation='1 0 0 -0.4position='0 10 25'>
 38                                <IS>
 39                                     <connect nodeField='descriptionprotoField='description'/>
 40                                </IS>
 41                           </Viewpoint>
 42                           <Group DEF='Liines'>
 43 
                              <!-- Shape LinesAlignedAlongZ is a DEF node that has 1 USE node: USE_1 -->
                              <Shape DEF='LinesAlignedAlongZ'>
 44                                     <IndexedLineSet colorPerVertex='falsecolorIndex='1 0 0 0 0 2 0 0 0 0 1 0 0 0 0 2 0 0 0 0 1coordIndex='1 22 -1 2 23 -1 3 24 -1 4 25 -1 5 26 -1 6 27 -1 7 28 -1 8 29 -1 9 30 -1 10 31 -1 11 32 -1 12 33 -1 13 34 -1 14 35 -1 15 36 -1 16 37 -1 17 38 -1 18 39 -1 19 40 -1 20 41 -1 21 42 -1'>
 45                                          <Coordinate DEF='EndPointspoint='0 0 0 -10 0 10 -9 0 10 -8 0 10 -7 0 10 -6 0 10 -5 0 10 -4 0 10 -3 0 10 -2 0 10 -1 0 10 0 0 10 1 0 10 2 0 10 3 0 10 4 0 10 5 0 10 6 0 10 7 0 10 8 0 10 9 0 10 10 0 10 -10 0 -10 -9 0 -10 -8 0 -10 -7 0 -10 -6 0 -10 -5 0 -10 -4 0 -10 -3 0 -10 -2 0 -10 -1 0 -10 0 0 -10 1 0 -10 2 0 -10 3 0 -10 4 0 -10 5 0 -10 6 0 -10 7 0 -10 8 0 -10 9 0 -10 10 0 -10'/>
 46                                          <Color color='0.4 0.4 0.4 0.8 0.2 0 0.4 0.1 0.05'/>
 47                                     </IndexedLineSet>
 48                                </Shape>
 49                                <Transform DEF='LinesAlignedAlongXrotation='0 1 0 1.57079'>
 50                                     <Shape USE='LinesAlignedAlongZ'/>
 51                                </Transform>
 52                           </Group>
 53                           <Transform DEF='LabelsOffset'>
 54                                <IS>
 55                                     <connect nodeField='translationprotoField='labelsOffset'/>
 56                                </IS>
 57                                <Transform DEF='Origintranslation='0 -0.5 0'>
 58                                     <Billboard>
 59                                          <Shape>
 60 
                                             <!-- Appearance LabelAppearance is a DEF node that has 8 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5, USE_6, USE_7, USE_8 -->
                                             <Appearance DEF='LabelAppearance'>
 61                                                    <Material>
 62                                                         <IS>
 63                                                              <connect nodeField='diffuseColorprotoField='labelColor'/>
 64                                                         </IS>
 65                                                    </Material>
 66                                               </Appearance>
 67                                               <Text DEF='OriginText'>
 68                                                    <IS>
 69                                                         <connect nodeField='stringprotoField='originLabel'/>
 70                                                    </IS>
 71 
                                                  <!-- FontStyle LabelFont is a DEF node that has 8 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5, USE_6, USE_7, USE_8 -->
                                                  <FontStyle DEF='LabelFontfamily='"TYPEWRITER"justify='"MIDDLE" "MIDDLE"size='0.4'/>
 72                                               </Text>
 73                                          </Shape>
 74                                     </Billboard>
 75                                </Transform>
 76                                <Transform DEF='Northtranslation='0 -0.5 -10'>
 77                                     <Billboard>
 78                                          <Shape>
 79                                               <Appearance USE='LabelAppearance'/>
 80                                               <Text DEF='NorthText'>
 81                                                    <IS>
 82                                                         <connect nodeField='stringprotoField='NorthLabel'/>
 83                                                    </IS>
 84                                                    <FontStyle USE='LabelFont'/>
 85                                               </Text>
 86                                          </Shape>
 87                                     </Billboard>
 88                                </Transform>
 89                                <Transform DEF='NorthEasttranslation='10 -0.5 -10'>
 90                                     <Billboard>
 91                                          <Shape>
 92                                               <Appearance USE='LabelAppearance'/>
 93                                               <Text DEF='NorthEastText'>
 94                                                    <IS>
 95                                                         <connect nodeField='stringprotoField='NorthEastLabel'/>
 96                                                    </IS>
 97                                                    <FontStyle USE='LabelFont'/>
 98                                               </Text>
 99                                          </Shape>
100                                     </Billboard>
101                                </Transform>
102                                <Transform DEF='Easttranslation='10 -0.5 0'>
103                                     <Billboard>
104                                          <Shape>
105                                               <Appearance USE='LabelAppearance'/>
106                                               <Text DEF='EastText'>
107                                                    <IS>
108                                                         <connect nodeField='stringprotoField='EastLabel'/>
109                                                    </IS>
110                                                    <FontStyle USE='LabelFont'/>
111                                               </Text>
112                                          </Shape>
113                                     </Billboard>
114                                </Transform>
115                                <Transform DEF='SouthEasttranslation='10 -0.5 10'>
116                                     <Billboard>
117                                          <Shape>
118                                               <Appearance USE='LabelAppearance'/>
119                                               <Text DEF='SouthEastText'>
120                                                    <IS>
121                                                         <connect nodeField='stringprotoField='SouthEastLabel'/>
122                                                    </IS>
123                                                    <FontStyle USE='LabelFont'/>
124                                               </Text>
125                                          </Shape>
126                                     </Billboard>
127                                </Transform>
128                                <Transform DEF='Southtranslation='0 -0.5 10'>
129                                     <Billboard>
130                                          <Shape>
131                                               <Appearance USE='LabelAppearance'/>
132                                               <Text DEF='SouthText'>
133                                                    <IS>
134                                                         <connect nodeField='stringprotoField='SouthLabel'/>
135                                                    </IS>
136                                                    <FontStyle USE='LabelFont'/>
137                                               </Text>
138                                          </Shape>
139                                     </Billboard>
140                                </Transform>
141                                <Transform DEF='SouthWesttranslation='-10 -0.5 10'>
142                                     <Billboard>
143                                          <Shape>
144                                               <Appearance USE='LabelAppearance'/>
145                                               <Text DEF='SouthWestText'>
146                                                    <IS>
147                                                         <connect nodeField='stringprotoField='SouthWestLabel'/>
148                                                    </IS>
149                                                    <FontStyle USE='LabelFont'/>
150                                               </Text>
151                                          </Shape>
152                                     </Billboard>
153                                </Transform>
154                                <Transform DEF='Westtranslation='-10 -0.5 0'>
155                                     <Billboard>
156                                          <Shape>
157                                               <Appearance USE='LabelAppearance'/>
158                                               <Text DEF='WestText'>
159                                                    <IS>
160                                                         <connect nodeField='stringprotoField='WestLabel'/>
161                                                    </IS>
162                                                    <FontStyle USE='LabelFont'/>
163                                               </Text>
164                                          </Shape>
165                                     </Billboard>
166                                </Transform>
167                                <Transform DEF='NorthWesttranslation='-10 -0.5 -10'>
168                                     <Billboard>
169                                          <Shape>
170                                               <Appearance USE='LabelAppearance'/>
171                                               <Text DEF='NorthWestText'>
172                                                    <IS>
173                                                         <connect nodeField='stringprotoField='NorthWestLabel'/>
174                                                    </IS>
175                                                    <FontStyle USE='LabelFont'/>
176                                               </Text>
177                                          </Shape>
178                                     </Billboard>
179                                </Transform>
180                           </Transform>
181                      </Transform>
182                 </ProtoBody>
183            </ProtoDeclare>
184            <Anchor description='GridXZ Example'   url=' "GridXZExample.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridXZExample.x3d" "GridXZExample.wrl" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridXZExample.wrl" '>
185                 <Shape>
186                      <Appearance>
187                           <Material diffuseColor='0 1 1emissiveColor='0 1 1'/>
188                      </Appearance>
189                      <Text string='"GridXZPrototype" "is a Prototype definition file." "" "To see an example scene" "click this text and view" "GridXZExample."'>
190                           <FontStyle justify='"MIDDLE" "MIDDLE"'/>
191                      </Text>
192                 </Shape>
193            </Anchor>
194       </Scene>
195  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: East, EastText, EndPoints, GridLocation, LabelAppearance, LabelFont, LabelsOffset, Liines, LinesAlignedAlongX, LinesAlignedAlongZ, North, NorthEast, NorthEastText, NorthText, NorthWest, NorthWestText, Origin, OriginText, South, SouthEast, SouthEastText, SouthText, SouthWest, SouthWestText, West, WestText

Index for Viewpoint node: Viewpoint_1

Index for ProtoDeclare definition: GridXZ
-->
X3D Tooltips element index: Anchor, Appearance, Billboard, Color, connect, Coordinate, field, FontStyle, Group, head, IndexedLineSet, IS, Material, meta, ProtoBody, ProtoDeclare, ProtoInterface, Scene, Shape, Text, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

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 184
Anchor
description='GridXZ Example' 
User-interaction hint for this node. 

Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridXZPrototypeIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridXZPrototype.x3d -->

<!-- Color-coding legend: X3D terminology <X3dNode  DEF='idNamefield='value'/> matches XML terminology <XmlElement  DEF='idNameattribute='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> -->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->