@prefix :        <https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridXY_20x20Movable.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_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'GridXY_20x20Movable.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman' ;
  x3do:name 'creator' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '22 November 2000' ;
  x3do:name 'created' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '28 November 2019' ;
  x3do:name 'modified' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Line grid authoring tool for precise measurement in 3D space: drag plane to move along Z axis, click numbers to hide grid. Oriented along XY plane, size 20m by 20m, default block size 1m by 1m.' ;
  x3do:name 'description' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridsExample.x3d' ;
  x3do:name 'reference' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridXY_20x20Movable.x3d' ;
  x3do:name 'identifier' .
:meta_1_8 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_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "GridXY_20x20Movable.x3d" .
:meta dcterms:creator "Don Brutzman" .
:meta dcterms:created "22 November 2000" .
:meta dcterms:modified "28 November 2019" .
:meta dcterms:description "Line grid authoring tool for precise measurement in 3D space: drag plane to move along Z axis, click numbers to hide grid. Oriented along XY plane, size 20m by 20m, default block size 1m by 1m." .
:meta dcterms:reference "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridsExample.x3d" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridXY_20x20Movable.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, :Viewpoint_2_2, :Viewpoint_2_3, :GridLocation, :CenterTextScript, :UpperRightTextScript, :UpperLeftTextScript, :LowerLeftTextScript, :LowerRightTextScript, :SwitchTextOnOffScript ;
  x3do:hasROUTE :ROUTE_2_11, :ROUTE_2_12, :ROUTE_2_13, :ROUTE_2_14, :ROUTE_2_15, :ROUTE_2_16, :ROUTE_2_17, :ROUTE_2_18, :ROUTE_2_19, :ROUTE_2_20, :ROUTE_2_21, :ROUTE_2_22, :ROUTE_2_23, :ROUTE_2_24 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'GridXY_20x20Movable.x3d' .
:Viewpoint_2_2 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'XY grid (0 0 30 relative)' ;
  x3do:position ( 0 0 30 ) .
:Viewpoint_2_3 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'XY grid (35 0 20 relative)' ;
  x3do:orientation ( 0 1 0 1.06 ) ;
  x3do:position ( 35 0 20 ) .
:GridLocation a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Group_2_4_1, :GridOnOffSwitch ;
  x3do:DEF 'GridLocation' .
:Group_2_4_1 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :GridLocation ;
  x3do:hasChildren :TextLabelTouchSensor, :Transform_2_4_1_2, :Transform_2_4_1_3, :Transform_2_4_1_4, :Transform_2_4_1_5, :Transform_2_4_1_6 .
:TextLabelTouchSensor a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Group_2_4_1 ;
  x3do:DEF 'TextLabelTouchSensor' ;
  x3do:description 'select and hold to hide grid' .
:Transform_2_4_1_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_4_1 ;
  x3do:hasChildren :Billboard_2_4_1_2_1 ;
  x3do:translation ( 0 -0.5 0 ) .
:Billboard_2_4_1_2_1 a owl:NamedIndividual, x3do:Billboard ;
  x3do:hasParent :Transform_2_4_1_2 ;
  x3do:hasChildren :Shape_2_4_1_2_1_1 .
:Shape_2_4_1_2_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Billboard_2_4_1_2_1 ;
  x3do:hasGeometry :CenterText ;
  x3do:hasAppearance :DefaultAppearance .
:CenterText a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_1_2_1_1 ;
  x3do:hasFontStyle :LABEL_FONT ;
  x3do:DEF 'CenterText' ;
  x3do:string '"origin"' .
:LABEL_FONT a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :CenterText ;
  x3do:DEF 'LABEL_FONT' ;
  x3do:family '"SANS"' ;
  x3do:justify '"MIDDLE" "MIDDLE"' ;
  x3do:size .4 .
:DefaultAppearance a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_1_2_1_1 ;
  x3do:hasMaterial :Material_2_4_1_2_1_1_2_1 ;
  x3do:DEF 'DefaultAppearance' .
:Material_2_4_1_2_1_1_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :DefaultAppearance .
:Transform_2_4_1_3 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_4_1 ;
  x3do:hasChildren :Billboard_2_4_1_3_1 ;
  x3do:translation ( 10 10.5 0 ) .
:Billboard_2_4_1_3_1 a owl:NamedIndividual, x3do:Billboard ;
  x3do:hasParent :Transform_2_4_1_3 ;
  x3do:hasChildren :Shape_2_4_1_3_1_1 .
:Shape_2_4_1_3_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Billboard_2_4_1_3_1 ;
  x3do:hasGeometry :UpperRightText ;
  x3do:hasAppearance :DefaultAppearance-USE-1 .
:UpperRightText a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_1_3_1_1 ;
  x3do:hasFontStyle :LABEL_FONT-USE-1 ;
  x3do:DEF 'UpperRightText' ;
  x3do:string '"10 10 0"' .
:LABEL_FONT-USE-1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :UpperRightText ;
  owl:sameAs :LABEL_FONT . # DEF matching this USE
:DefaultAppearance-USE-1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_1_3_1_1 ;
  owl:sameAs :DefaultAppearance . # DEF matching this USE
:Transform_2_4_1_4 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_4_1 ;
  x3do:hasChildren :Billboard_2_4_1_4_1 ;
  x3do:translation ( -10 10.5 0 ) .
:Billboard_2_4_1_4_1 a owl:NamedIndividual, x3do:Billboard ;
  x3do:hasParent :Transform_2_4_1_4 ;
  x3do:hasChildren :Shape_2_4_1_4_1_1 .
:Shape_2_4_1_4_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Billboard_2_4_1_4_1 ;
  x3do:hasGeometry :UpperLeftText ;
  x3do:hasAppearance :DefaultAppearance-USE-2 .
:UpperLeftText a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_1_4_1_1 ;
  x3do:hasFontStyle :LABEL_FONT-USE-2 ;
  x3do:DEF 'UpperLeftText' ;
  x3do:string '"-10 10 0"' .
:LABEL_FONT-USE-2 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :UpperLeftText ;
  owl:sameAs :LABEL_FONT . # DEF matching this USE
:DefaultAppearance-USE-2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_1_4_1_1 ;
  owl:sameAs :DefaultAppearance . # DEF matching this USE
:Transform_2_4_1_5 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_4_1 ;
  x3do:hasChildren :Billboard_2_4_1_5_1 ;
  x3do:translation ( -10 -10.5 0 ) .
:Billboard_2_4_1_5_1 a owl:NamedIndividual, x3do:Billboard ;
  x3do:hasParent :Transform_2_4_1_5 ;
  x3do:hasChildren :Shape_2_4_1_5_1_1 .
:Shape_2_4_1_5_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Billboard_2_4_1_5_1 ;
  x3do:hasGeometry :LowerLeftText ;
  x3do:hasAppearance :DefaultAppearance-USE-3 .
:LowerLeftText a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_1_5_1_1 ;
  x3do:hasFontStyle :LABEL_FONT-USE-3 ;
  x3do:DEF 'LowerLeftText' ;
  x3do:string '"-10 -10 0"' .
:LABEL_FONT-USE-3 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :LowerLeftText ;
  owl:sameAs :LABEL_FONT . # DEF matching this USE
:DefaultAppearance-USE-3 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_1_5_1_1 ;
  owl:sameAs :DefaultAppearance . # DEF matching this USE
:Transform_2_4_1_6 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_4_1 ;
  x3do:hasChildren :Billboard_2_4_1_6_1 ;
  x3do:translation ( 10 -10.5 0 ) .
:Billboard_2_4_1_6_1 a owl:NamedIndividual, x3do:Billboard ;
  x3do:hasParent :Transform_2_4_1_6 ;
  x3do:hasChildren :Shape_2_4_1_6_1_1 .
:Shape_2_4_1_6_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Billboard_2_4_1_6_1 ;
  x3do:hasGeometry :LowerRightText ;
  x3do:hasAppearance :DefaultAppearance-USE-4 .
:LowerRightText a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_1_6_1_1 ;
  x3do:hasFontStyle :LABEL_FONT-USE-4 ;
  x3do:DEF 'LowerRightText' ;
  x3do:string '"10 -10 0"' .
:LABEL_FONT-USE-4 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :LowerRightText ;
  owl:sameAs :LABEL_FONT . # DEF matching this USE
:DefaultAppearance-USE-4 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_1_6_1_1 ;
  owl:sameAs :DefaultAppearance . # DEF matching this USE
:GridOnOffSwitch a owl:NamedIndividual, x3do:Switch ;
  x3do:hasParent :GridLocation ;
  x3do:hasChildren :Transform_2_4_2_1 ;
  x3do:DEF 'GridOnOffSwitch' ;
  x3do:whichChoice 0 .
:Transform_2_4_2_1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :GridOnOffSwitch ;
  x3do:hasChildren :GridSensor, :LineSensorAxisZ, :LinesAlignedAlongZ, :LinesAlignedAlongX, :Transform_2_4_2_1_5, :Transform_2_4_2_1_6 ;
  x3do:rotation ( 1 0 0 1.57079 ) .
:GridSensor a owl:NamedIndividual, x3do:PlaneSensor ;
  x3do:hasParent :Transform_2_4_2_1 ;
  x3do:DEF 'GridSensor' ;
  x3do:description 'click and drag to move grid' .
:LineSensorAxisZ a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Transform_2_4_2_1 ;
  x3do:hasField :field_2_4_2_1_2_1, :field_2_4_2_1_2_2 ;
  x3do:DEF 'LineSensorAxisZ' ;
  x3do:sourceCode """
ecmascript:

// local-coordinates vertical Y is world-coordinates axis Z
function set_translation (location, timeStamp)  {
	translation_changed [0] = 0;
	translation_changed [1] = 0;
	translation_changed [2] = location.y;
//	Browser.println ('location=' + location + ', translation_changed=' + translation_changed); 
}
""" .
:field_2_4_2_1_2_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :LineSensorAxisZ ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'set_translation' ;
  x3do:type 'SFVec3f' .
:field_2_4_2_1_2_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :LineSensorAxisZ ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'translation_changed' ;
  x3do:type 'SFVec3f' .
:LinesAlignedAlongZ a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_4_2_1 ;
  x3do:hasGeometry :IndexedLineSet_2_4_2_1_3_1 ;
  x3do:DEF 'LinesAlignedAlongZ' .
:IndexedLineSet_2_4_2_1_3_1 a owl:NamedIndividual, x3do:IndexedLineSet ;
  x3do:hasParent :LinesAlignedAlongZ ;
  x3do:hasCoord :EndPoints ;
  x3do:hasColor :Color_2_4_2_1_3_1_2 ;
  x3do:colorIndex ( 1 0 0 0 0 2 0 0 0 0 1 0 0 0 0 2 0 0 0 0 1 ) ;
  x3do:colorPerVertex false ;
  x3do:coordIndex ( 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 ) .
:EndPoints a owl:NamedIndividual, x3do:Coordinate ;
  x3do:hasParent :IndexedLineSet_2_4_2_1_3_1 ;
  x3do:DEF 'EndPoints' ;
  x3do:point ( 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 ) .
:Color_2_4_2_1_3_1_2 a owl:NamedIndividual, x3do:Color ;
  x3do:hasParent :IndexedLineSet_2_4_2_1_3_1 ;
  x3do:color ( 0.4 0.4 0.4 0.8 0.2 0 0.4 0.1 0.05 ) .
:LinesAlignedAlongX a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_4_2_1 ;
  x3do:hasChildren :LinesAlignedAlongZ-USE-1 ;
  x3do:DEF 'LinesAlignedAlongX' ;
  x3do:rotation ( 0 1 0 1.57079 ) .
:LinesAlignedAlongZ-USE-1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :LinesAlignedAlongX ;
  owl:sameAs :LinesAlignedAlongZ . # DEF matching this USE
:Transform_2_4_2_1_5 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_4_2_1 ;
  x3do:hasChildren :Billboard_2_4_2_1_5_1 ;
  x3do:rotation ( 1 0 0 -1.57079 ) ;
  x3do:translation ( 10.5 0 0 ) .
:Billboard_2_4_2_1_5_1 a owl:NamedIndividual, x3do:Billboard ;
  x3do:hasParent :Transform_2_4_2_1_5 ;
  x3do:hasChildren :Shape_2_4_2_1_5_1_1 .
:Shape_2_4_2_1_5_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Billboard_2_4_2_1_5_1 ;
  x3do:hasGeometry :Text_2_4_2_1_5_1_1_1 ;
  x3do:hasAppearance :LABEL_APPEARANCE .
:Text_2_4_2_1_5_1_1_1 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_2_1_5_1_1 ;
  x3do:hasFontStyle :LABEL_FONT-USE-5 ;
  x3do:string '"X"' .
:LABEL_FONT-USE-5 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_4_2_1_5_1_1_1 ;
  owl:sameAs :LABEL_FONT . # DEF matching this USE
:LABEL_APPEARANCE a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_2_1_5_1_1 ;
  x3do:hasMaterial :Material_2_4_2_1_5_1_1_2_1 ;
  x3do:DEF 'LABEL_APPEARANCE' .
:Material_2_4_2_1_5_1_1_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :LABEL_APPEARANCE ;
  x3do:diffuseColor ( 1 1 .3 ) ;
  x3do:emissiveColor ( .33 .33 .1 ) .
:Transform_2_4_2_1_6 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_4_2_1 ;
  x3do:hasChildren :Billboard_2_4_2_1_6_1 ;
  x3do:rotation ( 1 0 0 -1.57079 ) ;
  x3do:translation ( 0 0 -10.5 ) .
:Billboard_2_4_2_1_6_1 a owl:NamedIndividual, x3do:Billboard ;
  x3do:hasParent :Transform_2_4_2_1_6 ;
  x3do:hasChildren :Shape_2_4_2_1_6_1_1 .
:Shape_2_4_2_1_6_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Billboard_2_4_2_1_6_1 ;
  x3do:hasGeometry :Text_2_4_2_1_6_1_1_1 ;
  x3do:hasAppearance :LABEL_APPEARANCE-USE-1 .
:Text_2_4_2_1_6_1_1_1 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_2_1_6_1_1 ;
  x3do:hasFontStyle :LABEL_FONT-USE-6 ;
  x3do:string '"Y"' .
:LABEL_FONT-USE-6 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_4_2_1_6_1_1_1 ;
  owl:sameAs :LABEL_FONT . # DEF matching this USE
:LABEL_APPEARANCE-USE-1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_2_1_6_1_1 ;
  owl:sameAs :LABEL_APPEARANCE . # DEF matching this USE
:CenterTextScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_5_1, :field_2_5_2 ;
  x3do:DEF 'CenterTextScript' ;
  x3do:sourceCode """
ecmascript:
// eventOut 'value' is an MFString array to match type of destination Text node string field

function initialize ( ) { 
//	Browser.println ('Grid script initialized, print function works');
//	trace ('Grid script initialized, trace function works');
}

function set_translation (location, timeStamp)  {
	numberOfPlaces = 1000;
	value[0] = (Math.round (location.x * numberOfPlaces) / numberOfPlaces) + ' '
                 + (Math.round (location.y * numberOfPlaces) / numberOfPlaces) + ' '
                 + (Math.round (location.z * numberOfPlaces) / numberOfPlaces); 
//	Browser.println ('location=' + location); 
}
""" .
:field_2_5_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :CenterTextScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'set_translation' ;
  x3do:type 'SFVec3f' .
:field_2_5_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :CenterTextScript ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'value' ;
  x3do:type 'MFString' .
:UpperRightTextScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_6_1, :field_2_6_2 ;
  x3do:DEF 'UpperRightTextScript' ;
  x3do:sourceCode """
ecmascript:

function set_translation (location, timeStamp)  {
	numberOfPlaces = 1000;
	value[0] =  10 + ' ' +  10 + ' '
                 + (Math.round (location.z * numberOfPlaces) / numberOfPlaces); 
}
""" .
:field_2_6_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :UpperRightTextScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'set_translation' ;
  x3do:type 'SFVec3f' .
:field_2_6_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :UpperRightTextScript ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'value' ;
  x3do:type 'MFString' .
:UpperLeftTextScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_7_1, :field_2_7_2 ;
  x3do:DEF 'UpperLeftTextScript' ;
  x3do:sourceCode """
ecmascript:

function set_translation (location, timeStamp)  {
	numberOfPlaces = 1000;
	value[0] =  -10 + ' ' + 10 + ' '
                 + (Math.round (location.z * numberOfPlaces) / numberOfPlaces); 
}
""" .
:field_2_7_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :UpperLeftTextScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'set_translation' ;
  x3do:type 'SFVec3f' .
:field_2_7_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :UpperLeftTextScript ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'value' ;
  x3do:type 'MFString' .
:LowerLeftTextScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_8_1, :field_2_8_2 ;
  x3do:DEF 'LowerLeftTextScript' ;
  x3do:sourceCode """
ecmascript:

function set_translation (location, timeStamp)  {
	numberOfPlaces = 1000;
	value[0] = -10 + ' ' + -10 + ' '
                 + (Math.round (location.z * numberOfPlaces) / numberOfPlaces); 
}
""" .
:field_2_8_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :LowerLeftTextScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'set_translation' ;
  x3do:type 'SFVec3f' .
:field_2_8_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :LowerLeftTextScript ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'value' ;
  x3do:type 'MFString' .
:LowerRightTextScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_9_1, :field_2_9_2 ;
  x3do:DEF 'LowerRightTextScript' ;
  x3do:sourceCode """
ecmascript:

function set_translation (location, timeStamp)  {
	numberOfPlaces = 1000;
	value[0] = 10 + ' ' +  -10 + ' '
                 + (Math.round (location.z * numberOfPlaces) / numberOfPlaces); 
}
""" .
:field_2_9_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :LowerRightTextScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'set_translation' ;
  x3do:type 'SFVec3f' .
:field_2_9_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :LowerRightTextScript ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'value' ;
  x3do:type 'MFString' .
:SwitchTextOnOffScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_10_1, :field_2_10_2 ;
  x3do:DEF 'SwitchTextOnOffScript' ;
  x3do:sourceCode """
ecmascript:

function isTouched (value, timeStamp)  {
	if (value == true)
		touchChoice = -1;
	else	touchChoice =  0; 
}
""" .
:field_2_10_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :SwitchTextOnOffScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'isTouched' ;
  x3do:type 'SFBool' .
:field_2_10_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :SwitchTextOnOffScript ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'touchChoice' ;
  x3do:type 'SFInt32' .
:ROUTE_2_11 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'translation_changed' ;
  x3do:fromNode 'GridSensor' ;
  x3do:toField 'set_translation' ;
  x3do:toNode 'LineSensorAxisZ' .
:ROUTE_2_12 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'translation_changed' ;
  x3do:fromNode 'LineSensorAxisZ' ;
  x3do:toField 'set_translation' ;
  x3do:toNode 'GridLocation' .
:ROUTE_2_13 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'translation_changed' ;
  x3do:fromNode 'LineSensorAxisZ' ;
  x3do:toField 'set_translation' ;
  x3do:toNode 'CenterTextScript' .
:ROUTE_2_14 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'translation_changed' ;
  x3do:fromNode 'LineSensorAxisZ' ;
  x3do:toField 'set_translation' ;
  x3do:toNode 'UpperRightTextScript' .
:ROUTE_2_15 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'translation_changed' ;
  x3do:fromNode 'LineSensorAxisZ' ;
  x3do:toField 'set_translation' ;
  x3do:toNode 'UpperLeftTextScript' .
:ROUTE_2_16 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'translation_changed' ;
  x3do:fromNode 'LineSensorAxisZ' ;
  x3do:toField 'set_translation' ;
  x3do:toNode 'LowerLeftTextScript' .
:ROUTE_2_17 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'translation_changed' ;
  x3do:fromNode 'LineSensorAxisZ' ;
  x3do:toField 'set_translation' ;
  x3do:toNode 'LowerRightTextScript' .
:ROUTE_2_18 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value' ;
  x3do:fromNode 'CenterTextScript' ;
  x3do:toField 'string' ;
  x3do:toNode 'CenterText' .
:ROUTE_2_19 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value' ;
  x3do:fromNode 'UpperRightTextScript' ;
  x3do:toField 'string' ;
  x3do:toNode 'UpperRightText' .
:ROUTE_2_20 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value' ;
  x3do:fromNode 'UpperLeftTextScript' ;
  x3do:toField 'string' ;
  x3do:toNode 'UpperLeftText' .
:ROUTE_2_21 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value' ;
  x3do:fromNode 'LowerLeftTextScript' ;
  x3do:toField 'string' ;
  x3do:toNode 'LowerLeftText' .
:ROUTE_2_22 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value' ;
  x3do:fromNode 'LowerRightTextScript' ;
  x3do:toField 'string' ;
  x3do:toNode 'LowerRightText' .
:ROUTE_2_23 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'TextLabelTouchSensor' ;
  x3do:toField 'isTouched' ;
  x3do:toNode 'SwitchTextOnOffScript' .
:ROUTE_2_24 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'touchChoice' ;
  x3do:fromNode 'SwitchTextOnOffScript' ;
  x3do:toField 'whichChoice' ;
  x3do:toNode 'GridOnOffSwitch' .
