Changeset 4031 for trunk/gui/scripts/geoviewer.tcl
- Timestamp:
- Nov 4, 2013, 10:49:37 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/geoviewer.tcl
r4020 r4031 716 716 } 717 717 718 SendCmd "renderer load /usr/share/osgearth/maps/gdal_tiff.earth"719 720 718 set w [winfo width $itk_component(view)] 721 719 set h [winfo height $itk_component(view)] … … 991 989 992 990 itcl::body Rappture::GeoViewer::MouseClick {button x y} { 991 if {0} { 993 992 set w [winfo width $itk_component(view)] 994 993 set h [winfo height $itk_component(view)] 995 994 set x [expr {(2.0 * double($x)/$w) - 1.0}] 996 995 set y [expr {(2.0 * double($y)/$h) - 1.0}] 996 } 997 997 SendCmd "mouse click $button $x $y" 998 998 } 999 999 1000 1000 itcl::body Rappture::GeoViewer::MouseDoubleClick {button x y} { 1001 if {0} { 1001 1002 set w [winfo width $itk_component(view)] 1002 1003 set h [winfo height $itk_component(view)] 1003 1004 set x [expr {(2.0 * double($x)/$w) - 1.0}] 1004 1005 set y [expr {(2.0 * double($y)/$h) - 1.0}] 1006 } 1005 1007 SendCmd "mouse dblclick $button $x $y" 1006 1008 } 1007 1009 1008 1010 itcl::body Rappture::GeoViewer::MouseDrag {button x y} { 1011 if {0} { 1009 1012 set w [winfo width $itk_component(view)] 1010 1013 set h [winfo height $itk_component(view)] 1011 1014 set x [expr {(2.0 * double($x)/$w) - 1.0}] 1012 1015 set y [expr {(2.0 * double($y)/$h) - 1.0}] 1016 } 1013 1017 SendCmd "mouse drag $button $x $y" 1014 1018 } 1015 1019 1016 1020 itcl::body Rappture::GeoViewer::MouseRelease {button x y} { 1021 if {0} { 1017 1022 set w [winfo width $itk_component(view)] 1018 1023 set h [winfo height $itk_component(view)] 1019 1024 set x [expr {(2.0 * double($x)/$w) - 1.0}] 1020 1025 set y [expr {(2.0 * double($y)/$h) - 1.0}] 1026 } 1021 1027 SendCmd "mouse release $button $x $y" 1022 1028 } 1023 1029 1024 1030 itcl::body Rappture::GeoViewer::MouseMotion {x y} { 1031 if {0} { 1025 1032 set w [winfo width $itk_component(view)] 1026 1033 set h [winfo height $itk_component(view)] 1027 1034 set x [expr {(2.0 * double($x)/$w) - 1.0}] 1028 1035 set y [expr {(2.0 * double($y)/$h) - 1.0}] 1036 } 1029 1037 SendCmd "mouse motion $x $y" 1030 1038 }
Note: See TracChangeset
for help on using the changeset viewer.