@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_1 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content 'TSSRPairPrototype.x3d' ; x3do:name 'title' . :meta_1_2 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content 'A pair of Tropo Satellite Support Radios (TSSR) used for short-range (< 20 miles) point-to-point SHF communication. The system designed to support remote equipment and users by replacing long cable runs.' ; x3do:name 'description' . :meta_1_3 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content 'Mike Hunsberger' ; x3do:name 'creator' . :meta_1_4 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content '1 May 2001' ; 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://savage.nps.edu/Savage/CommunicationsAndSensors/TSSR/TSSRPairPrototype.x3d' ; x3do:name 'identifier' . :meta_1_7 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content 'https://savage.nps.edu/Savage/CommunicationsAndSensors/TSSR/TSSRPairExample.x3d' ; x3do:name 'reference' . :meta_1_8 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_9 a owl:NamedIndividual, x3do:meta ; x3do:hasParent :head ; x3do:content '../../license.html' ; x3do:name 'license' . :meta dcterms:title "TSSRPairPrototype.x3d" . :meta dcterms:description "A pair of Tropo Satellite Support Radios (TSSR) used for short-range (< 20 miles) point-to-point SHF communication. The system designed to support remote equipment and users by replacing long cable runs." . :meta dcterms:creator "Mike Hunsberger" . :meta dcterms:created "1 May 2001" . :meta dcterms:modified "20 October 2019" . :meta dcterms:identifier "https://savage.nps.edu/Savage/CommunicationsAndSensors/TSSR/TSSRPairPrototype.x3d" . :meta dcterms:reference "https://savage.nps.edu/Savage/CommunicationsAndSensors/TSSR/TSSRPairExample.x3d" . :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:hasExternProtoDeclare :ExternProtoDeclare_2_1 ; x3do:hasProtoDeclare :ProtoDeclare_2_2 ; x3do:hasChildren :WorldInfo_2_3, :ProtoInstance_2_4, :Background_2_5 . :ExternProtoDeclare_2_1 a owl:NamedIndividual, x3do:ExternProtoDeclare ; x3do:hasParent :Scene ; x3do:hasField :field_2_1_1, :field_2_1_2, :field_2_1_3, :field_2_1_4, :field_2_1_5, :field_2_1_6, :field_2_1_7, :field_2_1_8, :field_2_1_9, :field_2_1_10, :field_2_1_11 ; x3do:appinfo 'Produce wireframe or transparent beam cylinders. Typical uses include propeller/thruster water flow or line-of-sight sonar/radar/light beams. Negative range values invert base and apex at same relative location. Default: beam with apex at (0 0 0) and base of radius 1 in x-z plane at (1 0 0).' ; x3do:name 'BeamCylinder' ; x3do:url '"../../CommunicationsAndSensors/Beam/BeamCylinderPrototype.x3d#BeamCylinder" "https://savage.nps.edu/Savage/CommunicationsAndSensors/Beam/BeamCylinderPrototype.x3d#BeamCylinder" "../../CommunicationsAndSensors/Beam/BeamCylinderPrototype.wrl#BeamCylinder" "https://savage.nps.edu/Savage/CommunicationsAndSensors/Beam/BeamCylinderPrototype.wrl#BeamCylinder"' . :field_2_1_1 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ExternProtoDeclare_2_1 ; x3do:accessType 'initializeOnly' ; x3do:appinfo 'Assigning a name to a BeamCylinder aids tracing' ; x3do:name 'name' ; x3do:type 'SFString' . :field_2_1_2 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ExternProtoDeclare_2_1 ; x3do:accessType 'inputOnly' ; x3do:appinfo '(communications) is transmitted signal in contact with receiver or (sensor) is a target return detected?' ; x3do:name 'contact' ; x3do:type 'SFBool' . :field_2_1_3 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ExternProtoDeclare_2_1 ; x3do:accessType 'inputOnly' ; x3do:appinfo 'distance in meters along x axis' ; x3do:name 'range' ; x3do:type 'SFFloat' . :field_2_1_4 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ExternProtoDeclare_2_1 ; x3do:accessType 'initializeOnly' ; x3do:appinfo 'distance in meters used until eventIn range sent' ; x3do:name 'defaultRange' ; x3do:type 'SFFloat' . :field_2_1_5 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ExternProtoDeclare_2_1 ; x3do:accessType 'initializeOnly' ; x3do:appinfo 'whether wireframe beam is drawn' ; x3do:name 'wireframe' ; x3do:type 'SFBool' . :field_2_1_6 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ExternProtoDeclare_2_1 ; x3do:accessType 'initializeOnly' ; x3do:appinfo 'whether solid beam is drawn' ; x3do:name 'solid' ; x3do:type 'SFBool' . :field_2_1_7 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ExternProtoDeclare_2_1 ; x3do:accessType 'initializeOnly' ; x3do:appinfo 'meters across vertical y axis' ; x3do:name 'beamHeight' ; x3do:type 'SFFloat' . :field_2_1_8 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ExternProtoDeclare_2_1 ; x3do:accessType 'initializeOnly' ; x3do:appinfo 'meters across horizontal z axis' ; x3do:name 'beamWidth' ; x3do:type 'SFFloat' . :field_2_1_9 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ExternProtoDeclare_2_1 ; x3do:accessType 'initializeOnly' ; x3do:appinfo 'rendering color when contact=true' ; x3do:name 'contactColor' ; x3do:type 'SFColor' . :field_2_1_10 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ExternProtoDeclare_2_1 ; x3do:accessType 'initializeOnly' ; x3do:appinfo 'rendering color when contact=false' ; x3do:name 'noContactColor' ; x3do:type 'SFColor' . :field_2_1_11 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ExternProtoDeclare_2_1 ; x3do:accessType 'inputOutput' ; x3do:appinfo '1 = fully transparent wireframe only' ; x3do:name 'transparency' ; x3do:type 'SFFloat' . :ProtoDeclare_2_2 a owl:NamedIndividual, x3do:ProtoDeclare ; x3do:hasParent :Scene ; x3do:hasProtoInterface :ProtoInterface_2_2_1 ; x3do:hasProtoBody :ProtoBody_2_2_2 ; x3do:name 'TSSRPair' . :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_1 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ProtoInterface_2_2_1 ; x3do:accessType 'initializeOnly' ; x3do:name 'TSSR1Location' ; x3do:type 'SFVec3f' ; x3do:value ( 1 1 1 ) . :field_2_2_1_2 a owl:NamedIndividual, x3do:field ; x3do:hasParent :ProtoInterface_2_2_1 ; x3do:accessType 'initializeOnly' ; x3do:name 'TSSR2Location' ; x3do:type 'SFVec3f' ; x3do:value ( 0 0 0 ) . :ProtoBody_2_2_2 a owl:NamedIndividual, x3do:ProtoBody ; x3do:hasParent :ProtoDeclare_2_2 ; x3do:hasChildren :Group_2_2_2_1 ; x3do:hasROUTE :ROUTE_2_2_2_2, :ROUTE_2_2_2_3, :ROUTE_2_2_2_4, :ROUTE_2_2_2_5, :ROUTE_2_2_2_6, :ROUTE_2_2_2_7, :ROUTE_2_2_2_8, :ROUTE_2_2_2_9, :ROUTE_2_2_2_10, :ROUTE_2_2_2_11 . :Group_2_2_2_1 a owl:NamedIndividual, x3do:Group ; x3do:hasParent :ProtoBody_2_2_2 ; x3do:hasChildren :TSSRPairViewpoint, :LOD_2_2_2_1_2, :LOD_2_2_2_1_3, :TransmitScript, :TransmitScript2, :CalculateAngleScript . :TSSRPairViewpoint a owl:NamedIndividual, x3do:Viewpoint ; x3do:hasParent :Group_2_2_2_1 ; x3do:DEF 'TSSRPairViewpoint' ; x3do:description 'TSSR Pair Viewpoint' . :LOD_2_2_2_1_2 a owl:NamedIndividual, x3do:LOD ; x3do:hasParent :Group_2_2_2_1 ; x3do:hasChildren :TSSR1_TRANSFORM, :WorldInfo_2_2_2_1_2_2 ; x3do:range ( 40000 ) . :TSSR1_TRANSFORM a owl:NamedIndividual, x3do:Transform ; x3do:hasParent :LOD_2_2_2_1_2 ; x3do:hasIS :IS_2_2_2_1_2_1_1 ; x3do:hasChildren :TSSR1_XY_TRANSFORM, :Transform_2_2_2_1_2_1_3 ; x3do:DEF 'TSSR1_TRANSFORM' . :IS_2_2_2_1_2_1_1 a owl:NamedIndividual, x3do:IS ; x3do:hasParent :TSSR1_TRANSFORM ; x3do:hasConnect :connect_2_2_2_1_2_1_1_1 . :connect_2_2_2_1_2_1_1_1 a owl:NamedIndividual, x3do:connect ; x3do:hasParent :IS_2_2_2_1_2_1_1 ; x3do:nodeField 'translation' ; x3do:protoField 'TSSR1Location' . :TSSR1_XY_TRANSFORM a owl:NamedIndividual, x3do:Transform ; x3do:hasParent :TSSR1_TRANSFORM ; x3do:hasChildren :TSSRBody, :TSSR1Cone ; x3do:DEF 'TSSR1_XY_TRANSFORM' . :TSSRBody a owl:NamedIndividual, x3do:Inline ; x3do:hasParent :TSSR1_XY_TRANSFORM ; x3do:DEF 'TSSRBody' ; x3do:url '"../../CommunicationsAndSensors/TSSR/TSSRBody.x3d" "https://savage.nps.edu/Savage/CommunicationsAndSensors/TSSR/TSSRBody.x3d" "../../CommunicationsAndSensors/TSSR/TSSRBody.wrl" "https://savage.nps.edu/Savage/CommunicationsAndSensors/TSSR/TSSRBody.wrl"' . :TSSR1Cone a owl:NamedIndividual, x3do:Transform ; x3do:hasParent :TSSR1_XY_TRANSFORM ; x3do:hasChildren :TSSR1_BEAMCYLINDER, :LOD_2_2_2_1_2_1_2_2_2 ; x3do:DEF 'TSSR1Cone' ; x3do:translation ( 1 0 0 ) . :TSSR1_BEAMCYLINDER a owl:NamedIndividual, x3do:ProtoInstance ; x3do:hasParent :TSSR1Cone ; x3do:hasFieldValue :fieldValue_2_2_2_1_2_1_2_2_1_1, :fieldValue_2_2_2_1_2_1_2_2_1_2, :fieldValue_2_2_2_1_2_1_2_2_1_3, :fieldValue_2_2_2_1_2_1_2_2_1_4, :fieldValue_2_2_2_1_2_1_2_2_1_5, :fieldValue_2_2_2_1_2_1_2_2_1_6, :fieldValue_2_2_2_1_2_1_2_2_1_7, :fieldValue_2_2_2_1_2_1_2_2_1_8 ; x3do:DEF 'TSSR1_BEAMCYLINDER' ; x3do:name 'BeamCylinder' . :fieldValue_2_2_2_1_2_1_2_2_1_1 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :TSSR1_BEAMCYLINDER ; x3do:name 'defaultRange' ; x3do:value 10 . :fieldValue_2_2_2_1_2_1_2_2_1_2 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :TSSR1_BEAMCYLINDER ; x3do:name 'beamHeight' ; x3do:value 1 . :fieldValue_2_2_2_1_2_1_2_2_1_3 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :TSSR1_BEAMCYLINDER ; x3do:name 'beamWidth' ; x3do:value 1 . :fieldValue_2_2_2_1_2_1_2_2_1_4 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :TSSR1_BEAMCYLINDER ; x3do:name 'transparency' ; x3do:value 0.2 . :fieldValue_2_2_2_1_2_1_2_2_1_5 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :TSSR1_BEAMCYLINDER ; x3do:name 'wireframe' ; x3do:value true . :fieldValue_2_2_2_1_2_1_2_2_1_6 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :TSSR1_BEAMCYLINDER ; x3do:name 'solid' ; x3do:value true . :fieldValue_2_2_2_1_2_1_2_2_1_7 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :TSSR1_BEAMCYLINDER ; x3do:name 'contactColor' ; x3do:value ( .3 .5 .5 ) . :fieldValue_2_2_2_1_2_1_2_2_1_8 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :TSSR1_BEAMCYLINDER ; x3do:name 'noContactColor' ; x3do:value ( .8 .1 .1 ) . :LOD_2_2_2_1_2_1_2_2_2 a owl:NamedIndividual, x3do:LOD ; x3do:hasParent :TSSR1Cone ; x3do:hasChildren :Transform_2_2_2_1_2_1_2_2_2_1, :WorldInfo_2_2_2_1_2_1_2_2_2_2 ; x3do:range ( 100 ) . :Transform_2_2_2_1_2_1_2_2_2_1 a owl:NamedIndividual, x3do:Transform ; x3do:hasParent :LOD_2_2_2_1_2_1_2_2_2 ; x3do:hasChildren :Viewpoint_2_2_2_1_2_1_2_2_2_1_1 . :Viewpoint_2_2_2_1_2_1_2_2_2_1_1 a owl:NamedIndividual, x3do:Viewpoint ; x3do:hasParent :Transform_2_2_2_1_2_1_2_2_2_1 ; x3do:description 'TSSR1 side view' . :WorldInfo_2_2_2_1_2_1_2_2_2_2 a owl:NamedIndividual, x3do:WorldInfo ; x3do:hasParent :LOD_2_2_2_1_2_1_2_2_2 ; x3do:info '"null node for no rendering when distant"' . :Transform_2_2_2_1_2_1_3 a owl:NamedIndividual, x3do:Transform ; x3do:hasParent :TSSR1_TRANSFORM ; x3do:hasChildren :TSSRStand . :TSSRStand a owl:NamedIndividual, x3do:Inline ; x3do:hasParent :Transform_2_2_2_1_2_1_3 ; x3do:DEF 'TSSRStand' ; x3do:url '"../../CommunicationsAndSensors/TSSR/TSSRTripod.x3d" "https://savage.nps.edu/Savage/CommunicationsAndSensors/TSSR/TSSRTripod.x3d" "../../CommunicationsAndSensors/TSSR/TSSRTripod.wrl" "https://savage.nps.edu/Savage/CommunicationsAndSensors/TSSR/TSSRTripod.wrl"' . :WorldInfo_2_2_2_1_2_2 a owl:NamedIndividual, x3do:WorldInfo ; x3do:hasParent :LOD_2_2_2_1_2 ; x3do:info '"null node for no rendering when distant"' . :LOD_2_2_2_1_3 a owl:NamedIndividual, x3do:LOD ; x3do:hasParent :Group_2_2_2_1 ; x3do:hasChildren :TSSR2_TRANSFORM, :WorldInfo_2_2_2_1_3_2 ; x3do:range ( 40000 ) . :TSSR2_TRANSFORM a owl:NamedIndividual, x3do:Transform ; x3do:hasParent :LOD_2_2_2_1_3 ; x3do:hasIS :IS_2_2_2_1_3_1_1 ; x3do:hasChildren :TSSR2_XY_TRANSFORM, :Transform_2_2_2_1_3_1_3 ; x3do:DEF 'TSSR2_TRANSFORM' . :IS_2_2_2_1_3_1_1 a owl:NamedIndividual, x3do:IS ; x3do:hasParent :TSSR2_TRANSFORM ; x3do:hasConnect :connect_2_2_2_1_3_1_1_1 . :connect_2_2_2_1_3_1_1_1 a owl:NamedIndividual, x3do:connect ; x3do:hasParent :IS_2_2_2_1_3_1_1 ; x3do:nodeField 'translation' ; x3do:protoField 'TSSR2Location' . :TSSR2_XY_TRANSFORM a owl:NamedIndividual, x3do:Transform ; x3do:hasParent :TSSR2_TRANSFORM ; x3do:hasChildren :TSSRBody-USE-1, :TSSR2Cone ; x3do:DEF 'TSSR2_XY_TRANSFORM' . :TSSRBody-USE-1 a owl:NamedIndividual, x3do:Inline ; x3do:hasParent :TSSR2_XY_TRANSFORM ; owl:sameAs :TSSRBody . # DEF matching this USE :TSSR2Cone a owl:NamedIndividual, x3do:Transform ; x3do:hasParent :TSSR2_XY_TRANSFORM ; x3do:hasChildren :TSSR2_BEAMCYLINDER, :LOD_2_2_2_1_3_1_2_2_2 ; x3do:DEF 'TSSR2Cone' ; x3do:translation ( 1 0 0 ) . :TSSR2_BEAMCYLINDER a owl:NamedIndividual, x3do:ProtoInstance ; x3do:hasParent :TSSR2Cone ; x3do:hasFieldValue :fieldValue_2_2_2_1_3_1_2_2_1_1, :fieldValue_2_2_2_1_3_1_2_2_1_2, :fieldValue_2_2_2_1_3_1_2_2_1_3, :fieldValue_2_2_2_1_3_1_2_2_1_4, :fieldValue_2_2_2_1_3_1_2_2_1_5, :fieldValue_2_2_2_1_3_1_2_2_1_6, :fieldValue_2_2_2_1_3_1_2_2_1_7, :fieldValue_2_2_2_1_3_1_2_2_1_8 ; x3do:DEF 'TSSR2_BEAMCYLINDER' ; x3do:name 'BeamCylinder' . :fieldValue_2_2_2_1_3_1_2_2_1_1 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :TSSR2_BEAMCYLINDER ; x3do:name 'defaultRange' ; x3do:value 10 . :fieldValue_2_2_2_1_3_1_2_2_1_2 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :TSSR2_BEAMCYLINDER ; x3do:name 'beamHeight' ; x3do:value 1 . :fieldValue_2_2_2_1_3_1_2_2_1_3 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :TSSR2_BEAMCYLINDER ; x3do:name 'beamWidth' ; x3do:value 1 . :fieldValue_2_2_2_1_3_1_2_2_1_4 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :TSSR2_BEAMCYLINDER ; x3do:name 'transparency' ; x3do:value 0.2 . :fieldValue_2_2_2_1_3_1_2_2_1_5 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :TSSR2_BEAMCYLINDER ; x3do:name 'wireframe' ; x3do:value true . :fieldValue_2_2_2_1_3_1_2_2_1_6 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :TSSR2_BEAMCYLINDER ; x3do:name 'solid' ; x3do:value true . :fieldValue_2_2_2_1_3_1_2_2_1_7 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :TSSR2_BEAMCYLINDER ; x3do:name 'contactColor' ; x3do:value ( .3 .5 .5 ) . :fieldValue_2_2_2_1_3_1_2_2_1_8 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :TSSR2_BEAMCYLINDER ; x3do:name 'noContactColor' ; x3do:value ( .8 .1 .1 ) . :LOD_2_2_2_1_3_1_2_2_2 a owl:NamedIndividual, x3do:LOD ; x3do:hasParent :TSSR2Cone ; x3do:hasChildren :Transform_2_2_2_1_3_1_2_2_2_1, :WorldInfo_2_2_2_1_3_1_2_2_2_2 ; x3do:range ( 100 ) . :Transform_2_2_2_1_3_1_2_2_2_1 a owl:NamedIndividual, x3do:Transform ; x3do:hasParent :LOD_2_2_2_1_3_1_2_2_2 ; x3do:hasChildren :Viewpoint_2_2_2_1_3_1_2_2_2_1_1 . :Viewpoint_2_2_2_1_3_1_2_2_2_1_1 a owl:NamedIndividual, x3do:Viewpoint ; x3do:hasParent :Transform_2_2_2_1_3_1_2_2_2_1 ; x3do:description 'TSSR2 side view' ; x3do:orientation ( 0 1 0 3.14 ) ; x3do:position ( 0 0 -10 ) . :WorldInfo_2_2_2_1_3_1_2_2_2_2 a owl:NamedIndividual, x3do:WorldInfo ; x3do:hasParent :LOD_2_2_2_1_3_1_2_2_2 ; x3do:info '"null node for no rendering when distant"' . :Transform_2_2_2_1_3_1_3 a owl:NamedIndividual, x3do:Transform ; x3do:hasParent :TSSR2_TRANSFORM ; x3do:hasChildren :TSSRStand-USE-1 . :TSSRStand-USE-1 a owl:NamedIndividual, x3do:Inline ; x3do:hasParent :Transform_2_2_2_1_3_1_3 ; owl:sameAs :TSSRStand . # DEF matching this USE :WorldInfo_2_2_2_1_3_2 a owl:NamedIndividual, x3do:WorldInfo ; x3do:hasParent :LOD_2_2_2_1_3 ; x3do:info '"null node for no rendering when distant"' . :TransmitScript a owl:NamedIndividual, x3do:Script ; x3do:hasParent :Group_2_2_2_1 ; x3do:hasField :field_2_2_2_1_4_1, :field_2_2_2_1_4_2 ; x3do:DEF 'TransmitScript' ; x3do:sourceCode """ ecmascript: function initialize () { size = new SFVec3f(100, 100, 100) ; Browser.println ('TransmitScript initialize() complete') ; } // function name matches eventIn variable name ('hour') // hourValue captures the new value of the ROUTE hour event // minutes is just the current field value function transState (newValue, timestamp) { transmitState = newValue ; if (transmitState == 3) { size = new SFVec3f(10, 10, 10) ; } else { size = new SFVec3f(100, 100, 100) ; } Browser.println ('size = ' + size) ; } """ . :field_2_2_2_1_4_1 a owl:NamedIndividual, x3do:field ; x3do:hasParent :TransmitScript ; x3do:accessType 'inputOnly' ; x3do:name 'transState' ; x3do:type 'SFInt32' . :field_2_2_2_1_4_2 a owl:NamedIndividual, x3do:field ; x3do:hasParent :TransmitScript ; x3do:accessType 'outputOnly' ; x3do:name 'size' ; x3do:type 'SFVec3f' . :TransmitScript2 a owl:NamedIndividual, x3do:Script ; x3do:hasParent :Group_2_2_2_1 ; x3do:hasField :field_2_2_2_1_5_1, :field_2_2_2_1_5_2 ; x3do:DEF 'TransmitScript2' ; x3do:sourceCode """ ecmascript: function initialize () { size = new SFVec3f(100, 100, 100) ; Browser.println ('TransmitScript initialize() complete') ; } // function name matches eventIn variable name ('hour') // hourValue captures the new value of the ROUTE hour event // minutes is just the current field value function transState (newValue, timestamp) { transmitState = newValue ; if (transmitState == 3) { size = new SFVec3f(10, 10, 10) ; } else { size = new SFVec3f(100, 100, 100) ; } Browser.println ('size = ' + size) ; } """ . :field_2_2_2_1_5_1 a owl:NamedIndividual, x3do:field ; x3do:hasParent :TransmitScript2 ; x3do:accessType 'inputOnly' ; x3do:name 'transState' ; x3do:type 'SFInt32' . :field_2_2_2_1_5_2 a owl:NamedIndividual, x3do:field ; x3do:hasParent :TransmitScript2 ; x3do:accessType 'outputOnly' ; x3do:name 'size' ; x3do:type 'SFVec3f' . :CalculateAngleScript a owl:NamedIndividual, x3do:Script ; x3do:hasParent :Group_2_2_2_1 ; x3do:hasField :field_2_2_2_1_6_1, :field_2_2_2_1_6_2, :field_2_2_2_1_6_3, :field_2_2_2_1_6_4, :field_2_2_2_1_6_5, :field_2_2_2_1_6_6, :field_2_2_2_1_6_7, :field_2_2_2_1_6_8, :field_2_2_2_1_6_9, :field_2_2_2_1_6_10, :field_2_2_2_1_6_11 ; x3do:hasIS :IS_2_2_2_1_6_12 ; x3do:DEF 'CalculateAngleScript' ; x3do:sourceCode """ ecmascript: function initialize () { Browser.println ('TSSR1 =' + TSSR1Location) ; Browser.println ('TSSR2 =' + TSSR2Location) ; Browser.println ('TransmitScript initialize() complete') ; active = true ; TSSR1_XZangle = new SFRotation(0, 1, 0, 0) ; TSSR2_XZangle = new SFRotation(0, 1, 0, 0) ; TSSR1_XYangle = new SFRotation(0, 0, 1, 0) ; TSSR2_XYangle = new SFRotation(0, 0, 1, 0) ; beamScale = new SFVec3f ( ) ; ViewpointLocation = new SFVec3f ( ) ; ViewpointAngle = new SFRotation(0, 1, 0, 0) ; LinkEstablished = true; compute(active) ; } function compute ( ) { computeDistance( ) ; computeXZangle( ); ViewpointLocation[0] = TSSR1Location[0] ; ViewpointLocation[1] = TSSR1Location[1] + 4; ViewpointLocation[2] = TSSR1Location[2] ; Browser.println ('ViewpointLocation =' + ViewpointLocation) ; ViewpointAngle[3] = TSSR1_XZangle[3] - Math.PI/2; Browser.println ('ViewpointAngle =' + ViewpointAngle) ; computeXYangle( ) ; } function computeDistance( ) { Browser.println ('TSSR1 =' + TSSR1Location) ; Browser.println ('TSSR2 =' + TSSR2Location) ; deltaX = (TSSR2Location[0] - TSSR1Location[0]) ; deltaY = (TSSR2Location[1] - TSSR1Location[1]) ; deltaZ = (TSSR2Location[2] - TSSR1Location[2]) ; distanceSquared = deltaX * deltaX + deltaY * deltaY + deltaZ * deltaZ ; Browser.println ('Distance Squared =' + distanceSquared) ; distance = Math.sqrt(distanceSquared) ; Browser.println ('Distance =' + distance) ; beamScale[0] = distance/10; beamScale[1] = 5; beamScale[2] = 5; Browser.println ('BeamScale =' + beamScale) ; beamLength = distance - 2 ; if (distance > 5000/.6) { LinkEstablished = false; beamLength = 5000; } } function computeXZangle( ) { if (deltaZ == 0) { deltaZ = .00000001 ; } angle = Math.atan(deltaX/deltaZ) ; if (deltaZ < 0) { TSSR1_XZangle[3] = angle + Math.PI/2; } else { TSSR1_XZangle[3] = angle - Math.PI/2; } TSSR2_XZangle[3] = TSSR1_XZangle[3] + Math.PI; Browser.println ('Angle =' + TSSR1_XZangle[3]) ; Browser.println ('Angle2 =' + TSSR2_XZangle[3]) ; } function computeXYangle( ) { angle = Math.asin(deltaY/distance) ; TSSR1_XYangle[3] = angle ; TSSR2_XYangle[3] = - TSSR1_XYangle[3]; Browser.println ('AngleXY =' + TSSR1_XYangle[3]) ; Browser.println ('Angle2XY =' + TSSR2_XYangle[3]) ; } """ . :field_2_2_2_1_6_1 a owl:NamedIndividual, x3do:field ; x3do:hasParent :CalculateAngleScript ; x3do:accessType 'initializeOnly' ; x3do:name 'TSSR1Location' ; x3do:type 'SFVec3f' . :field_2_2_2_1_6_2 a owl:NamedIndividual, x3do:field ; x3do:hasParent :CalculateAngleScript ; x3do:accessType 'initializeOnly' ; x3do:name 'TSSR2Location' ; x3do:type 'SFVec3f' . :field_2_2_2_1_6_3 a owl:NamedIndividual, x3do:field ; x3do:hasParent :CalculateAngleScript ; x3do:accessType 'outputOnly' ; x3do:name 'TSSR1_XZangle' ; x3do:type 'SFRotation' . :field_2_2_2_1_6_4 a owl:NamedIndividual, x3do:field ; x3do:hasParent :CalculateAngleScript ; x3do:accessType 'outputOnly' ; x3do:name 'TSSR2_XZangle' ; x3do:type 'SFRotation' . :field_2_2_2_1_6_5 a owl:NamedIndividual, x3do:field ; x3do:hasParent :CalculateAngleScript ; x3do:accessType 'outputOnly' ; x3do:name 'beamScale' ; x3do:type 'SFVec3f' . :field_2_2_2_1_6_6 a owl:NamedIndividual, x3do:field ; x3do:hasParent :CalculateAngleScript ; x3do:accessType 'outputOnly' ; x3do:name 'beamLength' ; x3do:type 'SFFloat' . :field_2_2_2_1_6_7 a owl:NamedIndividual, x3do:field ; x3do:hasParent :CalculateAngleScript ; x3do:accessType 'outputOnly' ; x3do:name 'TSSR1_XYangle' ; x3do:type 'SFRotation' . :field_2_2_2_1_6_8 a owl:NamedIndividual, x3do:field ; x3do:hasParent :CalculateAngleScript ; x3do:accessType 'outputOnly' ; x3do:name 'TSSR2_XYangle' ; x3do:type 'SFRotation' . :field_2_2_2_1_6_9 a owl:NamedIndividual, x3do:field ; x3do:hasParent :CalculateAngleScript ; x3do:accessType 'outputOnly' ; x3do:name 'LinkEstablished' ; x3do:type 'SFBool' . :field_2_2_2_1_6_10 a owl:NamedIndividual, x3do:field ; x3do:hasParent :CalculateAngleScript ; x3do:accessType 'outputOnly' ; x3do:name 'ViewpointLocation' ; x3do:type 'SFVec3f' . :field_2_2_2_1_6_11 a owl:NamedIndividual, x3do:field ; x3do:hasParent :CalculateAngleScript ; x3do:accessType 'outputOnly' ; x3do:name 'ViewpointAngle' ; x3do:type 'SFRotation' . :IS_2_2_2_1_6_12 a owl:NamedIndividual, x3do:IS ; x3do:hasParent :CalculateAngleScript ; x3do:hasConnect :connect_2_2_2_1_6_12_1, :connect_2_2_2_1_6_12_2 . :connect_2_2_2_1_6_12_1 a owl:NamedIndividual, x3do:connect ; x3do:hasParent :IS_2_2_2_1_6_12 ; x3do:nodeField 'TSSR1Location' ; x3do:protoField 'TSSR1Location' . :connect_2_2_2_1_6_12_2 a owl:NamedIndividual, x3do:connect ; x3do:hasParent :IS_2_2_2_1_6_12 ; x3do:nodeField 'TSSR2Location' ; x3do:protoField 'TSSR2Location' . :ROUTE_2_2_2_2 a owl:NamedIndividual, x3do:ROUTE ; x3do:hasParent :ProtoBody_2_2_2 ; x3do:fromField 'TSSR1_XZangle' ; x3do:fromNode 'CalculateAngleScript' ; x3do:toField 'rotation' ; x3do:toNode 'TSSR1_TRANSFORM' . :ROUTE_2_2_2_3 a owl:NamedIndividual, x3do:ROUTE ; x3do:hasParent :ProtoBody_2_2_2 ; x3do:fromField 'TSSR2_XZangle' ; x3do:fromNode 'CalculateAngleScript' ; x3do:toField 'rotation' ; x3do:toNode 'TSSR2_TRANSFORM' . :ROUTE_2_2_2_4 a owl:NamedIndividual, x3do:ROUTE ; x3do:hasParent :ProtoBody_2_2_2 ; x3do:fromField 'beamLength' ; x3do:fromNode 'CalculateAngleScript' ; x3do:toField 'range' ; x3do:toNode 'TSSR1_BEAMCYLINDER' . :ROUTE_2_2_2_5 a owl:NamedIndividual, x3do:ROUTE ; x3do:hasParent :ProtoBody_2_2_2 ; x3do:fromField 'beamLength' ; x3do:fromNode 'CalculateAngleScript' ; x3do:toField 'range' ; x3do:toNode 'TSSR2_BEAMCYLINDER' . :ROUTE_2_2_2_6 a owl:NamedIndividual, x3do:ROUTE ; x3do:hasParent :ProtoBody_2_2_2 ; x3do:fromField 'TSSR1_XYangle' ; x3do:fromNode 'CalculateAngleScript' ; x3do:toField 'rotation' ; x3do:toNode 'TSSR1_XY_TRANSFORM' . :ROUTE_2_2_2_7 a owl:NamedIndividual, x3do:ROUTE ; x3do:hasParent :ProtoBody_2_2_2 ; x3do:fromField 'TSSR2_XYangle' ; x3do:fromNode 'CalculateAngleScript' ; x3do:toField 'rotation' ; x3do:toNode 'TSSR2_XY_TRANSFORM' . :ROUTE_2_2_2_8 a owl:NamedIndividual, x3do:ROUTE ; x3do:hasParent :ProtoBody_2_2_2 ; x3do:fromField 'LinkEstablished' ; x3do:fromNode 'CalculateAngleScript' ; x3do:toField 'contact' ; x3do:toNode 'TSSR1_BEAMCYLINDER' . :ROUTE_2_2_2_9 a owl:NamedIndividual, x3do:ROUTE ; x3do:hasParent :ProtoBody_2_2_2 ; x3do:fromField 'LinkEstablished' ; x3do:fromNode 'CalculateAngleScript' ; x3do:toField 'contact' ; x3do:toNode 'TSSR2_BEAMCYLINDER' . :ROUTE_2_2_2_10 a owl:NamedIndividual, x3do:ROUTE ; x3do:hasParent :ProtoBody_2_2_2 ; x3do:fromField 'ViewpointLocation' ; x3do:fromNode 'CalculateAngleScript' ; x3do:toField 'position' ; x3do:toNode 'TSSRPairViewpoint' . :ROUTE_2_2_2_11 a owl:NamedIndividual, x3do:ROUTE ; x3do:hasParent :ProtoBody_2_2_2 ; x3do:fromField 'ViewpointAngle' ; x3do:fromNode 'CalculateAngleScript' ; x3do:toField 'orientation' ; x3do:toNode 'TSSRPairViewpoint' . :WorldInfo_2_3 a owl:NamedIndividual, x3do:WorldInfo ; x3do:hasParent :Scene ; x3do:info '"Author: Mike Hunsberger" "Revised: 30 April 2001" "Purpose: Pair of TSSRs" "Browser: CosmoPlayer"' ; x3do:title 'AntennaWorld' . :ProtoInstance_2_4 a owl:NamedIndividual, x3do:ProtoInstance ; x3do:hasParent :Scene ; x3do:hasFieldValue :fieldValue_2_4_1, :fieldValue_2_4_2 ; x3do:name 'TSSRPair' . :fieldValue_2_4_1 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :ProtoInstance_2_4 ; x3do:name 'TSSR1Location' ; x3do:value ( 0 0 0 ) . :fieldValue_2_4_2 a owl:NamedIndividual, x3do:fieldValue ; x3do:hasParent :ProtoInstance_2_4 ; x3do:name 'TSSR2Location' ; x3do:value ( 50 0 50 ) . :Background_2_5 a owl:NamedIndividual, x3do:Background ; x3do:hasParent :Scene ; x3do:groundAngle ( 1.57079 ) ; x3do:groundColor ( 1 0.8 0.6 0.6 0.4 0.2 ) ; x3do:skyAngle ( 0.2 ) ; x3do:skyColor ( 1 1 1 0.2 0.2 1 ) .