#VRML V2.0 utf8 EXTERNPROTO Vista [ exposedField SFString type exposedField MFNode texture exposedField MFVec2f vFov exposedField MFVec2f hFov exposedField SFVec2f pitchRange exposedField SFVec2f yawRange exposedField SFVec2f zoomRange exposedField MFColor groundColor exposedField MFFloat groundRange exposedField MFColor skyColor exposedField MFFloat skyRange exposedField MFNode children eventOut SFVec2f clickPt eventOut SFVec2f overPt eventOut SFBool isBound eventIn SFBool set_bind ] "http://www.livepicture.com/proto/vistaproto15.wrl#Vista" NavigationInfo { type "EXAMINE" avatarSize [ 0, 0, 0 ] headlight TRUE } Cursor { name "CURS_LINK" clickPoint [7, 1] texture ImageTexture { url "curs_link.gif" chromaKey 1 0 0 } } Cursor { name "CURS_URL" clickPoint [4, 1] texture ImageTexture { url "curs_url.gif" chromaKey 1 0 0 } } Cursor { name "PANIMAGE" clickPoint [3,0] texture ImageTexture { url ":FPX Viewer:pancursor.gif" chromaKey 1 0 0 } } Cursor { name "PANDOWN" clickPoint [3,0] texture ImageTexture { url ":FPX Viewer:pancursordown.gif" chromaKey 1 0 0 } } Cursor { name "ZOOMIN" clickPoint [6,6] texture ImageTexture { url ":FPX Viewer:zoomincursor.gif" chromaKey 1 0 0 } } Cursor { name "ZOOMOUT" clickPoint [6,6] texture ImageTexture { url ":FPX Viewer:zoomoutcursor.gif" chromaKey 1 0 0 } } Script { field SFFloat startZoom 0.436332 field SFVec3f startView 0.000000 3.141593 0 url "vrmlscript: function initialize() { browser.setFOV(startZoom); browser.setOrientation(startView); } " } DEF main Vista { type "SPHERE" texture ImageTexture { url "main.jpg" } vFov -0.330 0.330 pitchRange -0.330 0.330 hFov 0.000 0.000 yawRange 0.000 0.000 zoomRange 0.000 1.571 children [ ] } DEF main_switch Switch { whichChoice 1 choice [ Group {}, Group { children [ ] } ] } DEF main_activator Script { eventIn SFBool activate eventOut SFInt32 switchControl url "vrmlscript: function activate(value, timestamp) { if (value) switchControl = 1; else switchControl = 0; } " ROUTE main.isBound TO main_activator.activate ROUTE main_activator.switchControl TO main_switch.set_whichChoice } DEF main_hs_ned Script { eventIn SFVec2f overPt eventIn SFVec2f clickPt field MFVec2f bBox [ 0.211189 0.312500, 0.248992 0.807693 ] field SFString cursor "CURS_LINK" field SFString fromNode "main" field SFString hsName "main_hs_ned" field SFString targetName "" field SFVec2f targetLocation 0.230091 0.560097 field SFVec3f endView -0.009896 2.385254 0 field SFFloat endZoom 0.319997 eventOut SFBool bind url "vrmlscript: function initialize() { browser.addHotSpot(fromNode, hsName, targetLocation, targetName); } function overPt(value, timestamp) { if (browser.pointInBox(value, bBox)) browser.setCursor(cursor); } function clickPt(value, timestamp) { if (browser.pointInBox(value, bBox)) { bind = TRUE; browser.setFOV(endZoom); browser.setOrientation(endView); } } " ROUTE main.overPt TO main_hs_ned.overPt ROUTE main.clickPt TO main_hs_ned.clickPt ROUTE main_hs_ned.bind TO ned.set_bind } DEF main_hs_in Script { eventIn SFVec2f overPt eventIn SFVec2f clickPt field MFVec2f bBox [ 0.391129 0.355769, 0.423387 0.788462 ] field SFString cursor "CURS_LINK" field SFString fromNode "main" field SFString hsName "main_hs_in" field SFString targetName "" field SFVec2f targetLocation 0.407258 0.572115 field SFVec3f endView 0.000000 1.130781 0 field SFFloat endZoom 0.328000 eventOut SFBool bind url "vrmlscript: function initialize() { browser.addHotSpot(fromNode, hsName, targetLocation, targetName); } function overPt(value, timestamp) { if (browser.pointInBox(value, bBox)) browser.setCursor(cursor); } function clickPt(value, timestamp) { if (browser.pointInBox(value, bBox)) { bind = TRUE; browser.setFOV(endZoom); browser.setOrientation(endView); } } " ROUTE main.overPt TO main_hs_in.overPt ROUTE main.clickPt TO main_hs_in.clickPt ROUTE main_hs_in.bind TO inne.set_bind } DEF inne Vista { type "SPHERE" texture ImageTexture { url "inne.jpg" } vFov -0.338 0.338 pitchRange -0.338 0.338 hFov 0.000 2.445 yawRange 0.000 2.445 zoomRange 0.000 1.571 children [ ] } DEF inne_switch Switch { whichChoice 0 choice [ Group {}, Group { children [ ] } ] } DEF inne_activator Script { eventIn SFBool activate eventOut SFInt32 switchControl url "vrmlscript: function activate(value, timestamp) { if (value) switchControl = 1; else switchControl = 0; } " ROUTE inne.isBound TO inne_activator.activate ROUTE inne_activator.switchControl TO inne_switch.set_whichChoice } DEF inne_hs_ut2 Script { eventIn SFVec2f overPt eventIn SFVec2f clickPt field MFVec2f bBox [ 0.026596 0.158653, 0.255319 0.831730 ] field SFString cursor "CURS_LINK" field SFString fromNode "inne" field SFString hsName "inne_hs_ut2" field SFString targetName "" field SFVec2f targetLocation 0.140957 0.495192 field SFVec3f endView -0.001885 2.509941 0 field SFFloat endZoom 0.319997 eventOut SFBool bind url "vrmlscript: function initialize() { browser.addHotSpot(fromNode, hsName, targetLocation, targetName); } function overPt(value, timestamp) { if (browser.pointInBox(value, bBox)) browser.setCursor(cursor); } function clickPt(value, timestamp) { if (browser.pointInBox(value, bBox)) { bind = TRUE; browser.setFOV(endZoom); browser.setOrientation(endView); } } " ROUTE inne.overPt TO inne_hs_ut2.overPt ROUTE inne.clickPt TO inne_hs_ut2.clickPt ROUTE inne_hs_ut2.bind TO main.set_bind } DEF inne_hs_ut1 Script { eventIn SFVec2f overPt eventIn SFVec2f clickPt field MFVec2f bBox [ 0.739362 0.129808, 0.972075 0.884615 ] field SFString cursor "CURS_LINK" field SFString fromNode "inne" field SFString hsName "inne_hs_ut1" field SFString targetName "" field SFVec2f targetLocation 0.855718 0.507211 field SFVec3f endView -0.000419 2.591063 0 field SFFloat endZoom 0.319997 eventOut SFBool bind url "vrmlscript: function initialize() { browser.addHotSpot(fromNode, hsName, targetLocation, targetName); } function overPt(value, timestamp) { if (browser.pointInBox(value, bBox)) browser.setCursor(cursor); } function clickPt(value, timestamp) { if (browser.pointInBox(value, bBox)) { bind = TRUE; browser.setFOV(endZoom); browser.setOrientation(endView); } } " ROUTE inne.overPt TO inne_hs_ut1.overPt ROUTE inne.clickPt TO inne_hs_ut1.clickPt ROUTE inne_hs_ut1.bind TO main.set_bind } DEF ned Vista { type "SPHERE" texture ImageTexture { url "ned.jpg" } vFov -0.330 0.330 pitchRange -0.330 0.330 hFov 0.000 0.000 yawRange 0.000 0.000 zoomRange 0.000 1.571 children [ ] } DEF ned_switch Switch { whichChoice 0 choice [ Group {}, Group { children [ ] } ] } DEF ned_activator Script { eventIn SFBool activate eventOut SFInt32 switchControl url "vrmlscript: function activate(value, timestamp) { if (value) switchControl = 1; else switchControl = 0; } " ROUTE ned.isBound TO ned_activator.activate ROUTE ned_activator.switchControl TO ned_switch.set_whichChoice } DEF ned_hs_upp Script { eventIn SFVec2f overPt eventIn SFVec2f clickPt field MFVec2f bBox [ 0.878528 0.158654, 0.954637 0.725962 ] field SFString cursor "CURS_LINK" field SFString fromNode "ned" field SFString hsName "ned_hs_upp" field SFString targetName "" field SFVec2f targetLocation 0.916582 0.442308 field SFVec3f endView 0.009634 5.467366 0 field SFFloat endZoom 0.319997 eventOut SFBool bind url "vrmlscript: function initialize() { browser.addHotSpot(fromNode, hsName, targetLocation, targetName); } function overPt(value, timestamp) { if (browser.pointInBox(value, bBox)) browser.setCursor(cursor); } function clickPt(value, timestamp) { if (browser.pointInBox(value, bBox)) { bind = TRUE; browser.setFOV(endZoom); browser.setOrientation(endView); } } " ROUTE ned.overPt TO ned_hs_upp.overPt ROUTE ned.clickPt TO ned_hs_upp.clickPt ROUTE ned_hs_upp.bind TO main.set_bind }