- Timestamp:
- Mar 2, 2013 9:11:34 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r3373 r3416 10208 10208 10209 10209 10210 ac_config_files="$ac_config_files Makefile packages/Makefile src/Makefile src/core/Makefile src/core2/Makefile src/objects/Makefile src/objects/RpHash.h gui/Makefile gui/apps/Makefile gui/apps/about gui/apps/copy_rappture_examples gui/apps/encodedata gui/apps/rappture gui/apps/rappture-csh.env gui/apps/rappture.env gui/apps/rappture.use gui/apps/rerun gui/apps/simsim gui/apps/xmldiff gui/pkgIndex.tcl gui/scripts/Makefile gui/src/Makefile builder/Makefile builder/pkgIndex.tcl builder/scripts/Makefile tester/Makefile tester/pkgIndex.tcl tester/scripts/Makefile lang/Makefile lang/java/Makefile lang/java/rappture/Makefile lang/perl/Makefile lang/perl/Makefile.PL lang/python/Makefile lang/python/setup.py lang/matlab/Makefile lang/octave/Makefile lang/octave/octave2/Makefile lang/octave/octave3/Makefile lang/R/Makefile lang/ruby/Makefile lang/ruby/build.rb lang/tcl/Makefile lang/tcl/pkgIndex.tcl lang/tcl/src/Makefile lang/tcl/scripts/Makefile lang/tcl/tests/Makefile lib/Makefile examples/3D/Makefile examples/Makefile examples/app-fermi/2.0/Makefile examples/app-fermi/Makefile examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/app-fermi/java/Makefile examples/app-fermi/matlab/Makefile examples/app-fermi/matlab/compiled/Makefile examples/app-fermi/matlab/uncompiled/Makefile examples/app-fermi/octave/octave2/Makefile examples/app-fermi/octave/octave3/Makefile examples/app-fermi/octave/Makefile examples/app-fermi/perl/Makefile examples/app-fermi/python/Makefile examples/app-fermi/ruby/Makefile examples/app-fermi/tcl/Makefile examples/app-fermi/wrapper/Makefile examples/app-fermi/wrapper/cee/Makefile examples/app-fermi/wrapper/perl/Makefile examples/app-fermi/wrapper/python/Makefile examples/app-fermi/wrapper/tcl/Makefile examples/app-fermi/R/Makefile examples/c-example/Makefile examples/canvas/Makefile examples/demo.bash examples/flow/Makefile examples/flow/demo1/Makefile examples/flow/demo2/Makefile examples/flow/demo3/Makefile examples/graph/Makefile examples/objects/Makefile examples/objects/axis/Makefile examples/objects/contour/Makefile examples/objects/curve/Makefile examples/objects/dxWriter/Makefile examples/objects/floatBuffer/Makefile examples/objects/histogram/Makefile examples/objects/library/Makefile examples/objects/number/Makefile examples/objects/path/Makefile examples/objects/plot/Makefile examples/objects/scatter/Makefile examples/objects/string/Makefile examples/objects/tree/Makefile examples/objects/xmlparser/Makefile examples/zoo/Makefile examples/zoo/binary/Makefile examples/zoo/boolean/Makefile examples/zoo/choice/Makefile examples/zoo/cloud/Makefile examples/zoo/cloud/matlab/Makefile examples/zoo/curve/Makefile examples/zoo/drawing/Makefile examples/zoo/enable/Makefile examples/zoo/field/Makefile examples/zoo/group/Makefile examples/zoo/histogram/Makefile examples/zoo/image/Makefile examples/zoo/image/docs/Makefile examples/zoo/image/examples/Makefile examples/zoo/integer/Makefile examples/zoo/integer2/Makefile examples/zoo/loader/Makefile examples/zoo/loader/examples/Makefile examples/zoo/log/Makefile examples/zoo/ note/Makefile examples/zoo/note/docs/Makefile examples/zoo/number/Makefile examples/zoo/number2/Makefile examples/zoo/parallelepiped/Makefile examples/zoo/periodicelement/Makefile examples/zoo/phase/Makefile examples/zoo/sequence/Makefile examples/zoo/sequence/examples/Makefile examples/zoo/string/Makefile examples/zoo/structure/Makefile examples/zoo/structure/examples/Makefile examples/zoo/table/Makefile examples/zoo/unirect2d/Makefile video/Makefile video/pkgIndex.tcl oldtest/Makefile oldtest/src/Makefile"10210 ac_config_files="$ac_config_files Makefile packages/Makefile src/Makefile src/core/Makefile src/core2/Makefile src/objects/Makefile src/objects/RpHash.h gui/Makefile gui/apps/Makefile gui/apps/about gui/apps/copy_rappture_examples gui/apps/encodedata gui/apps/rappture gui/apps/rappture-csh.env gui/apps/rappture.env gui/apps/rappture.use gui/apps/rerun gui/apps/simsim gui/apps/xmldiff gui/pkgIndex.tcl gui/scripts/Makefile gui/src/Makefile builder/Makefile builder/pkgIndex.tcl builder/scripts/Makefile tester/Makefile tester/pkgIndex.tcl tester/scripts/Makefile lang/Makefile lang/java/Makefile lang/java/rappture/Makefile lang/perl/Makefile lang/perl/Makefile.PL lang/python/Makefile lang/python/setup.py lang/matlab/Makefile lang/octave/Makefile lang/octave/octave2/Makefile lang/octave/octave3/Makefile lang/R/Makefile lang/ruby/Makefile lang/ruby/build.rb lang/tcl/Makefile lang/tcl/pkgIndex.tcl lang/tcl/src/Makefile lang/tcl/scripts/Makefile lang/tcl/tests/Makefile lib/Makefile examples/3D/Makefile examples/Makefile examples/app-fermi/2.0/Makefile examples/app-fermi/Makefile examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/app-fermi/java/Makefile examples/app-fermi/matlab/Makefile examples/app-fermi/matlab/compiled/Makefile examples/app-fermi/matlab/uncompiled/Makefile examples/app-fermi/octave/octave2/Makefile examples/app-fermi/octave/octave3/Makefile examples/app-fermi/octave/Makefile examples/app-fermi/perl/Makefile examples/app-fermi/python/Makefile examples/app-fermi/ruby/Makefile examples/app-fermi/tcl/Makefile examples/app-fermi/wrapper/Makefile examples/app-fermi/wrapper/cee/Makefile examples/app-fermi/wrapper/perl/Makefile examples/app-fermi/wrapper/python/Makefile examples/app-fermi/wrapper/tcl/Makefile examples/app-fermi/R/Makefile examples/c-example/Makefile examples/canvas/Makefile examples/demo.bash examples/flow/Makefile examples/flow/demo1/Makefile examples/flow/demo2/Makefile examples/flow/demo3/Makefile examples/graph/Makefile examples/objects/Makefile examples/objects/axis/Makefile examples/objects/contour/Makefile examples/objects/curve/Makefile examples/objects/dxWriter/Makefile examples/objects/floatBuffer/Makefile examples/objects/histogram/Makefile examples/objects/library/Makefile examples/objects/number/Makefile examples/objects/path/Makefile examples/objects/plot/Makefile examples/objects/scatter/Makefile examples/objects/string/Makefile examples/objects/tree/Makefile examples/objects/xmlparser/Makefile examples/zoo/Makefile examples/zoo/binary/Makefile examples/zoo/boolean/Makefile examples/zoo/choice/Makefile examples/zoo/cloud/Makefile examples/zoo/cloud/matlab/Makefile examples/zoo/curve/Makefile examples/zoo/drawing/Makefile examples/zoo/enable/Makefile examples/zoo/field/Makefile examples/zoo/group/Makefile examples/zoo/histogram/Makefile examples/zoo/image/Makefile examples/zoo/image/docs/Makefile examples/zoo/image/examples/Makefile examples/zoo/integer/Makefile examples/zoo/integer2/Makefile examples/zoo/loader/Makefile examples/zoo/loader/examples/Makefile examples/zoo/log/Makefile examples/zoo/mesh/Makefile examples/zoo/note/Makefile examples/zoo/note/docs/Makefile examples/zoo/number/Makefile examples/zoo/number2/Makefile examples/zoo/parallelepiped/Makefile examples/zoo/periodicelement/Makefile examples/zoo/phase/Makefile examples/zoo/sequence/Makefile examples/zoo/sequence/examples/Makefile examples/zoo/string/Makefile examples/zoo/structure/Makefile examples/zoo/structure/examples/Makefile examples/zoo/table/Makefile examples/zoo/unirect2d/Makefile video/Makefile video/pkgIndex.tcl oldtest/Makefile oldtest/src/Makefile" 10211 10211 10212 10212 cat >confcache <<\_ACEOF … … 11018 11018 "examples/zoo/loader/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/loader/examples/Makefile" ;; 11019 11019 "examples/zoo/log/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/log/Makefile" ;; 11020 "examples/zoo/mesh/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/mesh/Makefile" ;; 11020 11021 "examples/zoo/note/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/note/Makefile" ;; 11021 11022 "examples/zoo/note/docs/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/note/docs/Makefile" ;; -
trunk/configure.in
r3373 r3416 558 558 examples/zoo/loader/examples/Makefile 559 559 examples/zoo/log/Makefile 560 examples/zoo/mesh/Makefile 560 561 examples/zoo/note/Makefile 561 562 examples/zoo/note/docs/Makefile -
trunk/examples/zoo/Makefile.in
r3048 r3416 30 30 loader \ 31 31 log \ 32 mesh \ 32 33 note \ 33 34 number \ -
trunk/gui/scripts/field.tcl
r3406 r3416 1078 1078 puts $f $contents 1079 1079 close $f 1080 1080 1081 $reader SetFileName $tmpfile 1081 1082 $reader ReadAllScalarsOn … … 1132 1133 lappend limits v [list $vmin $vmax] 1133 1134 set _comp2limits($cname) $limits 1134 $reader Delete1135 1135 file delete $tmpfile 1136 rename $reader "" 1136 1137 } 1137 1138 -
trunk/gui/scripts/vtkheightmapviewer.tcl
r3413 r3416 941 941 $_arcball quaternion $q 942 942 if {$_settings(isHeightmap) } { 943 SendCmd "camera reset"944 943 if { $_view(ortho)} { 945 944 SendCmd "camera mode ortho" … … 947 946 SendCmd "camera mode persp" 948 947 } 948 SendCmd "camera reset" 949 DoRotate 949 950 } 950 DoRotate951 951 PanCamera 952 952 } … … 1070 1070 $_arcball quaternion $q 1071 1071 if {$_settings(isHeightmap) } { 1072 SendCmd "camera reset"1073 1072 if { $_view(ortho)} { 1074 1073 SendCmd "camera mode ortho" … … 1076 1075 SendCmd "camera mode persp" 1077 1076 } 1077 SendCmd "camera reset" 1078 DoRotate 1078 1079 } 1079 DoRotate1080 1080 PanCamera 1081 1081 InitSettings axisXGrid axisYGrid axisZGrid \ … … 1172 1172 ypan 0 1173 1173 } 1174 SendCmd "camera reset all"1175 1174 if { $_first != "" } { 1176 1175 set location [$_first hints camera] … … 1181 1180 set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)] 1182 1181 $_arcball quaternion $q 1183 DoRotate 1182 SendCmd "camera reset" 1183 if {$_settings(isHeightmap) } { 1184 DoRotate 1185 } 1184 1186 } 1185 1187 } … … 1523 1525 "isHeightmap" { 1524 1526 set bool $_settings(isHeightmap) 1527 incr _buffering 1528 if { $_buffering == 1 } { 1529 set _outbuf "" 1530 } 1525 1531 if { $bool } { 1526 1532 $itk_component(lighting) configure -state normal 1533 if {$_view(ortho)} { 1534 SendCmd "camera mode ortho" 1535 } else { 1536 SendCmd "camera mode persp" 1537 } 1527 1538 } else { 1528 1539 $itk_component(lighting) configure -state disabled … … 1562 1573 set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)] 1563 1574 $_arcball quaternion $q 1564 if {$_view(ortho)} {1565 SendCmd "camera mode ortho"1566 } else {1567 SendCmd "camera mode persp"1568 }1569 1575 SendCmd "camera orient $q" 1570 1576 } else { … … 1574 1580 bind $c <ButtonRelease-1> {} 1575 1581 SendCmd "camera mode image" 1582 } 1583 incr _buffering -1 1584 if { $_buffering == 0 } { 1585 sendto $_outbuf 1586 set _outbuf "" 1576 1587 } 1577 1588 } … … 2050 2061 foreach comp [$dataobj components] { 2051 2062 set tag $dataobj-$comp 2052 set contents [ConvertToVtkData $dataobj $comp]2053 #set contents [$dataobj vtkdata $comp]2063 #set contents [ConvertToVtkData $dataobj $comp] 2064 set contents [$dataobj vtkdata $comp] 2054 2065 append bytes "$contents\n\n" 2055 2066 } … … 2138 2149 SendCmd "heightmap wireframe $_settings(wireframe) $tag" 2139 2150 SendCmd "heightmap colormap $_currentColormap $tag" 2151 set color [$itk_component(isolinecolor) value] 2152 SendCmd "heightmap isolinecolor [Color2RGB $color] $tag" 2140 2153 } 2141 2154 … … 2175 2188 # DrawLegend -- 2176 2189 # 2177 # Draws the legend in it's own canvas which resides to the right 2178 # of the contour plot area. 2179 # 2180 itcl::body Rappture::VtkHeightmapViewer::DrawLegend { name } { 2190 # Draws the legend in the own canvas on the right side of the plot area. 2191 # 2192 itcl::body Rappture::VtkHeightmapViewer::DrawLegend { fname } { 2181 2193 set c $itk_component(view) 2182 2194 set w [winfo width $c] … … 2185 2197 set lineht [font metrics $font -linespace] 2186 2198 2187 if { $ name == "component" } {2199 if { $fname == "component" } { 2188 2200 set title "" 2189 2201 } else { 2190 if { [info exists _fields($ name)] } {2191 foreach { title units } $_fields($ name) break2202 if { [info exists _fields($fname)] } { 2203 foreach { title units } $_fields($fname) break 2192 2204 if { $units != "" } { 2193 2205 set title [format "%s (%s)" $title $units] 2194 2206 } 2195 2207 } else { 2196 set title $ name2208 set title $fname 2197 2209 } 2198 2210 } … … 2302 2314 itcl::body Rappture::VtkHeightmapViewer::SetIsolineTip { x y value } { 2303 2315 set c $itk_component(view) 2304 set w [winfo width $c]2305 set h [winfo height $c]2306 set font "Arial 8"2307 set lineht [font metrics $font -linespace]2308 2309 if { [info exists _fields($_title)] } {2310 foreach { title units } $_fields($_title) break2311 if { $units != "" } {2312 set title [format "%s (%s)" $title $units]2313 }2314 } else {2315 set title $_title2316 }2317 set imgHeight [image height $_image(legend)]2318 set coords [$c coords colormap]2319 set imgX [expr $w - [image width $_image(legend)] - 2]2320 set imgY [expr $y - 2 * ($lineht + 2)]2321 2322 2316 .rappturetooltip configure -icon "" 2323 2317 2324 # Compute the value of the point2325 set t ipx [expr $x + 15]2326 set t ipy [expr $y - 5]2318 # Compute the position of the tip 2319 set tx [expr $x + 15] 2320 set ty [expr $y - 5] 2327 2321 Rappture::Tooltip::text $c "Isoline $value" 2328 Rappture::Tooltip::tooltip show $c +$t ipx,+$tipy2322 Rappture::Tooltip::tooltip show $c +$tx,+$ty 2329 2323 } 2330 2324 … … 2364 2358 set lineht [font metrics $font -linespace] 2365 2359 2366 set imgHeight [image height $_image(legend)] 2367 set coords [$c coords colormap] 2368 set imgX [expr $w - [image width $_image(legend)] - 2] 2369 set imgY [expr $y - 2 * ($lineht + 2)] 2360 set ih [image height $_image(legend)] 2361 set iy [expr $y - ($lineht + 2)] 2370 2362 2371 2363 if { [info exists _fields($_title)] } { … … 2377 2369 set title $_title 2378 2370 } 2371 # If there's a legend title, increase the offset by the line height. 2372 if { $title != "" } { 2373 incr iy $lineht 2374 } 2375 2379 2376 # Make a swatch of the selected color 2380 if { [catch { $_image(legend) get 10 $i mgY} pixel] != 0 } {2381 #puts stderr "out of range: $i mgY"2377 if { [catch { $_image(legend) get 10 $iy } pixel] != 0 } { 2378 #puts stderr "out of range: $iy" 2382 2379 return 2383 2380 } 2381 2384 2382 if { ![info exists _image(swatch)] } { 2385 2383 set _image(swatch) [image create photo -width 24 -height 24] … … 2393 2391 if { [info exists _limits(v)] } { 2394 2392 foreach { vmin vmax } $_limits(v) break 2395 set t [expr 1.0 - (double($i mgY) / double($imgHeight-1))]2393 set t [expr 1.0 - (double($iy) / double($ih-1))] 2396 2394 set value [expr $t * ($vmax - $vmin) + $vmin] 2397 2395 } else { -
trunk/gui/scripts/vtkisosurfaceviewer.tcl
r3409 r3416 1182 1182 ypan 0 1183 1183 } 1184 SendCmd "camera reset all"1185 1184 if { $_first != "" } { 1186 1185 set location [$_first hints camera] … … 1191 1190 set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)] 1192 1191 $_arcball quaternion $q 1192 SendCmd "camera reset" 1193 1193 DoRotate 1194 1194 } … … 2217 2217 set w [winfo width $c] 2218 2218 set h [winfo height $c] 2219 2219 2220 set font "Arial 8" 2220 2221 set lineht [font metrics $font -linespace] 2221 2222 2222 set imgHeight [image height $_image(legend)] 2223 set coords [$c coords colormap] 2224 set imgX [expr $w - [image width $_image(legend)] - 2] 2225 set imgY [expr $y - 2 * ($lineht + 2)] 2223 set ih [image height $_image(legend)] 2224 set iy [expr $y - ($lineht + 2)] 2226 2225 2227 2226 set title "" … … 2240 2239 } 2241 2240 } 2241 # If there's a legend title, increase the offset by the line height. 2242 if { $title != "" } { 2243 incr iy $lineht 2244 } 2245 2242 2246 # Make a swatch of the selected color 2243 if { [catch { $_image(legend) get 10 $i mgY} pixel] != 0 } {2247 if { [catch { $_image(legend) get 10 $iy } pixel] != 0 } { 2244 2248 return 2245 2249 } … … 2252 2256 .rappturetooltip configure -icon $_image(swatch) 2253 2257 2254 .rappturetooltip configure -icon $_image(swatch)2255 2256 2258 # Compute the value of the point 2257 2259 if { [info exists _limits(vmax)] && [info exists _limits(vmin)] } { 2258 set t [expr 1.0 - (double($i mgY) / double($imgHeight-1))]2260 set t [expr 1.0 - (double($iy) / double($ih-1))] 2259 2261 set value [expr $t * ($_limits(vmax) - $_limits(vmin)) + $_limits(vmin)] 2260 2262 } else { 2261 2263 set value 0.0 2262 2264 } 2263 set t ipx [expr $x + 15]2264 set t ipy [expr $y - 5]2265 set tx [expr $x + 15] 2266 set ty [expr $y - 5] 2265 2267 Rappture::Tooltip::text $c "$title $value" 2266 Rappture::Tooltip::tooltip show $c +$t ipx,+$tipy2268 Rappture::Tooltip::tooltip show $c +$tx,+$ty 2267 2269 } 2268 2270 … … 2328 2330 # DrawLegend -- 2329 2331 # 2330 # Draws the legend in it's own canvas which resides to the right 2331 # of the contour plot area. 2332 # Draws the legend in the own canvas on the right side of the plot area. 2332 2333 # 2333 2334 itcl::body Rappture::VtkIsosurfaceViewer::DrawLegend { name } { … … 2455 2456 itcl::body Rappture::VtkIsosurfaceViewer::SetIsolineTip { x y value } { 2456 2457 set c $itk_component(view) 2457 set w [winfo width $c] 2458 set h [winfo height $c] 2459 set font "Arial 8" 2460 set lineht [font metrics $font -linespace] 2461 2462 if { [info exists _fields($_title)] } { 2463 foreach { title units } $_fields($_title) break 2464 if { $title == "component" } { 2465 set title "" 2466 } 2467 if { $units != "" } { 2468 set title [format "%s (%s)" $title $units] 2469 } 2470 } else { 2471 set title $_title 2472 } 2473 # Make a swatch of the selected color 2474 set imgHeight [image height $_image(legend)] 2475 set coords [$c coords colormap] 2476 set imgX [expr $w - [image width $_image(legend)] - 2] 2477 set imgY [expr $y - 2 * ($lineht + 2)] 2478 2479 if { [catch { $_image(legend) get 10 $imgY } pixel] != 0 } { 2480 return 2481 } 2482 if { ![info exists _image(swatch)] } { 2483 set _image(swatch) [image create photo -width 24 -height 24] 2484 } 2485 set color [eval format "\#%02x%02x%02x" $pixel] 2486 $_image(swatch) put black -to 0 0 23 23 2487 $_image(swatch) put $color -to 1 1 22 22 2488 .rappturetooltip configure -icon $_image(swatch) 2489 2490 # Compute the value of the point 2491 set tipx [expr $x + 15] 2492 set tipy [expr $y - 5] 2458 .rappturetooltip configure -icon "" 2459 2460 # Compute the position of the tip 2461 set tx [expr $x + 15] 2462 set ty [expr $y - 5] 2493 2463 Rappture::Tooltip::text $c "Isosurface $value" 2494 Rappture::Tooltip::tooltip show $c +$t ipx,+$tipy2464 Rappture::Tooltip::tooltip show $c +$tx,+$ty 2495 2465 } 2496 2466
Note: See TracChangeset
for help on using the changeset viewer.