@prefix : . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix schema: . @prefix dcterms: . @prefix xsd: . @prefix x3d: . @prefix x3do: . :X3D a owl:NamedIndividual, x3do:X3D ; x3do:hasHead :head ; x3do:hasScene :Scene ; x3do:profile 'Immersive' ; x3do:version '3.0' ; x3do:noNamespaceSchemaLocation 'https://www.web3d.org/specifications/x3d-3.0.xsd' . :head a owl:NamedIndividual, x3do:head ; x3do:hasParent :X3D ; x3do:hasMeta :meta_1_1, :meta_1_2, :meta_1_3, :meta_1_4, :meta_1_5, :meta_1_6, :meta_1_7, :meta_1_8, :meta_1_9, :meta_1_10, :meta_1_11, :meta_1_12, :meta_1_13, :meta_1_14, :meta_1_15, :meta_1_16 . :meta_1_1 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content 'HudControlPanelPrototype.x3d' ; x3do:name 'title' . :meta_1_2 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content 'Prototype for a "heads-up" control panel. This node defines an object that maintains its orientation to the current viewpoint. Also present is a border that allows the panel to be dragged anywhere on the screen. All of the touchSensor events relating to texture maps are available as output events from this node.' ; x3do:name 'description' . :meta_1_3 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content 'Leonard Daly' ; x3do:name 'creator' . :meta_1_4 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content 'Dan Kucik' ; x3do:name 'translator' . :meta_1_5 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content '1999' ; x3do:name 'created' . :meta_1_6 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content '8 June 2003' ; x3do:name 'translated' . :meta_1_7 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content '28 November 2019' ; x3do:name 'modified' . :meta_1_8 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content 'HUD does not sit still when navigating' ; x3do:name 'error' . :meta_1_9 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content 'http://www.realism.com/Web3D/Examples/examples.cgi?ID=5' ; x3do:name 'reference' . :meta_1_10 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content 'This code may be reused in part or total. Please include this paragraph when it is used. Copyright 1999, Leonard Daly #****************' ; x3do:name 'rights' . :meta_1_11 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content 'Heads-up display example' ; x3do:name 'subject' . :meta_1_12 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content 'Original VRML File: http://www.realism.com/vrml/Example/HUD/HUD_proto.wrl' ; x3do:name 'reference' . :meta_1_13 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content 'https://savage.nps.edu/Savage/Tools/HeadsUpDisplays/HudControlPanelPrototype.x3d' ; x3do:name 'identifier' . :meta_1_14 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content 'Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html' ; x3do:name 'generator' . :meta_1_15 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content 'X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit' ; x3do:name 'generator' . :meta_1_16 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content '../../license.html' ; x3do:name 'license' . :meta dcterms:title "HudControlPanelPrototype.x3d" . :meta dcterms:description "Prototype for a \"heads-up\" control panel. This node defines an object that maintains its orientation to the current viewpoint. Also present is a border that allows the panel to be dragged anywhere on the screen. All of the touchSensor events relating to texture maps are available as output events from this node." . :meta dcterms:creator "Leonard Daly" . :meta dcterms:translator "Dan Kucik" . :meta dcterms:created "1999" . :meta dcterms:translated "8 June 2003" . :meta dcterms:modified "28 November 2019" . :meta dcterms:reference "http://www.realism.com/Web3D/Examples/examples.cgi?ID=5" . :meta dcterms:rights "This code may be reused in part or total. Please include this paragraph when it is used. Copyright 1999, Leonard Daly #****************" . :meta dcterms:subject "Heads-up display example" . :meta dcterms:reference "Original VRML File: http://www.realism.com/vrml/Example/HUD/HUD_proto.wrl" . :meta dcterms:identifier "https://savage.nps.edu/Savage/Tools/HeadsUpDisplays/HudControlPanelPrototype.x3d" . :meta dcterms:generator "Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html" . :meta dcterms:generator "X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit" . :meta dcterms:license "../../license.html" . :Scene a owl:NamedIndividual, x3do:Scene ; x3do:hasParent :X3D ; x3do:hasChildren :WorldInfo_2_1, :Anchor_2_3 ; x3do:hasProtoDeclare :ProtoDeclare_2_2 . :WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ; x3do:hasParent :Scene ; x3do:title 'HudControlPanelPrototype.x3d' . :ProtoDeclare_2_2 a owl:NamedIndividual, x3do:ProtoDeclare ; x3do:hasParent :Scene ; x3do:hasProtoInterface :ProtoInterface_2_2_1 ; x3do:hasProtoBody :ProtoBody_2_2_2 ; x3do:appinfo 'Heads Up Display (HUD) Control Panel' ; x3do:name 'HudControlPanel' . :ProtoInterface_2_2_1 a owl:NamedIndividual, x3do:ProtoInterface ; x3do:hasParent :ProtoDeclare_2_2 ; x3do:hasField :field_2_2_1_1, :field_2_2_1_2, :field_2_2_1_3, :field_2_2_1_4, :field_2_2_1_5, :field_2_2_1_6, :field_2_2_1_7, :field_2_2_1_8, :field_2_2_1_9, :field_2_2_1_10 . :field_2_2_1_1 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ProtoInterface_2_2_1 ; x3do:accessType 'initializeOnly' ; x3do:appinfo 'SFVec3f Position of the panel relative to the viewpoint. The X and Y components can be changed by dragging the window around.' ; x3do:name 'translation' ; x3do:type 'SFVec3f' ; x3do:value ( 0.0 0.0 -10.0 ) . :field_2_2_1_2 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ProtoInterface_2_2_1 ; x3do:accessType 'inputOutput' ; x3do:appinfo 'SFRotation This field should be the object of a ROUTE statement from the orientation_changed event from a ProximitySensor. For some reason the ProximitySensor does not correctly report the current viewpoint when the sensor is located inside of the PROTO.' ; x3do:name 'orientation' ; x3do:type 'SFRotation' ; x3do:value ( 0.0 1.0 0.0 0.0 ) . :field_2_2_1_3 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ProtoInterface_2_2_1 ; x3do:accessType 'outputOnly' ; x3do:appinfo 'Out - SFBool event is generated when the cursor is over the texture mapped region of the control panel. Set to false when the cursor leaves the texture mapped region.' ; x3do:name 'isOver' ; x3do:type 'SFBool' . :field_2_2_1_4 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ProtoInterface_2_2_1 ; x3do:accessType 'outputOnly' ; x3do:appinfo 'Out - SFVec2f The X/Y normalized coordinates (S and T) of the cursor location when isOver is true.' ; x3do:name 'hitTexCoord_changed' ; x3do:type 'SFVec2f' . :field_2_2_1_5 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ProtoInterface_2_2_1 ; x3do:accessType 'inputOutput' ; x3do:appinfo 'SFColor The color of the panel border. This is the region that can be used to drag the panel around the screen.' ; x3do:name 'borderColor' ; x3do:type 'SFColor' ; x3do:value ( 0.6 0.6 0.6 ) . :field_2_2_1_6 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ProtoInterface_2_2_1 ; x3do:accessType 'initializeOnly' ; x3do:appinfo 'SFVec3f Size of the panel. The texture mapped area (see textureMap) is 95% in X and 90% in Y of this size.' ; x3do:name 'scale' ; x3do:type 'SFVec3f' ; x3do:value ( 2.5 1.5 0.05 ) . :field_2_2_1_7 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ProtoInterface_2_2_1 ; x3do:accessType 'inputOutput' ; x3do:appinfo 'SFVec3f This field should be the object of a ROUTE statement from the position_changed event from a ProximitySensor. See orientation for more details.' ; x3do:name 'position' ; x3do:type 'SFVec3f' ; x3do:value ( 0.0 0.0 0.0 ) . :field_2_2_1_8 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ProtoInterface_2_2_1 ; x3do:accessType 'inputOutput' ; x3do:appinfo 'MFString The texture map URLs. This is specified in the same manner as the URL field in ImageTexture. The first one that can be loaded is the that is displayed. If this field is not specified then this region of the object is painted white.' ; x3do:name 'textureMap' ; x3do:type 'MFString' . :field_2_2_1_9 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ProtoInterface_2_2_1 ; x3do:accessType 'outputOnly' ; x3do:appinfo 'Out - SFTime The time when a mouse button is released provided that the just prior to release isOver and isActive are true.' ; x3do:name 'touchTime' ; x3do:type 'SFTime' . :field_2_2_1_10 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ProtoInterface_2_2_1 ; x3do:accessType 'outputOnly' ; x3do:appinfo 'Out - SFBool A true event is generated when the mouse button is depressed and the cursor is over the texture mapped region. A false event is generated when the button is released or when isOver becomes false.' ; x3do:name 'isActive' ; x3do:type 'SFBool' . :ProtoBody_2_2_2 a owl:NamedIndividual, x3do:ProtoBody ; x3do:hasParent :ProtoDeclare_2_2 ; x3do:hasChildren :Main, :MoveScript ; x3do:hasROUTE :ROUTE_2_2_2_3, :ROUTE_2_2_2_4 . :Main a owl:NamedIndividual, x3do:Transform ; x3do:hasParent :ProtoBody_2_2_2 ; x3do:hasIS :IS_2_2_2_1_1 ; x3do:hasChildren :CtlPnlOffset ; x3do:DEF 'Main' . :IS_2_2_2_1_1 a owl:NamedIndividual, x3do:IS ; x3do:hasParent :Main ; x3do:hasConnect :connect_2_2_2_1_1_1, :connect_2_2_2_1_1_2 . :connect_2_2_2_1_1_1 a owl:NamedIndividual, x3do:connect ; x3do:hasParent :IS_2_2_2_1_1 ; x3do:nodeField 'translation' ; x3do:protoField 'position' . :connect_2_2_2_1_1_2 a owl:NamedIndividual, x3do:connect ; x3do:hasParent :IS_2_2_2_1_1 ; x3do:nodeField 'rotation' ; x3do:protoField 'orientation' . :CtlPnlOffset a owl:NamedIndividual, x3do:Transform ; x3do:hasParent :Main ; x3do:hasIS :IS_2_2_2_1_2_1 ; x3do:hasChildren :DirectionalLight_2_2_2_1_2_2, :MovePanel, :Shape_2_2_2_1_2_4, :Transform_2_2_2_1_2_5 ; x3do:DEF 'CtlPnlOffset' . :IS_2_2_2_1_2_1 a owl:NamedIndividual, x3do:IS ; x3do:hasParent :CtlPnlOffset ; x3do:hasConnect :connect_2_2_2_1_2_1_1, :connect_2_2_2_1_2_1_2 . :connect_2_2_2_1_2_1_1 a owl:NamedIndividual, x3do:connect ; x3do:hasParent :IS_2_2_2_1_2_1 ; x3do:nodeField 'translation' ; x3do:protoField 'translation' . :connect_2_2_2_1_2_1_2 a owl:NamedIndividual, x3do:connect ; x3do:hasParent :IS_2_2_2_1_2_1 ; x3do:nodeField 'scale' ; x3do:protoField 'scale' . :DirectionalLight_2_2_2_1_2_2 a owl:NamedIndividual, x3do:DirectionalLight ; x3do:hasParent :CtlPnlOffset . :MovePanel a owl:NamedIndividual, x3do:PlaneSensor ; x3do:hasParent :CtlPnlOffset ; x3do:DEF 'MovePanel' ; x3do:description 'Select item' . :Shape_2_2_2_1_2_4 a owl:NamedIndividual, x3do:Shape ; x3do:hasParent :CtlPnlOffset ; x3do:hasAppearance :Appearance_2_2_2_1_2_4_1 ; x3do:hasGeometry :Panel . :Appearance_2_2_2_1_2_4_1 a owl:NamedIndividual, x3do:Appearance ; x3do:hasParent :Shape_2_2_2_1_2_4 ; x3do:hasMaterial :_IS_0 . :_IS_0 a owl:NamedIndividual, x3do:Material ; x3do:hasParent :Appearance_2_2_2_1_2_4_1 ; x3do:hasIS :IS_2_2_2_1_2_4_1_1_1 ; x3do:DEF '_IS_0' . :IS_2_2_2_1_2_4_1_1_1 a owl:NamedIndividual, x3do:IS ; x3do:hasParent :_IS_0 ; x3do:hasConnect :connect_2_2_2_1_2_4_1_1_1_1 . :connect_2_2_2_1_2_4_1_1_1_1 a owl:NamedIndividual, x3do:connect ; x3do:hasParent :IS_2_2_2_1_2_4_1_1_1 ; x3do:nodeField 'diffuseColor' ; x3do:protoField 'borderColor' . :Panel a owl:NamedIndividual, x3do:IndexedFaceSet ; x3do:hasParent :Shape_2_2_2_1_2_4 ; x3do:hasCoord :Coordinate_2_2_2_1_2_4_2_1 ; x3do:DEF 'Panel' ; x3do:coordIndex ( 0 1 2 3 -1 ) . :Coordinate_2_2_2_1_2_4_2_1 a owl:NamedIndividual, x3do:Coordinate ; x3do:hasParent :Panel ; x3do:point ( 1.0 1.0 0.0 -1.0 1.0 0.0 -1.0 -1.0 0.0 1.0 -1.0 0.0 ) . :Transform_2_2_2_1_2_5 a owl:NamedIndividual, x3do:Transform ; x3do:hasParent :CtlPnlOffset ; x3do:hasChildren :TouchSensor_2_2_2_1_2_5_1, :Shape_2_2_2_1_2_5_2 ; x3do:scale ( 0.95 0.9 1.0 ) ; x3do:translation ( 0.0 0.0 0.01 ) . :TouchSensor_2_2_2_1_2_5_1 a owl:NamedIndividual, x3do:TouchSensor ; x3do:hasParent :Transform_2_2_2_1_2_5 ; x3do:hasIS :IS_2_2_2_1_2_5_1_1 ; x3do:description 'Select item' . :IS_2_2_2_1_2_5_1_1 a owl:NamedIndividual, x3do:IS ; x3do:hasParent :TouchSensor_2_2_2_1_2_5_1 ; x3do:hasConnect :connect_2_2_2_1_2_5_1_1_1, :connect_2_2_2_1_2_5_1_1_2, :connect_2_2_2_1_2_5_1_1_3, :connect_2_2_2_1_2_5_1_1_4 . :connect_2_2_2_1_2_5_1_1_1 a owl:NamedIndividual, x3do:connect ; x3do:hasParent :IS_2_2_2_1_2_5_1_1 ; x3do:nodeField 'isOver' ; x3do:protoField 'isOver' . :connect_2_2_2_1_2_5_1_1_2 a owl:NamedIndividual, x3do:connect ; x3do:hasParent :IS_2_2_2_1_2_5_1_1 ; x3do:nodeField 'isActive' ; x3do:protoField 'isActive' . :connect_2_2_2_1_2_5_1_1_3 a owl:NamedIndividual, x3do:connect ; x3do:hasParent :IS_2_2_2_1_2_5_1_1 ; x3do:nodeField 'hitTexCoord_changed' ; x3do:protoField 'hitTexCoord_changed' . :connect_2_2_2_1_2_5_1_1_4 a owl:NamedIndividual, x3do:connect ; x3do:hasParent :IS_2_2_2_1_2_5_1_1 ; x3do:nodeField 'touchTime' ; x3do:protoField 'touchTime' . :Shape_2_2_2_1_2_5_2 a owl:NamedIndividual, x3do:Shape ; x3do:hasParent :Transform_2_2_2_1_2_5 ; x3do:hasAppearance :Appearance_2_2_2_1_2_5_2_1 ; x3do:hasGeometry :Panel-USE-1 . :Appearance_2_2_2_1_2_5_2_1 a owl:NamedIndividual, x3do:Appearance ; x3do:hasParent :Shape_2_2_2_1_2_5_2 ; x3do:hasMaterial :Material_2_2_2_1_2_5_2_1_1 ; x3do:hasTexture :_IS_1 . :Material_2_2_2_1_2_5_2_1_1 a owl:NamedIndividual, x3do:Material ; x3do:hasParent :Appearance_2_2_2_1_2_5_2_1 ; x3do:diffuseColor ( 1.0 1.0 1.0 ) . :_IS_1 a owl:NamedIndividual, x3do:ImageTexture ; x3do:hasParent :Appearance_2_2_2_1_2_5_2_1 ; x3do:hasIS :IS_2_2_2_1_2_5_2_1_2_1 ; x3do:DEF '_IS_1' . :IS_2_2_2_1_2_5_2_1_2_1 a owl:NamedIndividual, x3do:IS ; x3do:hasParent :_IS_1 ; x3do:hasConnect :connect_2_2_2_1_2_5_2_1_2_1_1 . :connect_2_2_2_1_2_5_2_1_2_1_1 a owl:NamedIndividual, x3do:connect ; x3do:hasParent :IS_2_2_2_1_2_5_2_1_2_1 ; x3do:nodeField 'url' ; x3do:protoField 'textureMap' . :Panel-USE-1 a owl:NamedIndividual, x3do:IndexedFaceSet ; x3do:hasParent :Shape_2_2_2_1_2_5_2 ; owl:sameAs :Panel . # DEF matching this USE :MoveScript a owl:NamedIndividual, x3do:Script ; x3do:hasParent :ProtoBody_2_2_2 ; x3do:hasField :field_2_2_2_2_1, :field_2_2_2_2_2, :field_2_2_2_2_3, :field_2_2_2_2_4 ; x3do:hasIS :IS_2_2_2_2_5 ; x3do:DEF 'MoveScript' ; x3do:sourceCode """ ecmascript: function move (value) { position = new SFVec3f (Iscale[0] * value[0] + Ioffset[0], Iscale[1] * value[1] + Ioffset[1], Ioffset[2]); } """ . :field_2_2_2_2_1 a owl:NamedIndividual, x3do:field ; x3do:hasParent :MoveScript ; x3do:accessType 'outputOnly' ; x3do:name 'position' ; x3do:type 'SFVec3f' . :field_2_2_2_2_2 a owl:NamedIndividual, x3do:field ; x3do:hasParent :MoveScript ; x3do:accessType 'inputOnly' ; x3do:name 'move' ; x3do:type 'SFVec3f' . :field_2_2_2_2_3 a owl:NamedIndividual, x3do:field ; x3do:hasParent :MoveScript ; x3do:accessType 'initializeOnly' ; x3do:name 'Iscale' ; x3do:type 'SFVec3f' . :field_2_2_2_2_4 a owl:NamedIndividual, x3do:field ; x3do:hasParent :MoveScript ; x3do:accessType 'initializeOnly' ; x3do:name 'Ioffset' ; x3do:type 'SFVec3f' . :IS_2_2_2_2_5 a owl:NamedIndividual, x3do:IS ; x3do:hasParent :MoveScript ; x3do:hasConnect :connect_2_2_2_2_5_1, :connect_2_2_2_2_5_2 . :connect_2_2_2_2_5_1 a owl:NamedIndividual, x3do:connect ; x3do:hasParent :IS_2_2_2_2_5 ; x3do:nodeField 'Iscale' ; x3do:protoField 'scale' . :connect_2_2_2_2_5_2 a owl:NamedIndividual, x3do:connect ; x3do:hasParent :IS_2_2_2_2_5 ; x3do:nodeField 'Ioffset' ; x3do:protoField 'translation' . :ROUTE_2_2_2_3 a owl:NamedIndividual, x3do:ROUTE ; x3do:hasParent :ProtoBody_2_2_2 ; x3do:fromField 'translation_changed' ; x3do:fromNode 'MovePanel' ; x3do:toField 'move' ; x3do:toNode 'MoveScript' . :ROUTE_2_2_2_4 a owl:NamedIndividual, x3do:ROUTE ; x3do:hasParent :ProtoBody_2_2_2 ; x3do:fromField 'position' ; x3do:fromNode 'MoveScript' ; x3do:toField 'translation' ; x3do:toNode 'CtlPnlOffset' . :Anchor_2_3 a owl:NamedIndividual, x3do:Anchor ; x3do:hasParent :Scene ; x3do:hasChildren :Shape_2_3_1 ; x3do:description 'HudControlPanel Example' ; x3do:parameter '"target=_blank"' ; x3do:url '"HudControlPanelExample.x3d" "https://savage.nps.edu/Savage/Tools/HeadsUpDisplays/HudControlPanelExample.x3d" "HudControlPanelExample.wrl" "https://savage.nps.edu/Savage/Tools/HeadsUpDisplays/HudControlPanelExample.wrl"' . :Shape_2_3_1 a owl:NamedIndividual, x3do:Shape ; x3do:hasParent :Anchor_2_3 ; x3do:hasAppearance :Appearance_2_3_1_1 ; x3do:hasGeometry :Text_2_3_1_2 . :Appearance_2_3_1_1 a owl:NamedIndividual, x3do:Appearance ; x3do:hasParent :Shape_2_3_1 ; x3do:hasMaterial :Material_2_3_1_1_1 . :Material_2_3_1_1_1 a owl:NamedIndividual, x3do:Material ; x3do:hasParent :Appearance_2_3_1_1 ; x3do:diffuseColor ( 0 1 1 ) ; x3do:emissiveColor ( 0 1 1 ) . :Text_2_3_1_2 a owl:NamedIndividual, x3do:Text ; x3do:hasParent :Shape_2_3_1 ; x3do:hasFontStyle :FontStyle_2_3_1_2_1 ; x3do:string '"HudControlPanelPrototype" "is a Prototype definition file." "" "To see an example scene" "using this new node" "click this text and view" "HudControlPanelExample"' . :FontStyle_2_3_1_2_1 a owl:NamedIndividual, x3do:FontStyle ; x3do:hasParent :Text_2_3_1_2 ; x3do:justify '"MIDDLE" "MIDDLE"' ; x3do:size 0.8 .