- Timestamp:
- Sep 30, 2013 6:29:29 PM (11 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/field.tcl
r3965 r3966 953 953 set contents [$_field get $cname.dicom] 954 954 if { $contents == "" } { 955 continue; # Ignore this compo ennt955 continue; # Ignore this component 956 956 } 957 957 set vtkdata [DicomToVtk $cname $contents] 958 set viewer [$_field get "about.view"] 959 if { $viewer != "" } { 960 set _viewer $viewer 961 } 958 962 if { $_viewer == "" } { 959 963 set _viewer [expr {($_dim == 3) ? "nanovis" : "contour"}] … … 965 969 set contents [$_field get $cname.ucd] 966 970 if { $contents == "" } { 967 continue; # Ignore this compo ennt971 continue; # Ignore this component 968 972 } 969 973 set vtkdata [AvsToVtk $cname $contents] … … 974 978 } 975 979 set _isValidComponent($cname) 1 980 #puts stderr "Field $cname type is: $_type" 976 981 } 977 982 if { [array size _isValidComponent] == 0 } { … … 992 997 } 993 998 } 999 994 1000 # FIXME: about.scalars and about.vectors are temporary. With views 995 1001 # the label and units for each field will be specified there. -
trunk/gui/scripts/vtkisosurfaceviewer.tcl
r3963 r3966 2117 2117 } 2118 2118 array set style [$dataobj style $comp] 2119 if { $dataobj != $_first } {2119 if { $dataobj != $_first || $style(-levels) == 1 } { 2120 2120 set style(-opacity) 1 2121 }2122 if { $_currentColormap == "" } {2123 set stylelist [$dataobj style $comp]2124 if { $stylelist != "" } {2125 array set style $stylelist2126 set stylelist [array get style]2127 SetCurrentColormap $stylelist2128 }2129 $itk_component(colormap) value $style(-color)2130 2121 } 2131 2122 SendCmd "cutplane add $tag" … … 2151 2142 } 2152 2143 if { $_currentColormap == "" } { 2144 SetCurrentColormap $style(-color) 2153 2145 $itk_component(colormap) value $style(-color) 2154 2146 } … … 2497 2489 set _currentColormap $name 2498 2490 SendCmd "contour3d colormap $_currentColormap" 2491 SendCmd "cutplane colormap $_currentColormap" 2499 2492 } 2500 2493
Note: See TracChangeset
for help on using the changeset viewer.