Changeset 5655 for branches/1.4
- Timestamp:
- Jun 4, 2015 10:46:25 AM (9 years ago)
- Location:
- branches/1.4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.4
- Property svn:mergeinfo changed
/trunk merged: 5281,5341-5342,5644-5647
- Property svn:mergeinfo changed
-
branches/1.4/gui/scripts/field.tcl
r5622 r5655 385 385 # 386 386 # Returns a list {min max} representing the limits for the specified 387 # axis .387 # axis over all components. 388 388 # ---------------------------------------------------------------------- 389 389 itcl::body Rappture::Field::limits {which} { … … 503 503 # USAGE: fieldlimits 504 504 # 505 # Returns a list {min max} representing the limits for the specified 506 # axis. 505 # This method is for use with VTK components that have multiple fields. 506 # It really makes no sense to have multiple fields in a field, but this 507 # is here until we add a proper dataset object to hold multiple fields. 508 # 509 # Returns an array mapping fieldname => list {min max} representing the 510 # limits over all components for the given fieldname. This assumes that 511 # all components have the same set of fields. 507 512 # ---------------------------------------------------------------------- 508 513 itcl::body Rappture::Field::fieldlimits {} { -
branches/1.4/gui/scripts/flowvisviewer.tcl
r5643 r5655 989 989 } 990 990 991 if {$tag == "" || ![info exists _dataset2style($tag)]} { 992 return 993 } 991 994 # Display the markers used by the current transfer function. 992 995 set tf $_dataset2style($tag) … … 998 1001 $c coords vmax [expr {$w-$lx}] $ly 999 1002 1003 if { $_first == "" } { 1004 return 1005 } 1000 1006 set title [$_first hints label] 1001 1007 set units [$_first hints units] -
branches/1.4/gui/scripts/nanovisviewer.tcl
r5643 r5655 779 779 # Display the markers used by the current transfer function. 780 780 HideAllMarkers 781 if {$cname == "" || ![info exists _transferFunctionEditors($cname)]} { 782 return 783 } 781 784 $_transferFunctionEditors($cname) showMarkers $_limits($cname) 782 785 … … 788 791 $c coords vmax [expr {$w-$lx}] $ly 789 792 793 if { $_first == "" } { 794 return 795 } 790 796 set title [$_first hints label] 791 797 set units [$_first hints units] … … 795 801 $c itemconfigure title -text $title 796 802 $c coords title [expr {$w/2}] $ly 797 798 # The colormap may have changed. Resync the slicers with the colormap.799 InitSettings -cutplanesvisible -xcutplanevisible -ycutplanevisible \800 -zcutplanevisible801 803 } 802 804 … … 906 908 SendData $data 907 909 set _datasets($tag) 1 908 }909 SetObjectStyle $dataobj $cname910 SetObjectStyle $dataobj $cname 911 } 910 912 if { [info exists _obj2ovride($dataobj-raise)] } { 911 913 SendCmd "volume state 1 $tag" … … 913 915 } 914 916 } 915 # Outline seems to need to be reset every update. 916 InitSettings -outlinevisible -cutplanesvisible 917 918 # Turn off cutplanes for all volumes 919 foreach axis {x y z} { 920 SendCmd "cutplane state 0 $axis" 921 } 922 923 InitSettings -outlinevisible -cutplanesvisible \ 924 -xcutplanevisible -ycutplanevisible -zcutplanevisible \ 925 -xcutplaneposition -ycutplaneposition -zcutplaneposition 926 917 927 if { $_reset } { 918 # Turn off cutplanes for all volumes919 foreach axis {x y z} {920 SendCmd "cutplane state 0 $axis"921 }922 923 928 InitSettings -axesvisible -gridvisible \ 924 - light2side -isosurfaceshading -opacity\929 -opacity -light2side -isosurfaceshading \ 925 930 -light \ 926 -xcutplanevisible -ycutplanevisible -zcutplanevisible \927 931 -current 928 932 … … 960 964 updateTransferFunctions 961 965 } 966 962 967 # Actually write the commands to the server socket. If it fails, we don't 963 968 # care. We're finished here.
Note: See TracChangeset
for help on using the changeset viewer.