#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 dreznica Vista { type "SPHERE" texture ImageTexture { url "dreznica_12h.jpg" } vFov -0.441 0.444 pitchRange -0.441 0.444 hFov 0.000 0.000 yawRange 0.000 0.000 zoomRange 0.000 1.571 children [ ] } DEF dreznica_switch Switch { whichChoice 1 choice [ Group {}, Group { children [ ] } ] } DEF dreznica_activator Script { eventIn SFBool activate eventOut SFInt32 switchControl url "vrmlscript: function activate(value, timestamp) { if (value) switchControl = 1; else switchControl = 0; } " ROUTE dreznica.isBound TO dreznica_activator.activate ROUTE dreznica_activator.switchControl TO dreznica_switch.set_whichChoice } DEF dreznica_hs_hs Script { eventIn SFVec2f overPt eventIn SFVec2f clickPt field MFVec2f bBox [ 0.381688 0.002110, 0.587694 0.337553 ] field SFString cursor "CURS_LINK" field SFString fromNode "dreznica" field SFString hsName "dreznica_hs_hs" field SFString targetName "" field SFVec2f targetLocation 0.484691 0.169831 field SFVec3f endView 0.000000 3.141593 0 field SFFloat endZoom 0.436332 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 dreznica.overPt TO dreznica_hs_hs.overPt ROUTE dreznica.clickPt TO dreznica_hs_hs.clickPt ROUTE dreznica_hs_hs.bind TO krn.set_bind } DEF krn Vista { type "SPHERE" texture ImageTexture { url "krn_10h.jpg" } vFov -0.474 0.474 pitchRange -0.474 0.474 hFov 0.000 0.000 yawRange 0.000 0.000 zoomRange 0.000 1.571 children [ ] } DEF krn_switch Switch { whichChoice 0 choice [ Group {}, Group { children [ ] } ] } DEF krn_activator Script { eventIn SFBool activate eventOut SFInt32 switchControl url "vrmlscript: function activate(value, timestamp) { if (value) switchControl = 1; else switchControl = 0; } " ROUTE krn.isBound TO krn_activator.activate ROUTE krn_activator.switchControl TO krn_switch.set_whichChoice } DEF krn_hs_hs Script { eventIn SFVec2f overPt eventIn SFVec2f clickPt field MFVec2f bBox [ 0.473069 0.736940, 0.610011 0.998134 ] field SFString cursor "CURS_LINK" field SFString fromNode "krn" field SFString hsName "krn_hs_hs" field SFString targetName "" field SFVec2f targetLocation 0.541540 0.867537 field SFVec3f endView 0.000000 3.141593 0 field SFFloat endZoom 0.436332 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 krn.overPt TO krn_hs_hs.overPt ROUTE krn.clickPt TO krn_hs_hs.clickPt ROUTE krn_hs_hs.bind TO dreznica.set_bind }