@prefix :        <https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter08UserInteractivity/KeySensorLefty.ttl#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema:  <http://schema.org/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix x3d:     <https://www.web3d.org/specifications/x3d-4.0.xsd#> .
@prefix x3do:    <https://www.web3d.org/specifications/X3dOntology4.0#> .

:X3D a owl:NamedIndividual, x3do:X3D ;
  x3do:hasHead :head ;
  x3do:hasScene :Scene ;
  x3do:profile 'Immersive' ;
  x3do:version '3.3' ;
  x3do:noNamespaceSchemaLocation 'https://www.web3d.org/specifications/x3d-3.3.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_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'KeySensorLefty.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'A KeySensor is used to change relative Viewpoints looking at the shark Lefty, while a SphereSensor can also rotate Lefty in place.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Leonard Daly and Don Brutzman' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '10 June 2006' ;
  x3do:name 'created' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '20 October 2019' ;
  x3do:name 'modified' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://X3dGraphics.com' ;
  x3do:name 'reference' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dResources.html' ;
  x3do:name 'reference' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Copyright 2006, Leonard Daly and Don Brutzman' ;
  x3do:name 'rights' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com' ;
  x3do:name 'subject' .
:meta_1_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter08UserInteractivity/KeySensorLefty.x3d' ;
  x3do:name 'identifier' .
:meta_1_11 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit' ;
  x3do:name 'generator' .
:meta_1_12 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "KeySensorLefty.x3d" .
:meta dcterms:description "A KeySensor is used to change relative Viewpoints looking at the shark Lefty, while a SphereSensor can also rotate Lefty in place." .
:meta dcterms:creator "Leonard Daly and Don Brutzman" .
:meta dcterms:created "10 June 2006" .
:meta dcterms:modified "20 October 2019" .
:meta dcterms:reference "https://X3dGraphics.com" .
:meta dcterms:reference "https://www.web3d.org/x3d/content/examples/X3dResources.html" .
:meta dcterms:rights "Copyright 2006, Leonard Daly and Don Brutzman" .
:meta dcterms:subject "X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter08UserInteractivity/KeySensorLefty.x3d" .
:meta dcterms:generator "X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit" .
:meta dcterms:license "../license.html" .
:Scene a owl:NamedIndividual, x3do:Scene ;
  x3do:hasParent :X3D ;
  x3do:hasChildren :WorldInfo_2_1, :Background_2_2, :LeftyViewpointsUnrotated, :Transform_2_4, :OrientationControl, :Transform_2_6, :KeyDetector, :KeyHandler ;
  x3do:hasROUTE :ROUTE_2_7, :ROUTE_2_8, :ROUTE_2_11, :ROUTE_2_12, :ROUTE_2_13, :ROUTE_2_14, :ROUTE_2_15, :ROUTE_2_16, :ROUTE_2_17 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'KeySensorLefty.x3d' .
:Background_2_2 a owl:NamedIndividual, x3do:Background ;
  x3do:hasParent :Scene ;
  x3do:skyColor ( 1 1 1 ) .
:LeftyViewpointsUnrotated a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :View1, :View2, :View3, :View4, :View5, :View6 ;
  x3do:DEF 'LeftyViewpointsUnrotated' .
:View1 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :LeftyViewpointsUnrotated ;
  x3do:DEF 'View1' ;
  x3do:description 'Lefty from the Right' .
:View2 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :LeftyViewpointsUnrotated ;
  x3do:DEF 'View2' ;
  x3do:description 'Lefty from the Front' ;
  x3do:orientation ( 0 1 0 1.57 ) ;
  x3do:position ( 10 0 0 ) .
:View3 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :LeftyViewpointsUnrotated ;
  x3do:DEF 'View3' ;
  x3do:description 'Lefty from the Left' ;
  x3do:orientation ( 0 1 0 3.14 ) ;
  x3do:position ( 0 0 -10 ) .
:View4 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :LeftyViewpointsUnrotated ;
  x3do:DEF 'View4' ;
  x3do:description 'Lefty from Behind' ;
  x3do:orientation ( 0 1 0 -1.57 ) ;
  x3do:position ( -10 0 0 ) .
:View5 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :LeftyViewpointsUnrotated ;
  x3do:DEF 'View5' ;
  x3do:description 'Lefty from the Top' ;
  x3do:orientation ( 1 0 0 -1.57 ) ;
  x3do:position ( 0 10 0 ) .
:View6 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :LeftyViewpointsUnrotated ;
  x3do:DEF 'View6' ;
  x3do:description 'Lefty from the Bottom' ;
  x3do:orientation ( 1 0 0 1.57 ) ;
  x3do:position ( 0 -10 0 ) .
:Transform_2_4 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Billboard_2_4_1 ;
  x3do:translation ( -2 2 0 ) .
:Billboard_2_4_1 a owl:NamedIndividual, x3do:Billboard ;
  x3do:hasParent :Transform_2_4 ;
  x3do:hasChildren :Shape_2_4_1_1 ;
  x3do:axisOfRotation ( 0 0 0 ) .
:Shape_2_4_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Billboard_2_4_1 ;
  x3do:hasAppearance :Appearance_2_4_1_1_1 ;
  x3do:hasGeometry :Text_2_4_1_1_2 .
:Appearance_2_4_1_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_1_1 ;
  x3do:hasMaterial :Material_2_4_1_1_1_1 .
:Material_2_4_1_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_1_1_1 ;
  x3do:diffuseColor ( 0 0 0 ) .
:Text_2_4_1_1_2 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_1_1 ;
  x3do:hasFontStyle :FontStyle_2_4_1_1_2_1 ;
  x3do:string '"Press &apos;n&apos; key for next Viewpoint," "press &apos;p&apos; key ppnnfor previous Viewpoint."' .
:FontStyle_2_4_1_1_2_1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_4_1_1_2 ;
  x3do:family '"SANS"' ;
  x3do:justify '"BEGIN" "BEGIN"' ;
  x3do:size 0.5 .
:OrientationControl a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Rotator, :OrientationDisplay ;
  x3do:DEF 'OrientationControl' ;
  x3do:translation ( 2 -2 3 ) .
:Rotator a owl:NamedIndividual, x3do:SphereSensor ;
  x3do:hasParent :OrientationControl ;
  x3do:DEF 'Rotator' ;
  x3do:description 'Select and drag to rotate' .
:OrientationDisplay a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :OrientationControl ;
  x3do:hasChildren :Shape_2_5_2_1 ;
  x3do:DEF 'OrientationDisplay' .
:Shape_2_5_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :OrientationDisplay ;
  x3do:hasAppearance :Appearance_2_5_2_1_1 ;
  x3do:hasGeometry :Sphere_2_5_2_1_2 .
:Appearance_2_5_2_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_5_2_1 ;
  x3do:hasMaterial :Material_2_5_2_1_1_1 .
:Material_2_5_2_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_5_2_1_1 ;
  x3do:diffuseColor ( 0 0 1 ) .
:Sphere_2_5_2_1_2 a owl:NamedIndividual, x3do:Sphere ;
  x3do:hasParent :Shape_2_5_2_1 ;
  x3do:radius .5 .
:Transform_2_6 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :ReOrient ;
  x3do:scale ( 3 3 3 ) .
:ReOrient a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_6 ;
  x3do:hasChildren :Inline_2_6_1_1 ;
  x3do:DEF 'ReOrient' .
:Inline_2_6_1_1 a owl:NamedIndividual, x3do:Inline ;
  x3do:hasParent :ReOrient ;
  x3do:url '"../KelpForestExhibit/SharkLefty.x3d" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/SharkLefty.x3d" "../KelpForestExhibit/SharkLefty.wrl" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/SharkLefty.wrl"' .
:ROUTE_2_7 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'rotation_changed' ;
  x3do:fromNode 'Rotator' ;
  x3do:toField 'rotation' ;
  x3do:toNode 'OrientationDisplay' .
:ROUTE_2_8 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'rotation_changed' ;
  x3do:fromNode 'Rotator' ;
  x3do:toField 'rotation' ;
  x3do:toNode 'ReOrient' .
:KeyDetector a owl:NamedIndividual, x3do:KeySensor ;
  x3do:hasParent :Scene ;
  x3do:DEF 'KeyDetector' .
:KeyHandler a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_10_1, :field_2_10_2, :field_2_10_3, :field_2_10_4, :field_2_10_5, :field_2_10_6, :field_2_10_7, :field_2_10_8 ;
  x3do:DEF 'KeyHandler' ;
  x3do:url '"KeySensorLeftyScript.js" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter08UserInteractivity/KeySensorLeftyScript.js"' .
:field_2_10_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :KeyHandler ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'keyPress' ;
  x3do:type 'SFString' .
:field_2_10_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :KeyHandler ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'viewpointIndex' ;
  x3do:type 'SFInt32' ;
  x3do:value 1 .
:field_2_10_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :KeyHandler ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'bind_View1' ;
  x3do:type 'SFBool' .
:field_2_10_4 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :KeyHandler ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'bind_View2' ;
  x3do:type 'SFBool' .
:field_2_10_5 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :KeyHandler ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'bind_View3' ;
  x3do:type 'SFBool' .
:field_2_10_6 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :KeyHandler ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'bind_View4' ;
  x3do:type 'SFBool' .
:field_2_10_7 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :KeyHandler ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'bind_View5' ;
  x3do:type 'SFBool' .
:field_2_10_8 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :KeyHandler ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'bind_View6' ;
  x3do:type 'SFBool' .
:ROUTE_2_11 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'keyPress' ;
  x3do:fromNode 'KeyDetector' ;
  x3do:toField 'keyPress' ;
  x3do:toNode 'KeyHandler' .
:ROUTE_2_12 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'bind_View1' ;
  x3do:fromNode 'KeyHandler' ;
  x3do:toField 'set_bind' ;
  x3do:toNode 'View1' .
:ROUTE_2_13 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'bind_View2' ;
  x3do:fromNode 'KeyHandler' ;
  x3do:toField 'set_bind' ;
  x3do:toNode 'View2' .
:ROUTE_2_14 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'bind_View3' ;
  x3do:fromNode 'KeyHandler' ;
  x3do:toField 'set_bind' ;
  x3do:toNode 'View3' .
:ROUTE_2_15 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'bind_View4' ;
  x3do:fromNode 'KeyHandler' ;
  x3do:toField 'set_bind' ;
  x3do:toNode 'View4' .
:ROUTE_2_16 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'bind_View5' ;
  x3do:fromNode 'KeyHandler' ;
  x3do:toField 'set_bind' ;
  x3do:toNode 'View5' .
:ROUTE_2_17 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'bind_View6' ;
  x3do:fromNode 'KeyHandler' ;
  x3do:toField 'set_bind' ;
  x3do:toNode 'View6' .
