Changeset 2730
- Timestamp:
- Dec 13, 2011 1:28:39 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/Makefile.in
r2721 r2730 130 130 $(srcdir)/vtkstreamlinesviewer.tcl \ 131 131 $(srcdir)/vtkvolumeviewer.tcl \ 132 $(srcdir)/vtkheightmapviewer.tcl \ 132 133 $(srcdir)/xylegend.tcl \ 133 134 $(srcdir)/xyprint.tcl \ -
trunk/gui/scripts/field.tcl
r2727 r2730 587 587 catch {unset _comp2dims} 588 588 catch {unset _comp2style} 589 array unset _comp2volume 589 590 array unset _comp2vtkstreamlines 590 591 array unset _comp2unirect2d … … 821 822 set data [Rappture::encoding::decode -as zb64 $data] 822 823 if 1 { 823 set file "/tmp/ junk.dx"824 set file "/tmp/$cname.dx" 824 825 set f [open $file "w"] 825 826 puts $f $data … … 828 829 set data [Rappture::ConvertDxToVtk $data] 829 830 if 1 { 830 set file "/tmp/ junk.vtk"831 set file "/tmp/$cname.vtk" 831 832 set f [open $file "w"] 832 833 puts $f $data -
trunk/gui/scripts/field3dresult.tcl
r2722 r2730 83 83 } 84 84 "vtkvolume" { 85 catch { 85 86 itk_component add renderer { 86 87 Rappture::VtkVolumeViewer $itk_interior.ren $servers 87 88 } 89 } errs 90 puts stderr errs=$errs 88 91 } 89 92 "vtkstreamlines" { -
trunk/gui/scripts/vtkvolumeviewer.tcl
r2728 r2730 1025 1025 SendCmd "dataset visible 0 $tag" 1026 1026 } 1027 break 1027 1028 } 1028 1029 } … … 1073 1074 } 1074 1075 foreach { name title units } [$_first hints scalars] { 1076 set _scalarFields($title) $name 1077 $itk_component(field) choices insert end "$name" "$title" 1078 $itk_component(fieldmenu) add radiobutton -label "$title" \ 1079 -value $title -variable [itcl::scope _currentField] \ 1080 -selectcolor red \ 1081 -activebackground black \ 1082 -activeforeground white \ 1083 -font "Arial 8" \ 1084 -command [itcl::code $this Combo invoke] 1085 set _fields($name) [list $title $units] 1086 } 1087 foreach { name title units } { default Default ??? } { 1075 1088 set _scalarFields($title) $name 1076 1089 $itk_component(field) choices insert end "$name" "$title" … … 1459 1472 } 1460 1473 foreach dataset [CurrentDatasets -visible] { 1461 puts stderr "volume colormode $_colorMode ${name} $dataset"1474 #puts stderr "volume colormode $_colorMode ${name} $dataset" 1462 1475 puts stderr "cutplane colormode $_colorMode ${name} $dataset" 1463 SendCmd "volume colormode $_colorMode ${name} $dataset"1476 #SendCmd "volume colormode $_colorMode ${name} $dataset" 1464 1477 SendCmd "cutplane colormode $_colorMode ${name} $dataset" 1465 1478 } … … 1757 1770 } 1758 1771 set cmap {} 1759 for {set i 0} {$i < [llength $clist]} {incr i} { 1760 set x [expr {double($i)/([llength $clist]-1)}] 1761 set color [lindex $clist $i] 1762 append cmap "$x [Color2RGB $color] " 1772 set nColors [llength $clist] 1773 if { $nColors == 1 } { 1774 append cmap "0.0 [Color2RGB $colors] " 1775 append cmap "1.0 [Color2RGB $colors] " 1776 } else { 1777 for {set i 0} {$i < [llength $clist]} {incr i} { 1778 set x [expr {double($i)/([llength $clist]-1)}] 1779 set color [lindex $clist $i] 1780 append cmap "$x [Color2RGB $color] " 1781 } 1763 1782 } 1764 1783 return $cmap … … 1780 1799 1781 1800 set wmap "0.0 1.0 1.0 1.0" 1801 set wmap "0.0 0.0 0.1 0.0 0.2 0.8 0.98 0.8 0.99 0.0 1.0 0.0" 1782 1802 SendCmd "colormap add $name { $cmap } { $wmap }" 1783 1803 } … … 1933 1953 "orange-to-blue" "orange-to-blue" 1934 1954 1935 $itk_component(palette) value " BCGYR"1955 $itk_component(palette) value "nanohub" 1936 1956 bind $inner.palette <<Value>> \ 1937 1957 [itcl::code $this AdjustSetting volume-palette] -
trunk/gui/src/RpConvertDxToVtk.c
r2728 r2730 88 88 scale = 1.0 / (vmax - vmin); 89 89 for (i = 0; i < nPoints; i++) { 90 #ifdef notdef 90 91 sprintf(mesg, "%g\n", (array[i] - vmin) * scale); 92 #endif 93 sprintf(mesg, "%g\n", array[i]); 91 94 Tcl_AppendToObj(objPtr, mesg, -1); 92 95 } … … 192 195 } 193 196 } else if (sscanf(line, "object %*d class array type %*s rank 0" 194 " items %d data follows", &nPoints) == 1) {197 " %*s %d data follows", &nPoints) == 1) { 195 198 #ifdef notdef 196 199 fprintf(stderr, "found class array type rank 0 nPoints=%d\n", -
trunk/packages/vizservers/nanovis/Command.cpp
r2721 r2730 1227 1227 } 1228 1228 Rappture::Outcome context; 1229 sleep(30);1230 1229 #if ISO_TEST 1231 1230 volPtr = load_volume_stream2(context, tag, fdata);
Note: See TracChangeset
for help on using the changeset viewer.