X3D Model Documentation: PajekVisualizationExamples.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://www.web3d.org/specifications/x3d-3.2.dtd">
  3  <X3D profile='Immersive' version='3.2 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.2.xsd'>
  4       <head>
  5            <meta name='titlecontent='PajekVisualizationExamples.x3d'/>
  6            <meta name='descriptioncontent='Reverse engineer and hopefully elaborate on Pajek visualization structures'/>
  7            <meta name='creatorcontent='Don Brutzman and Elaine Reid'/>
  8            <meta name='createdcontent='17 May 2011'/>
  9            <meta name='modifiedcontent='25 September 2023'/>
 10            <meta name='referencecontent='http://pajek.imfm.si'/>
 11            <meta name='subjectcontent='network visualization'/>
 12            <meta name='identifiercontent='https://savage.nps.edu/Savage/Tools/Visualization/PajekVisualizationExamples.x3d'/>
 13            <meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
 14            <meta name='licensecontent='../../license.html'/>
 15       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: infogroup, NetText

Index for Viewpoint node: Viewpoint_1

Index for ExternProtoDeclare definitions: Arc, NetworkText, Vertex
-->
 16       <Scene>
 17            <WorldInfo title='PajekVisualizationExamples.x3d'/>
 18            <ExternProtoDeclare name='Arcappinfo='Arc is a network connection between Vertex nodes, displayed using Cylinder/Cone (arrow/arrowhead) geometry with modifiable color and transparency'   url=' "PajekVisualizationPrototypes.x3d#Arc" "https://savage.nps.edu/Savage/Tools/Visualization/PajekVisualizationPrototypes.x3d#Arc" '>
 19                 <field name='nametype='SFStringaccessType='inputOutput'
                appinfo='name to identify this Arc'/>
 20                 <field name='descriptiontype='SFStringaccessType='inputOutput'
                appinfo='popup text describing this Arc'/>
 21                 <field name='cylinderHeighttype='SFFloataccessType='initializeOnly'
                appinfo='length of Arc between Vertex locations'/>
 22                 <field name='urltype='MFStringaccessType='inputOutput'
                appinfo='link to some other resource'/>
 23                 <field name='cylinderTranslationtype='SFVec3faccessType='inputOutput'
                appinfo='location of Arc'/>
 24                 <field name='coneTranslationtype='SFVec3faccessType='inputOutput'
                appinfo='see TODO items in ArcScript'/>
 25                 <field name='rotationtype='SFRotationaccessType='inputOutput'
                appinfo='orientation of Arc'/>
 26                 <field name='displayModetype='SFStringaccessType='inputOutput'
                appinfo='rendering choices: BallAndStick, Ball, Stick'/>
 27                 <field name='diffuseColortype='SFColoraccessType='inputOutput'
                appinfo='diffuseColor of Arc'/>
 28                 <field name='transparencytype='SFFloataccessType='inputOutput'
                appinfo='transparency of Arc'/>
 29                 <field name='ballRadiustype='SFFloataccessType='inputOutput'
                appinfo='offset distance for Cone arrowhead; TODO this needs to match values in the Vertex protopye, which is iniitialized separately'/>
 30                 <field name='traceEnabledtype='SFBoolaccessType='inputOutput'
                appinfo='debug trace to Browser output console'/>
 31            </ExternProtoDeclare>
 32            <!-- Add any ROUTEs here that connect ProtoInstance to/from prior nodes in Scene (and outside of ProtoDeclare) -->
 33            <!-- Default values for fieldValue types instead of for the Prototype -->
 34            <!-- Add any ROUTEs here that connect ProtoInstance to/from prior nodes in Scene (and outside of ProtoDeclare) -->
 35            <ExternProtoDeclare name='Vertexappinfo='Vertex is a node, typically connected by zero or more Arc segments, and displayed using Sphere geometry with modifiable color and transparency'   url=' "PajekVisualizationPrototypes.x3d#Vertex" "https://savage.nps.edu/Savage/Tools/Visualization/PajekVisualizationPrototypes.x3d#Vertex" '>
 36                 <field name='nametype='SFStringaccessType='inputOutput'
                appinfo='name to identify this Vertex'/>
 37                 <field name='descriptiontype='SFStringaccessType='inputOutput'
                appinfo='popup text describing this Vertex'/>
 38                 <field name='urltype='MFStringaccessType='inputOutput'
                appinfo='link to some other resource'/>
 39                 <field name='radiustype='SFFloataccessType='initializeOnly'
                appinfo='size of Vertex ball'/>
 40                 <field name='displayModetype='SFStringaccessType='inputOutput'
                appinfo='rendering choices: BallAndStick, Ball, Stick'/>
 41                 <field name='diffuseColortype='SFColoraccessType='inputOutput'
                appinfo='diffuseColor of Vertex'/>
 42                 <field name='transparencytype='SFFloataccessType='inputOutput'
                appinfo='transparency of Vertex'/>
 43                 <field name='translationtype='SFVec3faccessType='inputOutput'
                appinfo='location of Vertex'/>
 44                 <field name='vertexTexttype='MFStringaccessType='inputOutput'
                appinfo='labels to identify Vertex'/>
 45                 <field name='textTranslationtype='SFVec3faccessType='inputOutput'
                appinfo='location of Text'/>
 46                 <field name='textColortype='SFColoraccessType='inputOutput'
                appinfo='diffuseColor of Text'/>
 47            </ExternProtoDeclare>
 48            <ProtoInstance name='Vertex'>
 49                 <fieldValue name='name'/>
 50                 <fieldValue name='description'/>
 51                 <fieldValue name='radiusvalue='0.0'/>
 52                 <fieldValue name='displayMode'/>
 53                 <fieldValue name='diffuseColorvalue='0 0 0'/>
 54                 <fieldValue name='transparencyvalue='0'/>
 55                 <fieldValue name='translationvalue='0 0 0'/>
 56                 <fieldValue name='textTranslationvalue='0 0 0'/>
 57                 <fieldValue name='textColorvalue='0 0 0'/>
 58            </ProtoInstance>
 59            <!-- Add any ROUTEs here that connect ProtoInstance to/from prior nodes in Scene (and outside of ProtoDeclare) -->
 60            <ExternProtoDeclare name='NetworkTextappinfo='Text describing what the Vertices and Arcs are about'   url=' "PajekVisualizationPrototypes.x3d#NetworkText" "https://savage.nps.edu/Savage/Tools/Visualization/PajekVisualizationPrototypes.x3d#NetworkText" '>
 61                 <field name='texttype='MFStringaccessType='inputOutput'
                appinfo='information to identify the Integral Network'/>
 62            </ExternProtoDeclare>
 63            <ProtoInstance name='NetworkText'/>
 64            <!-- Add any ROUTEs here that connect ProtoInstance to/from prior nodes in Scene (and outside of ProtoDeclare) -->
 65            <Background groundAngle='1.309 1.570796groundColor='0 0.5 0.7 0 0.4 0.7 0.6 0.5 0.7skyAngle='1.309 1.571skyColor='0 0.5 0.8 0 0.6 0.7 0.6 0.6 0.7'/>
 66            <PointLight ambientIntensity='1location='0 0 5radius='30'/>
 67            <NavigationInfo transitionType='"ANIMATE"type='"EXAMINE" "FLY" "ANY"'/>
 68            <Viewpoint description='Inspect 15JAN2010Newmanorientation='1 0 0 -0.0997position='0 2 20'/>
 69            <!-- type="3D" <date day ="3" month="5" year="2011"/> -->
 70            <Transform DEF='infogrouptranslation='-8 2 -4'>
 71                 <Transform DEF='NetTexttranslation='0 6 0'>
 72                      <ProtoInstance name='NetworkText'>
 73                           <fieldValue name='textvalue='"15JAN2010"'/>
 74                      </ProtoInstance>
 75                 </Transform>
 76            </Transform>
 77            <Group>
 78                 <Transform>
 79                      <ProtoInstance name='Vertex'>
 80                           <fieldValue name='namevalue='Vertex 1'/>
 81                           <fieldValue name='descriptionvalue='2010-01-15-ARMY.MIL'/>
 82                           <fieldValue name='radiusvalue='.1500'/>
 83                           <fieldValue name='displayModevalue='BallAndStick'/>
 84                           <fieldValue name='diffuseColorvalue='0 0 0'/>
 85                           <fieldValue name='transparencyvalue='0'/>
 86                           <fieldValue name='translationvalue='0.06344 -0.26178 -0.55101'/>
 87                           <fieldValue name='vertexTextvalue='"2010-01-15-ARMY.MIL"'/>
 88                           <fieldValue name='textTranslationvalue='0.06344 -0.26178 -0.55101'/>
 89                           <fieldValue name='textColorvalue='0 0 0'/>
 90                      </ProtoInstance>
 91                      <ProtoInstance name='Arc'>
 92                           <fieldValue name='namevalue='1.24'/>
 93                           <fieldValue name='descriptionvalue='From blah to blah'/>
 94                           <fieldValue name='urlvalue='"http://www.google.com"'/>
 95                           <fieldValue name='cylinderHeightvalue='0.64770'/>
 96                           <fieldValue name='cylinderTranslationvalue='-0.35062 -0.44066 -0.60713'/>
 97                           <fieldValue name='coneTranslationvalue='-.48422 -.53116 -.63552'/>
 98                           <fieldValue name='rotationvalue='-11.22472 0 52.81325 2.15598'/>
 99                           <fieldValue name='displayModevalue='BallAndStick'/>
100                           <fieldValue name='diffuseColorvalue='0 0 0'/>
101                           <fieldValue name='transparencyvalue='0'/>
102                           <fieldValue name='ballRadiusvalue='1'/>
103                      </ProtoInstance>
104                      <ProtoInstance name='Vertex'>
105                           <fieldValue name='namevalue='Vertex 2'/>
106                           <fieldValue name='descriptionvalue='2010-01-15BLOGS.STATE.GOV-INDEX.PHP'/>
107                           <fieldValue name='vertexTextvalue='"2010-01-15BLOGS.STATE.GOV-INDEX.PHP"'/>
108                           <fieldValue name='textTranslationvalue='1.43526 1.19707 0.67279'/>
109                           <fieldValue name='textColorvalue='0 0 0'/>
110                           <fieldValue name='urlvalue='"http://www.state.gov"'/>
111                           <fieldValue name='translationvalue='1.28526 1.19707 0.67279'/>
112                           <fieldValue name='radiusvalue='0.1500'/>
113                           <fieldValue name='displayModevalue='BallAndStick'/>
114                           <fieldValue name='diffuseColorvalue='0.5020 0 0'/>
115                           <fieldValue name='transparencyvalue='0'/>
116                      </ProtoInstance>
117                      <ProtoInstance name='Arc'>
118                           <fieldValue name='namevalue='1.26'/>
119                           <fieldValue name='descriptionvalue='From blah1 to blah1'/>
120                           <fieldValue name='urlvalue='"http://www.google.com"'/>
121                           <fieldValue name='cylinderHeightvalue='1.28361'/>
122                           <fieldValue name='cylinderTranslationvalue='-0.12911 0.32068 -0.81718'/>
123                           <fieldValue name='coneTranslationvalue='-0.16106 0.75793 -1.01700'/>
124                           <fieldValue name='rotationvalue='-53.23500 0 8.51149 0.43344'/>
125                           <fieldValue name='displayModevalue='BallAndStick'/>
126                           <fieldValue name='diffuseColorvalue='0 0 0'/>
127                           <fieldValue name='transparencyvalue='0'/>
128                           <fieldValue name='ballRadiusvalue='1'/>
129                      </ProtoInstance>
130                      <ProtoInstance name='Vertex'>
131                           <fieldValue name='namevalue='Vertex 3'/>
132                           <fieldValue name='descriptionvalue='2010-01-15-FEEDS.FEEDBURNER.COM-DIPNOTE'/>
133                           <fieldValue name='vertexTextvalue='"2010-01-15-FEEDS.FEEDBURNER.COM-DIPNOTE"'/>
134                           <fieldValue name='textColorvalue='0 0 0'/>
135                           <fieldValue name='textTranslationvalue='0.08377 1.98542 -1.19849'/>
136                           <fieldValue name='urlvalue='"http://www.feedburner.com"'/>
137                           <fieldValue name='translationvalue='-0.06623 1.98542 -1.19849'/>
138                           <fieldValue name='radiusvalue='.1500'/>
139                           <fieldValue name='displayModevalue='BallAndStick'/>
140                           <fieldValue name='diffuseColorvalue='1.0000 0 0'/>
141                           <fieldValue name='transparencyvalue='0'/>
142                      </ProtoInstance>
143                      <ProtoInstance name='Arc'>
144                           <fieldValue name='namevalue='1.39'/>
145                           <fieldValue name='descriptionvalue='From blah2 to blah2'/>
146                           <fieldValue name='urlvalue='"http://www.google.com"'/>
147                           <fieldValue name='cylinderHeightvalue='1.12537'/>
148                           <fieldValue name='cylinderTranslationvalue='-0.35500 -0.38541 -1.02982'/>
149                           <fieldValue name='coneTranslationvalue='-0.54712 -0.47389 -1.37249'/>
150                           <fieldValue name='rotationvalue='-95.76386 0 53.68924 1.79233'/>
151                           <fieldValue name='displayModevalue='BallAndStick'/>
152                           <fieldValue name='diffuseColorvalue='0 0 0'/>
153                           <fieldValue name='transparencyvalue='0'/>
154                           <fieldValue name='ballRadiusvalue='1'/>
155                      </ProtoInstance>
156                 </Transform>
157            </Group>
158       </Scene>
159  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: infogroup, NetText

Index for Viewpoint node: Viewpoint_1

Index for ExternProtoDeclare definitions: Arc, NetworkText, Vertex
-->
X3D Tooltips element index: Background, ExternProtoDeclare, field, fieldValue, Group, head, meta, NavigationInfo, PointLight, ProtoInstance, Scene, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

-->
<!-- Online at
https://savage.nps.edu/Savage/Tools/Visualization/PajekVisualizationExamplesIndex.html -->
<!-- Version control at
https://gitlab.nps.edu/Savage/Savage/Tools/Visualization/PajekVisualizationExamples.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)
    <ProtoInstance name='ProtoName'> <field name='fieldName'/> </ProtoInstance> -->

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