@prefix :        <https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/Mv22OspreyUnitedStates/RearHatch.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.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_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'RearHatch.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Osprey MV-22 rear hatch.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Major William C. James USMC' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '23 September 2001' ;
  x3do:name 'created' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '7 December 2024' ;
  x3do:name 'modified' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Amended from VRML Sourcebook Figure 8.4 (used as base)' ;
  x3do:name 'reference' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.navy.mil/Resources/Fact-Files/Display-FactFiles/Article/2417719/v-22b-osprey-tilt-rotor-aircraft' ;
  x3do:name 'reference' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/Mv22OspreyUnitedStates/RearHatch.x3d' ;
  x3do:name 'identifier' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit' ;
  x3do:name 'generator' .
:meta_1_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "RearHatch.x3d" .
:meta dcterms:description "Osprey MV-22 rear hatch." .
:meta dcterms:creator "Major William C. James USMC" .
:meta dcterms:created "23 September 2001" .
:meta dcterms:modified "7 December 2024" .
:meta dcterms:reference "Amended from VRML Sourcebook Figure 8.4 (used as base)" .
:meta dcterms:reference "https://www.navy.mil/Resources/Fact-Files/Display-FactFiles/Article/2417719/v-22b-osprey-tilt-rotor-aircraft" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/Mv22OspreyUnitedStates/RearHatch.x3d" .
:meta dcterms:generator "X3D-Edit 3.2, 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, :ToggleScript, :TimeFilter, :Rear_Hatch ;
  x3do:hasROUTE :ROUTE_2_6, :ROUTE_2_7, :ROUTE_2_8, :ROUTE_2_9, :ROUTE_2_10, :ROUTE_2_11, :ROUTE_2_12, :ROUTE_2_13, :ROUTE_2_14, :ROUTE_2_15 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'RearHatch.x3d' .
:Background_2_2 a owl:NamedIndividual, x3do:Background ;
  x3do:hasParent :Scene ;
  x3do:skyColor ( .2 .2 .7 ) .
:ToggleScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_3_1, :field_2_3_2, :field_2_3_3, :field_2_3_4 ;
  x3do:DEF 'ToggleScript' ;
  x3do:sourceCode """
ecmascript:

// setting the value of an eventOut variable also sends it as an event
// you can view the output of print statements in the VRML Console

function toggle ( value, ts ) {
  // only toggle on click (isActive true) not release (isActive false)
  if ( value == false ) return;
  if ( state == true )
  {
	state  = false;
	stateTurnedFalse = true;
	Browser.println ('ToggleScript.state = ' + state + ', stateTurnedFalse = ' + true);
  }
  else
  {
	state  = true;
	stateTurnedTrue = true;
	Browser.println ('ToggleScript.state = ' + state + ', stateTurnedTrue = ' + true);
  }
}
""" .
:field_2_3_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ToggleScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'toggle' ;
  x3do:type 'SFBool' .
:field_2_3_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ToggleScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'state' ;
  x3do:type 'SFBool' ;
  x3do:value true .
:field_2_3_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ToggleScript ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'stateTurnedTrue' ;
  x3do:type 'SFBool' .
:field_2_3_4 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ToggleScript ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'stateTurnedFalse' ;
  x3do:type 'SFBool' .
:TimeFilter a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_4_1, :field_2_4_2, :field_2_4_3, :field_2_4_4 ;
  x3do:DEF 'TimeFilter' ;
  x3do:sourceCode """
ecmascript:

// setting the value of an eventOut variable also sends it as an event

function setStart ( value, timeStamp ) {
	startEventTime = timeStamp;
	Browser.println ('TimeFilter.setStart (' + value + '), startEventTime = ' + timeStamp);
	Browser.println (' ');
}
function setStop  ( value, timeStamp ) {
	stopEventTime  = timeStamp;
	Browser.println ('TimeFilter.setStop  (' + value + '),  stopEventTime = ' + timeStamp);
	Browser.println (' ');
}
""" .
:field_2_4_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :TimeFilter ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'setStart' ;
  x3do:type 'SFBool' .
:field_2_4_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :TimeFilter ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'setStop' ;
  x3do:type 'SFBool' .
:field_2_4_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :TimeFilter ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'startEventTime' ;
  x3do:type 'SFTime' .
:field_2_4_4 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :TimeFilter ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'stopEventTime' ;
  x3do:type 'SFTime' .
:Rear_Hatch a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :RearHatchTransform, :RearHatchSensor, :CLOCK1, :RearHatchInterpolator, :CLOCK2, :RearHatchInterpolator1 ;
  x3do:DEF 'Rear_Hatch' .
:RearHatchTransform a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Rear_Hatch ;
  x3do:hasChildren :RearHatch ;
  x3do:DEF 'RearHatchTransform' ;
  x3do:rotation ( 0 0 -1 1.57 ) ;
  x3do:translation ( 0 -4.6 -6.2 ) .
:RearHatch a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :RearHatchTransform ;
  x3do:hasChildren :RearHatchRotationSupport ;
  x3do:DEF 'RearHatch' .
:RearHatchRotationSupport a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :RearHatch ;
  x3do:hasChildren :RotatingBar, :Hatch ;
  x3do:DEF 'RearHatchRotationSupport' ;
  x3do:rotation ( 0 1 0 .45 ) .
:RotatingBar a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :RearHatchRotationSupport ;
  x3do:hasGeometry :Cylinder_2_5_1_1_1_1_1 ;
  x3do:hasAppearance :Appearance_2_5_1_1_1_1_2 ;
  x3do:DEF 'RotatingBar' .
:Cylinder_2_5_1_1_1_1_1 a owl:NamedIndividual, x3do:Cylinder ;
  x3do:hasParent :RotatingBar ;
  x3do:height 3.9 ;
  x3do:radius .2 .
:Appearance_2_5_1_1_1_1_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :RotatingBar ;
  x3do:hasMaterial :Material_2_5_1_1_1_1_2_1 .
:Material_2_5_1_1_1_1_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_5_1_1_1_1_2 ;
  x3do:diffuseColor ( .5 .5 .5 ) ;
  x3do:shininess .5 .
:Hatch a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :RearHatchRotationSupport ;
  x3do:hasChildren :Transform_2_5_1_1_1_2_1 ;
  x3do:DEF 'Hatch' .
:Transform_2_5_1_1_1_2_1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Hatch ;
  x3do:hasChildren :Shape_2_5_1_1_1_2_1_1 ;
  x3do:rotation ( 0 0 -1 1.57 ) ;
  x3do:translation ( 0 0 -2.5 ) .
:Shape_2_5_1_1_1_2_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_5_1_1_1_2_1 ;
  x3do:hasGeometry :Box_2_5_1_1_1_2_1_1_1 ;
  x3do:hasAppearance :Appearance_2_5_1_1_1_2_1_1_2 .
:Box_2_5_1_1_1_2_1_1_1 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :Shape_2_5_1_1_1_2_1_1 ;
  x3do:size ( 3.85 .2 5 ) .
:Appearance_2_5_1_1_1_2_1_1_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_5_1_1_1_2_1_1 ;
  x3do:hasMaterial :Material_2_5_1_1_1_2_1_1_2_1 .
:Material_2_5_1_1_1_2_1_1_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_5_1_1_1_2_1_1_2 ;
  x3do:diffuseColor ( .5 .5 .5 ) ;
  x3do:shininess .5 .
:RearHatchSensor a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Rear_Hatch ;
  x3do:DEF 'RearHatchSensor' ;
  x3do:description 'touch to open' .
:CLOCK1 a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :Rear_Hatch ;
  x3do:DEF 'CLOCK1' ;
  x3do:cycleInterval '4' .
:RearHatchInterpolator a owl:NamedIndividual, x3do:OrientationInterpolator ;
  x3do:hasParent :Rear_Hatch ;
  x3do:DEF 'RearHatchInterpolator' ;
  x3do:key ( 0.0 1.0 ) ;
  x3do:keyValue ( 0.0 1.0 0.0 0.45 0.0 1.0 0.0 -0.2 ) .
:CLOCK2 a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :Rear_Hatch ;
  x3do:DEF 'CLOCK2' ;
  x3do:cycleInterval '4' .
:RearHatchInterpolator1 a owl:NamedIndividual, x3do:OrientationInterpolator ;
  x3do:hasParent :Rear_Hatch ;
  x3do:DEF 'RearHatchInterpolator1' ;
  x3do:key ( 0.0 1.0 ) ;
  x3do:keyValue ( 0.0 1.0 0.0 -0.2 0.0 1.0 0.0 0.45 ) .
:ROUTE_2_6 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'touchTime' ;
  x3do:fromNode 'RearHatchSensor' ;
  x3do:toField 'set_startTime' ;
  x3do:toNode 'CLOCK1' .
:ROUTE_2_7 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'CLOCK1' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'RearHatchInterpolator' .
:ROUTE_2_8 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'RearHatchInterpolator' ;
  x3do:toField 'set_rotation' ;
  x3do:toNode 'RearHatchRotationSupport' .
:ROUTE_2_9 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'RearHatchSensor' ;
  x3do:toField 'toggle' ;
  x3do:toNode 'ToggleScript' .
:ROUTE_2_10 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'RearHatchInterpolator1' ;
  x3do:toField 'set_rotation' ;
  x3do:toNode 'RearHatchRotationSupport' .
:ROUTE_2_11 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'CLOCK2' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'RearHatchInterpolator1' .
:ROUTE_2_12 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'stateTurnedTrue' ;
  x3do:fromNode 'ToggleScript' ;
  x3do:toField 'setStart' ;
  x3do:toNode 'TimeFilter' .
:ROUTE_2_13 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'stateTurnedTrue' ;
  x3do:fromNode 'ToggleScript' ;
  x3do:toField 'setStop' ;
  x3do:toNode 'TimeFilter' .
:ROUTE_2_14 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'startEventTime' ;
  x3do:fromNode 'TimeFilter' ;
  x3do:toField 'set_startTime' ;
  x3do:toNode 'CLOCK1' .
:ROUTE_2_15 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'startEventTime' ;
  x3do:fromNode 'TimeFilter' ;
  x3do:toField 'set_startTime' ;
  x3do:toNode 'CLOCK2' .
