Changeset 4768 for branches/1.3/gui/scripts/vtkisosurfaceviewer.tcl
- Timestamp:
- Nov 23, 2014, 3:29:00 AM (10 years ago)
- Location:
- branches/1.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/gui/scripts/vtkisosurfaceviewer.tcl
r4766 r4768 7 7 # ====================================================================== 8 8 # AUTHOR: Michael McLennan, Purdue University 9 # Copyright (c) 2004-20 05 Purdue Research Foundation9 # Copyright (c) 2004-2014 HUBzero Foundation, LLC 10 10 # 11 11 # See the file "license.terms" for information on usage and … … 63 63 64 64 # The following methods are only used by this class. 65 66 65 private method AdjustSetting {what {value ""}} 67 66 private method BuildAxisTab {} … … 229 228 -xpan 0 230 229 -ypan 0 231 -zoom 1.0 230 -zoom 1.0 232 231 } 233 232 set _arcball [blt::arcball create 100 100] … … 241 240 } 242 241 array set _settings { 243 -axesvisible 244 -axislabels 245 -axisminorticks 246 -axismode 247 -background 248 -colormap 249 -colormapvisible 250 -cutplaneedges 251 -cutplanelighting 252 -cutplaneopacity 253 -cutplanepreinterp 254 -cutplanesvisible 255 -cutplanewireframe 256 -field 257 -isolinecolor 258 -isosurfaceedges 259 -isosurfacelighting 260 -isosurfaceopacity 261 -isosurfacevisible 262 -isosurfacewireframe 263 -legendvisible 264 -numcontours 265 -outline 266 -xcutplaneposition 267 -xcutplanevisible 268 -xgrid 269 -ycutplaneposition 270 -ycutplanevisible 271 -ygrid 272 -zcutplaneposition 273 -zcutplanevisible 274 -zgrid 242 -axesvisible 1 243 -axislabels 1 244 -axisminorticks 1 245 -axismode "static" 246 -background black 247 -colormap BCGYR 248 -colormapvisible 1 249 -cutplaneedges 0 250 -cutplanelighting 1 251 -cutplaneopacity 1.0 252 -cutplanepreinterp 1 253 -cutplanesvisible 0 254 -cutplanewireframe 0 255 -field "Default" 256 -isolinecolor white 257 -isosurfaceedges 0 258 -isosurfacelighting 1 259 -isosurfaceopacity 0.6 260 -isosurfacevisible 1 261 -isosurfacewireframe 0 262 -legendvisible 1 263 -numcontours 10 264 -outline 0 265 -xcutplaneposition 50 266 -xcutplanevisible 1 267 -xgrid 0 268 -ycutplaneposition 50 269 -ycutplanevisible 1 270 -ygrid 0 271 -zcutplaneposition 50 272 -zcutplanevisible 1 273 -zgrid 0 275 274 } 276 275 array set _changed { … … 390 389 puts stderr errs=$errs 391 390 } 391 392 392 # Legend 393 394 393 set _image(legend) [image create photo] 395 394 itk_component add legend { … … 596 595 } 597 596 598 599 597 # ---------------------------------------------------------------------- 600 598 # USAGE: delete ?<dataobj1> <dataobj2> ...? … … 908 906 if { $info(-type) == "image" } { 909 907 if 0 { 910 set f [open "last.ppm" "w"] 911 puts $f $bytes 908 set f [open "last.ppm" "w"] 909 fconfigure $f -encoding binary 910 puts -nonewline $f $bytes 912 911 close $f 913 912 } … … 990 989 # generates a new call to Rebuild). 991 990 StartBufferingCommands 991 992 992 if { $_reset } { 993 993 set _width $w … … 1023 1023 if { ![info exists _datasets($tag)] } { 1024 1024 set bytes [$dataobj vtkdata $comp] 1025 if 0 { 1026 set f [open "/tmp/isosurface.vtk" "w"] 1027 puts $f $bytes 1028 close $f 1025 if 0 { 1026 set f [open "/tmp/isosurface.vtk" "w"] 1027 fconfigure $f -translation binary -encoding binary 1028 puts -nonewline $f $bytes 1029 close $f 1029 1030 } 1030 1031 set length [string length $bytes] … … 1076 1077 set label [string toupper $axis] 1077 1078 } 1079 # May be a space in the axis label 1078 1080 SendCmd [list axis name $axis $label] 1079 1081 } … … 1185 1187 SendCmd "camera pan $x $y" 1186 1188 } 1187 1188 1189 1189 1190 # ---------------------------------------------------------------------- … … 1536 1537 } 1537 1538 } 1538 1539 1539 1540 1540 # … … 2322 2322 } 2323 2323 2324 2325 2324 # ---------------------------------------------------------------------- 2326 2325 # USAGE: Slice move x|y|z <newval> … … 2390 2389 set font "Arial 8" 2391 2390 set lineht [font metrics $font -linespace] 2392 2391 2393 2392 if { [string match "component*" $fname] } { 2394 2393 set title ""
Note: See TracChangeset
for help on using the changeset viewer.