Changeset 1993 for branches/blt4
- Timestamp:
- Dec 9, 2010, 8:38:32 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/gui/scripts/molvisviewer.tcl
r1962 r1993 129 129 } 130 130 public method snap { w h } 131 private method Opacity {option {models "all"}}131 private method Opacity {option} 132 132 private method SphereScale {option {models "all"} } 133 133 private method StickRadius {option {models "all"} } … … 526 526 10,0 $inner.cell -anchor w -columnspan 4 -pady {1 0} \ 527 527 11,1 $inner.spherescale -fill x -columnspan 4 -pady {1 0} \ 528 1 1,1 $inner.stickradius -fill x -columnspan 4 -pady {1 0} \528 12,1 $inner.stickradius -fill x -columnspan 4 -pady {1 0} \ 529 529 530 530 blt::table configure $inner c0 -resize expand -width 2 … … 758 758 } 759 759 if { ![info exists _dataobjs($model-$state)] } { 760 set data1 760 set data1 "" 761 761 set serial 1 762 762 … … 789 789 # We know we're buffered here, so append the "loadpdb" command 790 790 # with the data payload immediately afterwards. 791 append _outbuf "loadpdb -defer follows $model $state $nBytes\n"791 SendCmd "loadpdb -defer follows $model $state $nBytes" 792 792 append _outbuf $data1 793 793 set _dataobjs($model-$state) 1 … … 802 802 # We know we're buffered here, so append the "loadpdb" command 803 803 # with the data payload immediately afterwards. 804 append _outbuf "loadpdb -defer follows $model $state $nBytes\n"804 SendCmd "loadpdb -defer follows $model $state $nBytes" 805 805 append _outbuf $data2 806 806 set _dataobjs($model-$state) 1 … … 851 851 # We know we're buffered here, so append the "loadpdb" 852 852 # command with the data payload immediately afterwards. 853 append _outbuf \ 854 "loadpdb -defer follows $model $state $nBytes\n" 853 SendCmd "loadpdb -defer follows $model $state $nBytes" 855 854 append _outbuf $data3 856 855 } … … 959 958 debug "rebuild: rotate $_view(mx) $_view(my) $_view(mz)" 960 959 960 SendCmd "raw -defer {zoom complete=1}" 961 set _restore 0 962 } 963 if { $changed } { 961 964 # Default settings for all models. 962 965 SphereScale update … … 968 971 OrthoProjection update 969 972 Representation update 970 SendCmd "raw -defer {zoom complete=1}"971 set _restore 0972 973 } 973 974 set tab [$itk_component(main) panel "Settings"] … … 1837 1838 # ---------------------------------------------------------------------- 1838 1839 1839 itcl::body Rappture::MolvisViewer::Opacity { option {models "all"}} {1840 itcl::body Rappture::MolvisViewer::Opacity { option } { 1840 1841 if { $option == "update" } { 1841 1842 set opacity $_settings($this-opacity) … … 1850 1851 set _settings($this-opacity) $opacity 1851 1852 set transparency [expr 1.0 - $opacity] 1852 if { $models == "all" } { 1853 set models [array names _active] 1854 if { [llength $models] == 0 } { 1853 1855 SendCmd "transparency -model all $transparency" 1854 1856 return … … 1857 1859 SendCmd "transparency -model all $overridetransparency" 1858 1860 foreach model $models { 1859 if { [info exists _active($model)] } { 1860 SendCmd "transparency -model $model $transparency" 1861 } 1861 SendCmd "transparency -model $model $transparency" 1862 1862 } 1863 1863 }
Note: See TracChangeset
for help on using the changeset viewer.