Changeset 935
- Timestamp:
- Mar 10, 2008, 5:26:38 PM (17 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/heightmapviewer.tcl
r924 r935 31 31 proc HeightmapViewer_init_resources {} { 32 32 Rappture::resources::register \ 33 nanovis_server Rappture:: VisViewer::SetNanovisServerList33 nanovis_server Rappture::HeightmapViewer::SetServerList 34 34 } 35 35 … … 50 50 } 51 51 52 public proc SetServerList { namelist } { 53 Rappture::VisViewer::SetServerList "nanovis" $namelist 54 } 52 55 public method isconnected {} 53 56 public method add {dataobj {settings ""}} … … 209 212 set ::Rappture::HeightmapViewer::_settings($this-grid) 1 210 213 ::checkbutton $inner.f.grid \ 211 -text " ShowGrid" \214 -text "Grid" \ 212 215 -variable ::Rappture::HeightmapViewer::_settings($this-grid) \ 213 216 -command [itcl::code $this _fixSettings grid] … … 216 219 set ::Rappture::HeightmapViewer::_settings($this-axes) 1 217 220 ::checkbutton $inner.f.axes \ 218 -text " ShowAxes" \221 -text "Axes" \ 219 222 -variable ::Rappture::HeightmapViewer::_settings($this-axes) \ 220 223 -command [itcl::code $this _fixSettings axes] … … 223 226 set ::Rappture::HeightmapViewer::_settings($this-contourlines) 1 224 227 ::checkbutton $inner.f.contour \ 225 -text " ShowContour Lines" \228 -text "Contour Lines" \ 226 229 -variable ::Rappture::HeightmapViewer::_settings($this-contourlines) \ 227 230 -command [itcl::code $this _fixSettings contourlines] 228 231 grid $inner.f.contour -row 2 -column 0 -sticky w 229 232 233 set ::Rappture::HeightmapViewer::_settings($this-wireframe) "fill" 234 ::checkbutton $inner.f.wireframe \ 235 -text "Wireframe" \ 236 -onvalue "wireframe" -offvalue "fill" \ 237 -variable ::Rappture::HeightmapViewer::_settings($this-wireframe) \ 238 -command [itcl::code $this _fixSettings wireframe] 239 grid $inner.f.wireframe -row 3 -column 0 -sticky w 240 241 set ::Rappture::HeightmapViewer::_settings($this-shading) "smooth" 242 ::checkbutton $inner.f.shading \ 243 -text "Flat Shading" \ 244 -onvalue "flat" -offvalue "smooth" \ 245 -variable ::Rappture::HeightmapViewer::_settings($this-shading) \ 246 -command [itcl::code $this _fixSettings shading] 247 grid $inner.f.shading -row 4 -column 0 -sticky w 230 248 231 249 # Legend … … 716 734 _send "grid linecolor [Color2RGB $itk_option(-plotoutline)]" 717 735 } 736 _fixSettings shading 737 _fixSettings wireframe 718 738 _fixSettings grid 719 739 _fixSettings axes … … 881 901 } 882 902 } 903 "shading" { 904 if { [isconnected] } { 905 _send "heightmap shading $_settings($this-shading)" 906 } 907 } 908 "wireframe" { 909 if { [isconnected] } { 910 _send "heightmap polygon $_settings($this-wireframe)" 911 } 912 } 883 913 "contourlines" { 884 914 if {[isconnected]} { -
trunk/gui/scripts/molvisviewer.tcl
r924 r935 27 27 proc MolvisViewer_init_resources {} { 28 28 Rappture::resources::register \ 29 molvis_server Rappture:: VisViewer::SetPymolServerList29 molvis_server Rappture::MolvisViewer::SetServerList 30 30 } 31 31 … … 50 50 destructor { 51 51 # defined below 52 } 53 public proc SetServerList { namelist } { 54 Rappture::VisViewer::SetServerList "pymol" $namelist 52 55 } 53 56 public method Connect {} -
trunk/gui/scripts/nanovisviewer.tcl
r924 r935 32 32 proc NanovisViewer_init_resources {} { 33 33 Rappture::resources::register \ 34 nanovis_server Rappture:: VisViewer::SetNanovisServerList34 nanovis_server Rappture::NanovisViewer::SetServerList 35 35 } 36 36 … … 49 49 destructor { 50 50 # defined below 51 } 52 public proc SetServerList { namelist } { 53 Rappture::VisViewer::SetServerList "nanovis" $namelist 51 54 } 52 55 public method add {dataobj {settings ""}} … … 419 422 set ::Rappture::NanovisViewer::_settings($this-axes) 1 420 423 ::checkbutton $inner.scales.axes \ 421 -text " ShowAxes" \424 -text "Axes" \ 422 425 -variable ::Rappture::NanovisViewer::_settings($this-axes) \ 423 426 -command [itcl::code $this _fixSettings axes] … … 426 429 set ::Rappture::NanovisViewer::_settings($this-grid) 0 427 430 ::checkbutton $inner.scales.grid \ 428 -text " ShowGrid" \431 -text "Grid" \ 429 432 -variable ::Rappture::NanovisViewer::_settings($this-grid) \ 430 433 -command [itcl::code $this _fixSettings grid] … … 433 436 set ::Rappture::NanovisViewer::_settings($this-outline) 1 434 437 ::checkbutton $inner.scales.outline \ 435 -text " ShowOutline" \438 -text "Outline" \ 436 439 -variable ::Rappture::NanovisViewer::_settings($this-outline) \ 437 440 -command [itcl::code $this _fixSettings outline]
Note: See TracChangeset
for help on using the changeset viewer.