Changeset 4351 for branches/1.3/gui/scripts
- Timestamp:
- Apr 29, 2014 9:28:09 AM (10 years ago)
- Location:
- branches/1.3/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3/gui/scripts/vtkisosurfaceviewer.tcl
r4341 r4351 1 1 # -*- mode: tcl; indent-tabs-mode: nil -*- 2 3 # ---------------------------------------------------------------------- 4 # COMPONENT: vtkisolinesviewer - Vtk 3D contour object viewer 2 # ---------------------------------------------------------------------- 3 # COMPONENT: vtkisosurfaceviewer - Vtk 3D contour object viewer 5 4 # 6 5 # It connects to the Vtk server running on a rendering farm, … … 223 222 224 223 array set _settings { 224 -axesvisible 1 225 -axislabelsvisible 1 225 226 -background black 226 227 -colormap BCGYR 227 228 -colormapvisible 1 228 -field "Default"229 -isolinecolor white230 -axesvisible 1231 -axislabelsvisible 1232 229 -cutplaneedges 0 233 230 -cutplanelighting 1 … … 236 233 -cutplanesvisible 0 237 234 -cutplanewireframe 0 235 -field "Default" 236 -isolinecolor white 238 237 -isosurfaceedges 0 239 238 -isosurfacelighting 1 … … 356 355 pack $itk_component(cutplane) -padx 2 -pady 2 357 356 357 358 358 if { [catch { 359 359 BuildIsosurfaceTab … … 969 969 } 970 970 set _first "" 971 SendCmd " datasetvisible 0"971 SendCmd "contour3d visible 0" 972 972 foreach dataobj [get -objects] { 973 973 if { [info exists _obj2ovride($dataobj-raise)] && $_first == "" } { … … 1005 1005 # Setting dataset visible enables outline 1006 1006 # and contour3d 1007 SendCmd " datasetvisible 1 $tag"1007 SendCmd "contour3d visible 1 $tag" 1008 1008 } 1009 1009 } … … 1419 1419 "-isosurfacevisible" { 1420 1420 set bool $_settings($what) 1421 SendCmd "contour3d visible $bool" 1421 SendCmd "contour3d visible 0" 1422 if { $bool } { 1423 foreach tag [CurrentDatasets -visible] { 1424 SendCmd "contour3d visible $bool $tag" 1425 } 1426 } 1422 1427 if { $bool } { 1423 1428 Rappture::Tooltip::for $itk_component(contour) \ … … 1469 1474 } 1470 1475 SendCmd "dataset scalar $_curFldName" 1471 SendCmd "dataset maprange explicit $_limits($_curFldName) $_curFldName" 1476 if { ![info exists _limits($_curFldName)] } { 1477 SendCmd "dataset maprange all" 1478 } else { 1479 SendCmd "dataset maprange explicit $_limits($_curFldName) $_curFldName" 1480 } 1472 1481 SendCmd "cutplane colormode $_colorMode $_curFldName" 1473 1482 SendCmd "contour3d colormode $_colorMode $_curFldName" … … 2109 2118 array set style { 2110 2119 -color BCGYR 2120 -cutplanesvisible 0 2121 -edgecolor black 2111 2122 -edges 0 2112 -edgecolor black 2123 -isosurfacevisible 1 2124 -levels 10 2125 -lighting 1 2113 2126 -linewidth 1.0 2114 2127 -opacity 0.6 2128 -outline 0 2115 2129 -wireframe 0 2116 -lighting 1 2117 -outline 0 2118 -levels 10 2119 -cutplanesvisible 0 2130 -xcutplaneposition 50 2120 2131 -xcutplanevisible 1 2132 -ycutplaneposition 50 2121 2133 -ycutplanevisible 1 2134 -zcutplaneposition 50 2122 2135 -zcutplanevisible 1 2123 -xcutplaneposition 502124 -ycutplaneposition 502125 -zcutplaneposition 502126 -isosurfacevisible 12127 2136 } 2128 2137 array set style [$dataobj style $comp] … … 2378 2387 # If there's a legend title, create a text item for the title. 2379 2388 $c create text $x $y \ 2380 -anchor ne \ 2381 -fill $itk_option(-plotforeground) -tags "title legend" \ 2382 -font $font 2383 incr y $lineht 2389 -anchor ne \ 2390 -fill $itk_option(-plotforeground) -tags "title legend" \ 2391 -font $font 2392 if { $title != "" } { 2393 incr y $lineht 2394 } 2384 2395 $c create text $x $y \ 2385 2396 -anchor ne \ -
branches/1.3/gui/scripts/vtkvolumeviewer.tcl
r4335 r4351 2254 2254 set x [expr $x1 + [winfo rootx $itk_component(view)]] 2255 2255 set y [expr $y2 + [winfo rooty $itk_component(view)]] 2256 #puts stderr "combo x=$x y=$y"2257 2256 tk_popup $itk_component(fieldmenu) $x $y 2258 2257 }
Note: See TracChangeset
for help on using the changeset viewer.