- Timestamp:
- Aug 3, 2012 11:04:39 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkviewer.tcl
r3122 r3137 198 198 # Initialize the view to some default parameters. 199 199 array set _view { 200 qw 1201 qx 0202 qy 0 203 qz 0 200 qw 0.853553 201 qx -0.353553 202 qy 0.353553 203 qz 0.146447 204 204 zoom 1.0 205 205 xpan 0 … … 237 237 molecule-representation "ball and stick" 238 238 molecule-edges 0 239 molecule-labels 0 239 240 molecule-lighting 1 240 molecule-opacity 40241 molecule-opacity 100 241 242 molecule-visible 1 242 243 molecule-wireframe 0 … … 1058 1059 "reset" { 1059 1060 array set _view { 1060 qw 11061 qx 01062 qy 0 1063 qz 0 1061 qw 0.853553 1062 qx -0.353553 1063 qy 0.353553 1064 qz 0.146447 1064 1065 zoom 1.0 1065 1066 xpan 0 … … 1386 1387 } 1387 1388 } 1389 "molecule-labels" { 1390 set bool $_settings(molecule-labels) 1391 foreach dataset [CurrentDatasets -visible $_first] { 1392 foreach { dataobj comp } [split $dataset -] break 1393 set type [$dataobj type $comp] 1394 if { $type == "molecule" } { 1395 SendCmd "molecule labels $bool $dataset" 1396 } 1397 } 1398 } 1388 1399 "axis-visible" { 1389 1400 set bool $_axis(visible) … … 2186 2197 -text "Show Atom Labels" \ 2187 2198 -variable [itcl::scope _settings(molecule-labels)] \ 2199 -command [itcl::code $this AdjustSetting molecule-labels] \ 2188 2200 -font "Arial 9" 2189 2201 … … 2307 2319 blt::table $inner \ 2308 2320 0,0 $inner.molecule -anchor w -pady {1 0} \ 2321 1,0 $inner.label -anchor w -pady {1 0} \ 2309 2322 2,0 $inner.wireframe -anchor w -pady {1 0} \ 2310 2323 4,0 $inner.edges -anchor w -pady {1 0} \
Note: See TracChangeset
for help on using the changeset viewer.