Changeset 4798
- Timestamp:
- Nov 26, 2014 7:28:23 PM (9 years ago)
- Location:
- branches/uq
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/uq/configure
r4797 r4798 672 672 OCTAVE_VERSION_MAJOR 673 673 OCTAVE_VERSION 674 SVN_URL675 674 SVN_VERSION 676 675 MKOCTFILE3 … … 7298 7297 7299 7298 SVN_VERSION=`svnversion $srcdir | sed 's/Unversioned directory/unknown/'` 7300 SVN_URL=`svn info $srcdir | sed -ne 's/^URL: //p'`7301 7299 7302 7300 make_command="" … … 10137 10135 10138 10136 MAKE=${make_command} 10139 10140 10137 10141 10138 -
branches/uq/configure.in
r4797 r4798 108 108 109 109 SVN_VERSION=`svnversion $srcdir | sed 's/Unversioned directory/unknown/'` 110 SVN_URL=`svn info $srcdir | sed -ne 's/^URL: //p'`111 110 112 111 make_command="" … … 402 401 AC_SUBST(MKOCTFILE3) 403 402 AC_SUBST(SVN_VERSION) 404 AC_SUBST(SVN_URL)405 403 AC_SUBST(OCTAVE_VERSION) 406 404 AC_SUBST(OCTAVE_VERSION_MAJOR) -
branches/uq/gui/configure
r4797 r4798 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for RapptureGUI 1. 3.3 # Generated by GNU Autoconf 2.69 for RapptureGUI 1.4. 4 4 # 5 5 # Report bugs to <rappture@nanohub.org>. … … 580 580 PACKAGE_NAME='RapptureGUI' 581 581 PACKAGE_TARNAME='rappturegui' 582 PACKAGE_VERSION='1. 3'583 PACKAGE_STRING='RapptureGUI 1. 3'582 PACKAGE_VERSION='1.4' 583 PACKAGE_STRING='RapptureGUI 1.4' 584 584 PACKAGE_BUGREPORT='rappture@nanohub.org' 585 585 PACKAGE_URL='' … … 1223 1223 # This message is too long to be a string in the A/UX 3.1 sh. 1224 1224 cat <<_ACEOF 1225 \`configure' configures RapptureGUI 1. 3to adapt to many kinds of systems.1225 \`configure' configures RapptureGUI 1.4 to adapt to many kinds of systems. 1226 1226 1227 1227 Usage: $0 [OPTION]... [VAR=VALUE]... … … 1289 1289 if test -n "$ac_init_help"; then 1290 1290 case $ac_init_help in 1291 short | recursive ) echo "Configuration of RapptureGUI 1. 3:";;1291 short | recursive ) echo "Configuration of RapptureGUI 1.4:";; 1292 1292 esac 1293 1293 cat <<\_ACEOF … … 1380 1380 if $ac_init_version; then 1381 1381 cat <<\_ACEOF 1382 RapptureGUI configure 1. 31382 RapptureGUI configure 1.4 1383 1383 generated by GNU Autoconf 2.69 1384 1384 … … 1435 1435 running configure, to aid debugging if configure makes a mistake. 1436 1436 1437 It was created by RapptureGUI $as_me 1. 3, which was1437 It was created by RapptureGUI $as_me 1.4, which was 1438 1438 generated by GNU Autoconf 2.69. Invocation command line was 1439 1439 … … 3685 3685 # values after options handling. 3686 3686 ac_log=" 3687 This file was extended by RapptureGUI $as_me 1. 3, which was3687 This file was extended by RapptureGUI $as_me 1.4, which was 3688 3688 generated by GNU Autoconf 2.69. Invocation command line was 3689 3689 … … 3738 3738 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 3739 3739 ac_cs_version="\\ 3740 RapptureGUI config.status 1. 33740 RapptureGUI config.status 1.4 3741 3741 configured by $0, generated by GNU Autoconf 2.69, 3742 3742 with options \\"\$ac_cs_config\\" -
branches/uq/gui/configure.in
r4797 r4798 1 1 2 AC_INIT([RapptureGUI],[1. 3],[rappture@nanohub.org])2 AC_INIT([RapptureGUI],[1.4],[rappture@nanohub.org]) 3 3 AC_CONFIG_AUX_DIR(cf) 4 4 #------------------------------------------------------------------------ -
branches/uq/gui/scripts/mapviewer.tcl
r4797 r4798 60 60 public method get {args} 61 61 public method isconnected {} 62 public method limits { colormap } 62 63 public method parameters {title args} { 63 64 # do nothing … … 1388 1389 #SendCmd "color background $r $g $b" 1389 1390 } 1391 } 1392 1393 itcl::body Rappture::MapViewer::limits { dataobj } { 1394 error "no limits" 1390 1395 } 1391 1396 -
branches/uq/gui/scripts/mesh.tcl
r4797 r4798 33 33 # xmin, xmax, ymin, ymax, ... 34 34 private variable _numPoints 0 ; # # of points in mesh 35 private variable _numCells 0 35 private variable _numCells 0; # # of cells in mesh 36 36 private variable _vtkdata ""; # Mesh in vtk file format. 37 37 private variable _isValid 0; # Indicates if the mesh is valid. … … 76 76 77 77 private method ReadNodesElements {path} 78 private method GetCellCount { xNum yNum zNum } 78 79 private method GetDimension { path } 79 80 private method GetDouble { path } … … 499 500 } 500 501 502 itcl::body Rappture::Mesh::GetCellCount { xNum yNum zNum } { 503 set numCells 1 504 if { $xNum > 0 } { 505 set numCells [expr $numCells * $xNum] 506 } 507 if { $yNum > 0 } { 508 set numCells [expr $numCells * $yNum] 509 } 510 if { $zNum > 0 } { 511 set numCells [expr $numCells * $zNum] 512 } 513 return $numCells 514 } 515 501 516 itcl::body Rappture::Mesh::ReadGrid { path } { 502 517 set _type "grid" … … 519 534 set ${axis}Num $num 520 535 if {$min > $max} { 521 puts stderr "ERROR: grid $axis axis minimum larger than maximum"536 puts stderr "ERROR: grid $axis min can't be greater than max" 522 537 return 0 523 538 } … … 561 576 set _dim 3 562 577 set _numPoints [expr $xNum * $yNum * $zNum] 563 set _numCells [ expr ($xNum > 1 ? ($xNum - 1) : 1) * ($yNum > 1 ? ($yNum - 1) : 1) * ($zNum > 1 ? ($zNum - 1) : 1)]564 if { ($_numPoints *3) != $numCoords } {578 set _numCells [GetCellCount $xNum $yNum $zNum] 579 if { ($_numPoints * 3) != $numCoords } { 565 580 puts stderr "WARNING: bad grid \"$path\": invalid grid: \# of points does not match dimensions <xdim> * <ydim> * <zdim>" 566 581 return 0 … … 584 599 set _dim 2 585 600 set _numPoints [expr $xNum * $yNum] 586 set _numCells [ expr ($xNum > 1 ? ($xNum - 1) : 1) * ($yNum > 1 ? ($yNum - 1) : 1)]587 if { ($_numPoints *2) != $numCoords } {601 set _numCells [GetCellCount $xNum $yNum 0] 602 if { ($_numPoints * 2) != $numCoords } { 588 603 puts stderr "WARNING: bad grid \"$path\": \# of points does not match dimensions <xdim> * <ydim>" 589 604 return 0 … … 609 624 set _dim 1 610 625 set _numPoints $xNum 611 set _numCells [ expr $xNum - 1]626 set _numCells [GetCellCount $xNum 0 0] 612 627 if { $_numPoints != $numCoords } { 613 628 puts stderr "WARNING: bad grid \"$path\": \# of points does not match <xdim>" … … 634 649 # This results in a STRUCTURED_POINTS 635 650 if { $_dim == 1 } { 636 if {$xNum == 1} { 637 set xSpace 0 638 } else { 639 set xSpace [expr ($xMax - $xMin) / double($xNum - 1)] 651 set xSpacing 0 652 if { $xNum > 1 } { 653 set xSpacing [expr ($xMax - $xMin) / double($xNum - 1)] 640 654 } 641 655 set _numPoints $xNum 642 set _numCells [ expr $xNum - 1]656 set _numCells [GetCellCount $xNum 0 0] 643 657 append out "DATASET STRUCTURED_POINTS\n" 644 658 append out "DIMENSIONS $xNum 1 1\n" 645 659 append out "ORIGIN $xMin 0 0\n" 646 append out "SPACING $xSpac e0 0\n"660 append out "SPACING $xSpacing 0 0\n" 647 661 set _vtkdata $out 648 662 set _limits(x) [list $xMin $xMax] … … 650 664 set _limits(z) [list 0 0] 651 665 } elseif { $_dim == 2 } { 652 if {$xNum == 1} { 653 set xSpace 0 654 } else { 655 set xSpace [expr ($xMax - $xMin) / double($xNum - 1)] 656 } 657 if {$yNum == 1} { 658 set ySpace 0 659 } else { 660 set ySpace [expr ($yMax - $yMin) / double($yNum - 1)] 666 set xSpacing 0 667 set ySpacing 0 668 if { $xNum > 1 } { 669 set xSpacing [expr ($xMax - $xMin) / double($xNum - 1)] 670 } 671 if { $yNum > 1 } { 672 set ySpacing [expr ($yMax - $yMin) / double($yNum - 1)] 661 673 } 662 674 set _numPoints [expr $xNum * $yNum] 663 set _numCells [ expr ($xNum > 1 ? ($xNum - 1) : 1) * ($yNum > 1 ? ($yNum - 1) : 1)]675 set _numCells [GetCellCount $xNum $yNum 0] 664 676 append out "DATASET STRUCTURED_POINTS\n" 665 677 append out "DIMENSIONS $xNum $yNum 1\n" 666 678 append out "ORIGIN $xMin $yMin 0\n" 667 append out "SPACING $xSpac e $ySpace0\n"679 append out "SPACING $xSpacing $ySpacing 0\n" 668 680 set _vtkdata $out 669 681 foreach axis {x y} { … … 672 684 set _limits(z) [list 0 0] 673 685 } elseif { $_dim == 3 } { 674 if {$xNum == 1} { 675 set xSpace 0 676 } else { 677 set xSpace [expr ($xMax - $xMin) / double($xNum - 1)] 678 } 679 if {$yNum == 1} { 680 set ySpace 0 681 } else { 682 set ySpace [expr ($yMax - $yMin) / double($yNum - 1)] 683 } 684 if {$zNum == 1} { 685 set zSpace 0 686 } else { 687 set zSpace [expr ($zMax - $zMin) / double($zNum - 1)] 686 set xSpacing 0 687 set ySpacing 0 688 set zSpacing 0 689 if {$xNum > 1} { 690 set xSpacing [expr ($xMax - $xMin) / double($xNum - 1)] 691 } 692 if {$yNum > 1} { 693 set ySpacing [expr ($yMax - $yMin) / double($yNum - 1)] 694 } 695 if {$zNum > 1} { 696 set zSpacing [expr ($zMax - $zMin) / double($zNum - 1)] 688 697 } 689 698 set _numPoints [expr $xNum * $yNum * $zNum] 690 set _numCells [ expr ($xNum > 1 ? ($xNum - 1) : 1) * ($yNum > 1 ? ($yNum - 1) : 1) * ($zNum > 1 ? ($zNum - 1) : 1)]699 set _numCells [GetCellCount $xNum $yNum $zNum] 691 700 append out "DATASET STRUCTURED_POINTS\n" 692 701 append out "DIMENSIONS $xNum $yNum $zNum\n" 693 702 append out "ORIGIN $xMin $yMin $zMin\n" 694 append out "SPACING $xSpac e $ySpace $zSpace\n"703 append out "SPACING $xSpacing $ySpacing $zSpacing\n" 695 704 set _vtkdata $out 696 705 foreach axis {x y z} { … … 741 750 if { $_dim == 3 } { 742 751 set _numPoints [expr $xNum * $yNum * $zNum] 743 set _numCells [ expr ($xNum > 1 ? ($xNum - 1) : 1) * ($yNum > 1 ? ($yNum - 1) : 1) * ($zNum > 1 ? ($zNum - 1) : 1)]752 set _numCells [GetCellCount $xNum $yNum $zNum] 744 753 append out "DATASET RECTILINEAR_GRID\n" 745 754 append out "DIMENSIONS $xNum $yNum $zNum\n" … … 761 770 } elseif { $_dim == 2 } { 762 771 set _numPoints [expr $xNum * $yNum] 763 set _numCells [ expr ($xNum > 1 ? ($xNum - 1) : 1) * ($yNum > 1 ? ($yNum - 1) : 1)]772 set _numCells [GetCellCount $xNum $yNum 0] 764 773 append out "DATASET RECTILINEAR_GRID\n" 765 774 append out "DIMENSIONS $xNum $yNum 1\n" … … 781 790 } elseif { $_dim == 1 } { 782 791 set _numPoints $xNum 783 set _numCells [ expr $xNum - 1]792 set _numCells [GetCellCount $xNum 0 0] 784 793 append out "DATASET RECTILINEAR_GRID\n" 785 794 append out "DIMENSIONS $xNum 1 1\n" -
branches/uq/gui/scripts/nanovisviewer.tcl
r4797 r4798 150 150 private variable _transferFunctionEditors 151 151 private variable _settings 152 private variable _alphamap 152 153 private variable _widget 153 154 … … 1317 1318 set _settings($what) [expr $_widget($what) * 0.01] 1318 1319 set _settings($_current${what}) $_settings($what) 1319 foreach tag [GetDatasetsWithComponent $_current] { 1320 SendCmd "volume shading opacity $_settings($what) $tag" 1321 } 1320 1321 foreach {cmap wmap} $_cname2transferFunction($_current) break 1322 set wmap [ComputeAlphamap $_current] 1323 set _cname2transferFunction($_current) [list $cmap $wmap] 1324 SendCmd [list transfunc define $_current $cmap $wmap] 1322 1325 } 1323 1326 "-volumevisible" { … … 1686 1689 $inner configure -borderwidth 4 1687 1690 1691 set font [option get $itk_component(hull) font Font] 1688 1692 set fg [option get $itk_component(hull) font Font] 1689 1693 #set bfg [option get $itk_component(hull) boldFont Font] 1690 1694 1695 checkbutton $inner.vol -text "Show volume" -font $fg \ 1696 -variable [itcl::scope _settings(-volumevisible)] \ 1697 -command [itcl::code $this AdjustSetting -volumevisible] 1691 1698 label $inner.shading -text "Shading:" -font $fg 1692 1699 … … 1694 1701 -variable [itcl::scope _settings(-light2side)] \ 1695 1702 -command [itcl::code $this AdjustSetting -light2side] 1696 1697 checkbutton $inner.visibility -text "Visible" -font $fg \1698 -variable [itcl::scope _settings(-volumevisible)] \1699 -command [itcl::code $this AdjustSetting -volumevisible]1700 1703 1701 1704 label $inner.dim -text "Glow" -font $fg … … 1723 1726 1724 1727 # Colormap 1725 label $inner.colormap_l -text "Colormap" -font $fg1728 label $inner.colormap_l -text "Colormap" -font "Arial 9" 1726 1729 itk_component add colormap { 1727 1730 Rappture::Combobox $inner.colormap -width 10 -editable no … … 1735 1738 1736 1739 # Component 1737 label $inner.volcomponents_l -text "Component" -font $f g1740 label $inner.volcomponents_l -text "Component" -font $font 1738 1741 itk_component add volcomponents { 1739 1742 Rappture::Combobox $inner.volcomponents -editable no … … 1747 1750 1,0 $inner.shading -cspan 4 -anchor w -pady {10 2} \ 1748 1751 2,0 $inner.light2side -cspan 4 -anchor w -pady 2 \ 1749 3,0 $inner.visibility -cspan 4 -anchor w -pady 2 \ 1750 4,0 $inner.dim -anchor e -pady 2 \ 1751 4,1 $inner.light -cspan 2 -pady 2 -fill x \ 1752 4,3 $inner.bright -anchor w -pady 2 \ 1753 5,0 $inner.fog -anchor e -pady 2 \ 1754 5,1 $inner.transp -cspan 2 -pady 2 -fill x \ 1755 5,3 $inner.plastic -anchor w -pady 2 \ 1756 6,0 $inner.thin -anchor e -pady 2 \ 1757 6,1 $inner.thickness -cspan 2 -pady 2 -fill x\ 1758 6,3 $inner.thick -anchor w -pady 2 1752 3,0 $inner.dim -anchor e -pady 2 \ 1753 3,1 $inner.light -cspan 2 -pady 2 -fill x \ 1754 3,3 $inner.bright -anchor w -pady 2 \ 1755 4,0 $inner.fog -anchor e -pady 2 \ 1756 4,1 $inner.transp -cspan 2 -pady 2 -fill x \ 1757 4,3 $inner.plastic -anchor w -pady 2 \ 1758 5,0 $inner.thin -anchor e -pady 2 \ 1759 5,1 $inner.thickness -cspan 2 -pady 2 -fill x\ 1760 5,3 $inner.thick -anchor w -pady 2 1759 1761 1760 1762 blt::table configure $inner c0 c1 c3 r* -resize none 1761 blt::table configure $inner r 7-resize expand1763 blt::table configure $inner r6 -resize expand 1762 1764 } 1763 1765 … … 1773 1775 -command [itcl::code $this AdjustSetting -cutplanesvisible] \ 1774 1776 -font "Arial 9" 1775 1777 1776 1778 # X-value slicer... 1777 1779 itk_component add xCutButton { … … 1858 1860 1859 1861 blt::table $inner \ 1860 0,1 $inner.visible -anchor w -pady 2 -cspan 4 \ 1861 1,1 $itk_component(xCutScale) \ 1862 1,2 $itk_component(yCutScale) \ 1863 1,3 $itk_component(zCutScale) \ 1864 2,1 $itk_component(xCutButton) \ 1865 2,2 $itk_component(yCutButton) \ 1866 2,3 $itk_component(zCutButton) 1867 1868 blt::table configure $inner r0 r1 r2 c* -resize none 1869 blt::table configure $inner r3 c4 -resize expand 1862 1,1 $itk_component(xCutButton) \ 1863 1,2 $itk_component(yCutButton) \ 1864 1,3 $itk_component(zCutButton) \ 1865 0,1 $itk_component(xCutScale) \ 1866 0,2 $itk_component(yCutScale) \ 1867 0,3 $itk_component(zCutScale) 1868 1869 blt::table configure $inner r0 r1 c* -resize none 1870 blt::table configure $inner r2 c4 -resize expand 1870 1871 blt::table configure $inner c0 -width 2 1871 1872 blt::table configure $inner c1 c2 c3 -padx 2 … … 2180 2181 # GetDatasetsWithComponents -- 2181 2182 # 2182 # Returns a list of all the datasets (known by the combination of their2183 # data object and component name) that match the given component name.2184 # For example, this is used where we want to change the settings of2185 # volumes that have the current component.2183 # Returns a list of all the datasets (known by the combination of their 2184 # data object and component name) that match the given component name. 2185 # For example, this is used where we want to change the settings of 2186 # volumes that have the current component. 2186 2187 # 2187 2188 itcl::body Rappture::NanovisViewer::GetDatasetsWithComponent { cname } { … … 2202 2203 # HideAllMarkers -- 2203 2204 # 2204 # 2205 # 2206 # created, deleted, or moved markers.2205 # Hide all the markers in all the transfer functions. Can't simply 2206 # delete and recreate markers from the <style> since the user may have 2207 # create, deleted, or moved markers. 2207 2208 # 2208 2209 itcl::body Rappture::NanovisViewer::HideAllMarkers {} { … … 2248 2249 set isovalues [$_transferFunctionEditors($cname) values] 2249 2250 2250 # Transfer function should be normalized with [0,1] range 2251 # The volume shading opacity setting is used to scale opacity 2252 # in the volume shader. 2253 set max 1.0 2251 # Currently using volume shading opacity to scale opacity in 2252 # the volume shader. 2253 set max $_settings($cname-volumeopacity) 2254 2254 2255 2255 # Use the component-wise thickness setting from the slider … … 2300 2300 return $wmap 2301 2301 } 2302 2302 2303 2303 2304 itcl::body Rappture::NanovisViewer::NameToAlphamap { name } { … … 2471 2472 itcl::body Rappture::NanovisViewer::SetObjectStyle { dataobj cname } { 2472 2473 array set styles { 2473 -opacity 0. 52474 -opacity 0.6 2474 2475 } 2475 2476 array set styles [lindex [$dataobj components -style $cname] 0] 2476 2477 set _settings($cname-volumeopacity) $styles(-opacity) 2477 set tag $dataobj-$cname2478 SendCmd "volume shading opacity $_settings($cname-volumeopacity) $tag"2479 2478 NameTransferFunction $dataobj $cname 2480 2479 } -
branches/uq/gui/scripts/vtkglyphviewer.tcl
r4797 r4798 57 57 public method get {args} 58 58 public method isconnected {} 59 public method limits { colormap } 59 60 public method parameters {title args} { 60 61 # do nothing … … 143 144 private variable _legendPending 0 144 145 private variable _field "" 145 private variable _colorMode "vmag"; 146 private variable _colorMode "vmag"; # Mode of colormap (vmag or scalar) 146 147 private variable _fieldNames {} 147 148 private variable _fields … … 955 956 InitSettings -xgrid -ygrid -zgrid -axismode \ 956 957 -axesvisible -axislabels -axisminorticks 957 #SendCmd "axis lformat all %g" 958 foreach axis { x y z } { 959 SendCmd "axis lformat $axis %g" 960 } 958 961 StopBufferingCommands 959 962 SendCmd "imgflush" … … 1456 1459 return 1457 1460 } 1458 #if { ![info exists _limits($_curFldName)] } {1459 # SendCmd "dataset maprange all"1460 #} else {1461 # SendCmd "dataset maprange explicit $_limits($_curFldName) $_curFldName"1462 #}1463 #SendCmd "cutplane colormode $_colorMode $_curFldName"1464 1461 SendCmd "glyphs colormode $_colorMode $_curFldName" 1465 1462 DrawLegend … … 1545 1542 #SendCmd "cutplane color $rgb" 1546 1543 } 1544 } 1545 1546 itcl::body Rappture::VtkGlyphViewer::limits { dataobj } { 1547 foreach { limits(xmin) limits(xmax) } [$dataobj limits x] break 1548 foreach { limits(ymin) limits(ymax) } [$dataobj limits y] break 1549 foreach { limits(zmin) limits(zmax) } [$dataobj limits z] break 1550 foreach { limits(vmin) limits(vmax) } [$dataobj limits v] break 1551 return [array get limits] 1547 1552 } 1548 1553 -
branches/uq/gui/scripts/vtkheightmapviewer.tcl
r4797 r4798 58 58 public method get {args} 59 59 public method isconnected {} 60 public method limits3 { dataobj } 60 61 public method parameters {title args} { 61 62 # do nothing … … 1047 1048 if { $_reset } { 1048 1049 SendCmd "axis tickpos outside" 1049 #SendCmd "axis lformat all %g" 1050 foreach axis { x y z } { 1051 SendCmd "axis lformat $axis %g" 1052 } 1050 1053 1051 1054 foreach axis { x y z } { … … 1099 1102 -numisolines 1100 1103 if { [array size _fields] < 2 } { 1101 catch {blt::table forget $itk_component(field) $itk_component(field_l)} 1104 catch { 1105 blt::table forget $itk_component(field) $itk_component(field_l) 1106 } 1102 1107 } 1103 1108 RequestLegend … … 1834 1839 } 1835 1840 } 1841 } 1842 1843 itcl::body Rappture::VtkHeightmapViewer::limits3 { dataobj } { 1844 lappend limits x [$dataobj limits x] 1845 lappend limits y [$dataobj limits y] 1846 if { [catch { $dataobj limits $_curFldName } vlim] != 0 } { 1847 set vlim [$dataobj limits v] 1848 } 1849 lappend limits v $vlim 1850 return $limits 1836 1851 } 1837 1852 -
branches/uq/gui/scripts/vtkimageviewer.tcl
r4797 r4798 58 58 public method get {args} 59 59 public method isconnected {} 60 public method limits3 { dataobj } 60 61 public method parameters {title args} { 61 62 # do nothing … … 925 926 InitSettings view3D background 926 927 928 # Let's see how this goes. I think it's preferable to overloading the 929 # axis title with the exponent. 930 SendCmd "axis exp 0 0 0 1" 931 927 932 SendCmd "axis lrot z 90" 928 933 set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)] … … 1056 1061 axisVisible axisLabels field view3D 1057 1062 if { [array size _fields] < 2 } { 1058 catch {blt::table forget $itk_component(field) $itk_component(field_l)} 1063 catch { 1064 blt::table forget $itk_component(field) $itk_component(field_l) 1065 } 1059 1066 } 1060 1067 RequestLegend … … 1627 1634 } 1628 1635 } 1636 } 1637 1638 itcl::body Rappture::VtkImageViewer::limits3 { dataobj } { 1639 lappend limits x [$dataobj limits x] 1640 lappend limits y [$dataobj limits y] 1641 if { [catch { $dataobj limits $_curFldName } vlim] != 0 } { 1642 set vlim [$dataobj limits v] 1643 } 1644 lappend limits v $vlim 1645 return $limits 1629 1646 } 1630 1647 -
branches/uq/gui/scripts/vtkisosurfaceviewer.tcl
r4797 r4798 57 57 public method get {args} 58 58 public method isconnected {} 59 public method limits { colormap } 59 60 public method parameters {title args} { 60 61 # do nothing … … 102 103 private method Rotate {option x y} 103 104 private method SetCurrentColormap { color } 104 private method SetCurrentFieldName { dataobj }105 105 private method SetLegendTip { x y } 106 private method SetObjectStyle { dataobj comp } 106 private method SetObjectStyle { dataobj comp } 107 private method SetCurrentFieldName { dataobj } 107 108 private method SetOrientation { side } 108 private method Slice {option args} 109 private method Slice {option args} 109 110 private method Zoom {option} 110 111 private method ViewToQuaternion {} { … … 239 240 array set _settings { 240 241 -axesvisible 1 241 -axislabels 1 242 -axisminorticks 1 242 -axislabelsvisible 1 243 243 -axismode "static" 244 244 -background black … … 994 994 set _first "" 995 995 InitSettings -xgrid -ygrid -zgrid -axismode \ 996 -axesvisible -axislabels -axisminorticks -ortho 997 #SendCmd "axis lformat all %g" 996 -axesvisible -axislabelsvisible -ortho 997 SendCmd "axis lformat all %g" 998 # Too many major ticks, so turn off minor ticks 999 SendCmd "axis minticks all 0" 998 1000 StopBufferingCommands 999 1001 SendCmd "imgflush" … … 1068 1070 } 1069 1071 if { [array size _fields] < 2 } { 1070 catch {blt::table forget $itk_component(field) $itk_component(field_l)} 1072 catch { 1073 blt::table forget $itk_component(field) $itk_component(field_l) 1074 } 1071 1075 } 1072 1076 set _reset 0 … … 1319 1323 SendCmd "axis visible all $bool" 1320 1324 } 1321 "-axislabels " {1325 "-axislabelsvisible" { 1322 1326 set bool $_settings($what) 1323 1327 SendCmd "axis labels all $bool" 1324 }1325 "-axisminorticks" {1326 set bool $_settings($what)1327 SendCmd "axis minticks all $bool"1328 1328 } 1329 1329 "-axismode" { … … 1598 1598 } 1599 1599 1600 itcl::body Rappture::VtkIsosurfaceViewer::limits { dataobj } { 1601 foreach { limits(xmin) limits(xmax) } [$dataobj limits x] break 1602 foreach { limits(ymin) limits(ymax) } [$dataobj limits y] break 1603 foreach { limits(zmin) limits(zmax) } [$dataobj limits z] break 1604 foreach { limits(vmin) limits(vmax) } [$dataobj limits v] break 1605 return [array get limits] 1606 } 1607 1600 1608 itcl::body Rappture::VtkIsosurfaceViewer::BuildIsosurfaceTab {} { 1601 1609 … … 1683 1691 -showvalue off \ 1684 1692 -command [itcl::code $this AdjustSetting -isosurfaceopacity] 1685 $inner.opacity set [expr $_settings(-isosurfaceopacity) * 100.0] 1693 set _widget(-isosurfaceopacity) \ 1694 [expr $_settings(-isosurfaceopacity) * 100.0] 1686 1695 1687 1696 itk_component add field_l { … … 1749 1758 1750 1759 checkbutton $inner.visible \ 1751 -text " Axes" \1760 -text "Show Axes" \ 1752 1761 -variable [itcl::scope _settings(-axesvisible)] \ 1753 1762 -command [itcl::code $this AdjustSetting -axesvisible] \ … … 1755 1764 1756 1765 checkbutton $inner.labels \ 1757 -text " Axis Labels" \1758 -variable [itcl::scope _settings(-axislabels )] \1759 -command [itcl::code $this AdjustSetting -axislabels ] \1766 -text "Show Axis Labels" \ 1767 -variable [itcl::scope _settings(-axislabelsvisible)] \ 1768 -command [itcl::code $this AdjustSetting -axislabelsvisible] \ 1760 1769 -font "Arial 9" 1761 label $inner.grid_l -text "Grid" -font "Arial 9" 1762 checkbutton $inner. xgrid\1763 -text " X" \1770 1771 checkbutton $inner.gridx \ 1772 -text "Show X Grid" \ 1764 1773 -variable [itcl::scope _settings(-xgrid)] \ 1765 1774 -command [itcl::code $this AdjustSetting -xgrid] \ 1766 1775 -font "Arial 9" 1767 checkbutton $inner. ygrid\1768 -text " Y" \1776 checkbutton $inner.gridy \ 1777 -text "Show Y Grid" \ 1769 1778 -variable [itcl::scope _settings(-ygrid)] \ 1770 1779 -command [itcl::code $this AdjustSetting -ygrid] \ 1771 1780 -font "Arial 9" 1772 checkbutton $inner. zgrid\1773 -text " Z" \1781 checkbutton $inner.gridz \ 1782 -text "Show Z Grid" \ 1774 1783 -variable [itcl::scope _settings(-zgrid)] \ 1775 1784 -command [itcl::code $this AdjustSetting -zgrid] \ 1776 -font "Arial 9"1777 checkbutton $inner.minorticks \1778 -text "Minor Ticks" \1779 -variable [itcl::scope _settings(-axisminorticks)] \1780 -command [itcl::code $this AdjustSetting -axisminorticks] \1781 1785 -font "Arial 9" 1782 1786 … … 1795 1799 1796 1800 blt::table $inner \ 1797 0,0 $inner.visible -anchor w -cspan 4 \ 1798 1,0 $inner.labels -anchor w -cspan 4 \ 1799 2,0 $inner.minorticks -anchor w -cspan 4 \ 1800 4,0 $inner.grid_l -anchor w \ 1801 4,1 $inner.xgrid -anchor w \ 1802 4,2 $inner.ygrid -anchor w \ 1803 4,3 $inner.zgrid -anchor w \ 1804 5,0 $inner.mode_l -anchor w -padx { 2 0 } \ 1805 5,1 $inner.mode -fill x -cspan 3 1801 0,0 $inner.visible -anchor w -cspan 2 \ 1802 1,0 $inner.labels -anchor w -cspan 2 \ 1803 2,0 $inner.gridx -anchor w -cspan 2 \ 1804 3,0 $inner.gridy -anchor w -cspan 2 \ 1805 4,0 $inner.gridz -anchor w -cspan 2 \ 1806 5,0 $inner.mode_l -anchor w -cspan 2 -padx { 2 0 } \ 1807 6,0 $inner.mode -fill x -cspan 2 1806 1808 1807 1809 blt::table configure $inner r* c* -resize none 1808 blt::table configure $inner r7 c6 -resize expand 1809 blt::table configure $inner r3 -height 0.125i 1810 blt::table configure $inner r7 c1 -resize expand 1810 1811 } 1811 1812 … … 1905 1906 -showvalue off \ 1906 1907 -command [itcl::code $this AdjustSetting -cutplaneopacity] 1907 $inner.opacity set[expr $_settings(-cutplaneopacity) * 100.0]1908 set _widget(-cutplaneopacity) [expr $_settings(-cutplaneopacity) * 100.0] 1908 1909 1909 1910 # X-value slicer... … … 2575 2576 } 2576 2577 if { $_contourList(numLevels) < 1 } { 2577 # There are tools that set 0 levels to get cutplanes only2578 #puts stderr "numLevels < 1"2579 2578 return "" 2580 2579 } -
branches/uq/gui/scripts/vtkmeshviewer.tcl
r4797 r4798 57 57 public method get {args} 58 58 public method isconnected {} 59 public method limits { dataobj}59 public method limits { colormap } 60 60 public method parameters {title args} { 61 61 # do nothing … … 81 81 private method BuildAxisTab {} 82 82 private method BuildCameraTab {} 83 private method BuildCutawayTab {} 83 84 private method BuildDownloadPopup { widget command } 84 85 private method BuildPolydataTab {} … … 93 94 private method SetOrientation { side } 94 95 private method SetPolydataOpacity {} 96 private method Slice {option args} 95 97 96 98 private variable _arcball "" … … 100 102 private variable _datasets; # contains all the dataobj-component 101 103 # datasets in the server 104 private variable _colormaps; # contains all the colormaps 105 # in the server. 102 106 private variable _dataset2style; # maps dataobj-component to transfunc 103 107 private variable _style2datasets; # maps tf back to list of … … 183 187 -axesvisible 1 184 188 -axislabels 1 185 -axisminorticks 1186 189 -outline 0 187 190 -polydataedges 0 … … 190 193 -polydatavisible 1 191 194 -polydatawireframe 0 195 -xcutaway 0 196 -xdirection -1 192 197 -xgrid 0 198 -xposition 0 199 -ycutaway 0 200 -ydirection -1 193 201 -ygrid 0 202 -yposition 0 203 -zcutaway 0 204 -zdirection -1 194 205 -zgrid 0 206 -zposition 0 195 207 } 196 208 array set _widget { … … 273 285 BuildPolydataTab 274 286 BuildAxisTab 287 #BuildCutawayTab 275 288 BuildCameraTab 276 289 … … 710 723 711 724 # disconnected -- no more data sitting on server 712 array unset _datasets 713 array unset _data 725 array unset _datasets 726 array unset _data 727 array unset _colormaps 714 728 global readyForNextFrame 715 729 set readyForNextFrame 1 … … 821 835 $_arcball resize $w $h 822 836 DoResize 823 InitSettings -xgrid -ygrid -zgrid -axismode \ 824 -axesvisible -axislabels -axisminorticks 837 InitSettings -xgrid -ygrid -zgrid -axismode -axesvisible -axislabels 825 838 StopBufferingCommands 826 839 SendCmd "imgflush" … … 890 903 -polydatavisible -polydatawireframe 891 904 892 #SendCmd "axis lformat all %g" 905 SendCmd "axis lformat all %g" 906 # Too many major ticks, so turn off minor ticks 907 SendCmd "axis minticks all 0" 893 908 894 909 set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)] … … 1201 1216 set mode [$itk_component(axismode) translate $mode] 1202 1217 SendCmd "axis flymode $mode" 1218 } 1219 "-xcutaway" - "-ycutaway" - "-zcutaway" { 1220 set axis [string range $what 1 1] 1221 set bool $_settings($what) 1222 if { $bool } { 1223 set pos [expr $_settings(-${axis}position) * 0.01] 1224 set dir $_settings(-${axis}direction) 1225 $itk_component(${axis}CutScale) configure -state normal \ 1226 -troughcolor white 1227 SendCmd "renderer clipplane $axis $pos $dir" 1228 } else { 1229 $itk_component(${axis}CutScale) configure -state disabled \ 1230 -troughcolor grey82 1231 SendCmd "renderer clipplane $axis 1 -1" 1232 } 1233 } 1234 "-xposition" - "-yposition" - "-zposition" { 1235 set axis [string range $what 1 1] 1236 set pos [expr $_settings($what) * 0.01] 1237 SendCmd "renderer clipplane ${axis} $pos -1" 1238 } 1239 "-xdirection" - "-ydirection" - "-zdirection" { 1240 set axis [string range $what 1 1] 1241 puts stderr "direction not implemented" 1203 1242 } 1204 1243 default { … … 1352 1391 set inner [$itk_component(main) insert end \ 1353 1392 -title "Axis Settings" \ 1354 -icon [Rappture::icon axis 2]]1393 -icon [Rappture::icon axis1]] 1355 1394 $inner configure -borderwidth 4 1356 1395 1357 1396 checkbutton $inner.visible \ 1358 -text " Axes" \1397 -text "Show Axes" \ 1359 1398 -variable [itcl::scope _settings(-axesvisible)] \ 1360 1399 -command [itcl::code $this AdjustSetting -axesvisible] \ … … 1362 1401 1363 1402 checkbutton $inner.labels \ 1364 -text " Axis Labels" \1403 -text "Show Axis Labels" \ 1365 1404 -variable [itcl::scope _settings(-axislabels)] \ 1366 1405 -command [itcl::code $this AdjustSetting -axislabels] \ 1367 1406 -font "Arial 9" 1368 label $inner.grid_l -text "Grid" -font "Arial 9" 1369 checkbutton $inner. xgrid\1370 -text " X" \1407 1408 checkbutton $inner.gridx \ 1409 -text "Show X Grid" \ 1371 1410 -variable [itcl::scope _settings(-xgrid)] \ 1372 1411 -command [itcl::code $this AdjustSetting -xgrid] \ 1373 1412 -font "Arial 9" 1374 checkbutton $inner. ygrid\1375 -text " Y" \1413 checkbutton $inner.gridy \ 1414 -text "Show Y Grid" \ 1376 1415 -variable [itcl::scope _settings(-ygrid)] \ 1377 1416 -command [itcl::code $this AdjustSetting -ygrid] \ 1378 1417 -font "Arial 9" 1379 checkbutton $inner. zgrid\1380 -text " Z" \1418 checkbutton $inner.gridz \ 1419 -text "Show Z Grid" \ 1381 1420 -variable [itcl::scope _settings(-zgrid)] \ 1382 1421 -command [itcl::code $this AdjustSetting -zgrid] \ 1383 -font "Arial 9"1384 checkbutton $inner.minorticks \1385 -text "Minor Ticks" \1386 -variable [itcl::scope _settings(-axisminorticks)] \1387 -command [itcl::code $this AdjustSetting -axisminorticks] \1388 1422 -font "Arial 9" 1389 1423 … … 1402 1436 1403 1437 blt::table $inner \ 1404 0,0 $inner.visible -anchor w -cspan 4 \ 1405 1,0 $inner.labels -anchor w -cspan 4 \ 1406 2,0 $inner.minorticks -anchor w -cspan 4 \ 1407 4,0 $inner.grid_l -anchor w \ 1408 4,1 $inner.xgrid -anchor w \ 1409 4,2 $inner.ygrid -anchor w \ 1410 4,3 $inner.zgrid -anchor w \ 1411 5,0 $inner.mode_l -anchor w -padx { 2 0 } \ 1412 5,1 $inner.mode -fill x -cspan 3 1438 0,0 $inner.visible -anchor w -cspan 2 \ 1439 1,0 $inner.labels -anchor w -cspan 2 \ 1440 2,0 $inner.gridx -anchor w -cspan 2 \ 1441 3,0 $inner.gridy -anchor w -cspan 2 \ 1442 4,0 $inner.gridz -anchor w -cspan 2 \ 1443 5,0 $inner.mode_l -anchor w -cspan 2 -padx { 2 0 } \ 1444 6,0 $inner.mode -fill x -cspan 2 1413 1445 1414 1446 blt::table configure $inner r* c* -resize none 1415 blt::table configure $inner r7 c6 -resize expand 1416 blt::table configure $inner r3 -height 0.125i 1447 blt::table configure $inner r7 c1 -resize expand 1417 1448 } 1418 1449 … … 1463 1494 blt::table configure $inner c2 -resize expand 1464 1495 blt::table configure $inner r$row -resize expand 1496 } 1497 1498 itcl::body Rappture::VtkMeshViewer::BuildCutawayTab {} { 1499 1500 set fg [option get $itk_component(hull) font Font] 1501 1502 set inner [$itk_component(main) insert end \ 1503 -title "Cutaway Along Axis" \ 1504 -icon [Rappture::icon cutbutton]] 1505 1506 $inner configure -borderwidth 4 1507 1508 # X-value slicer... 1509 itk_component add xCutButton { 1510 Rappture::PushButton $inner.xbutton \ 1511 -onimage [Rappture::icon x-cutplane] \ 1512 -offimage [Rappture::icon x-cutplane] \ 1513 -command [itcl::code $this AdjustSetting -xcutaway] \ 1514 -variable [itcl::scope _settings(-xcutaway)] 1515 } 1516 Rappture::Tooltip::for $itk_component(xCutButton) \ 1517 "Toggle the X-axis cutaway on/off" 1518 1519 itk_component add xCutScale { 1520 ::scale $inner.xval -from 100 -to 0 \ 1521 -width 10 -orient vertical -showvalue yes \ 1522 -borderwidth 1 -highlightthickness 0 \ 1523 -command [itcl::code $this Slice move x] \ 1524 -variable [itcl::scope _settings(-xposition)] 1525 } { 1526 usual 1527 ignore -borderwidth -highlightthickness 1528 } 1529 # Set the default cutaway value before disabling the scale. 1530 $itk_component(xCutScale) set 100 1531 $itk_component(xCutScale) configure -state disabled 1532 Rappture::Tooltip::for $itk_component(xCutScale) \ 1533 "@[itcl::code $this Slice tooltip x]" 1534 1535 itk_component add xDirButton { 1536 Rappture::PushButton $inner.xdir \ 1537 -onimage [Rappture::icon arrow-down] \ 1538 -onvalue -1 \ 1539 -offimage [Rappture::icon arrow-up] \ 1540 -offvalue 1 \ 1541 -command [itcl::code $this AdjustSetting -xdirection] \ 1542 -variable [itcl::scope _settings(-xdirection)] 1543 } 1544 set _settings(-xdirection) -1 1545 Rappture::Tooltip::for $itk_component(xDirButton) \ 1546 "Toggle the direction of the X-axis cutaway" 1547 1548 # Y-value slicer... 1549 itk_component add yCutButton { 1550 Rappture::PushButton $inner.ybutton \ 1551 -onimage [Rappture::icon y-cutplane] \ 1552 -offimage [Rappture::icon y-cutplane] \ 1553 -command [itcl::code $this AdjustSetting -ycutaway] \ 1554 -variable [itcl::scope _settings(-ycutaway)] 1555 } 1556 Rappture::Tooltip::for $itk_component(yCutButton) \ 1557 "Toggle the Y-axis cutaway on/off" 1558 1559 itk_component add yCutScale { 1560 ::scale $inner.yval -from 100 -to 0 \ 1561 -width 10 -orient vertical -showvalue yes \ 1562 -borderwidth 1 -highlightthickness 0 \ 1563 -command [itcl::code $this Slice move y] \ 1564 -variable [itcl::scope _settings(-yposition)] 1565 } { 1566 usual 1567 ignore -borderwidth -highlightthickness 1568 } 1569 Rappture::Tooltip::for $itk_component(yCutScale) \ 1570 "@[itcl::code $this Slice tooltip y]" 1571 # Set the default cutaway value before disabling the scale. 1572 $itk_component(yCutScale) set 100 1573 $itk_component(yCutScale) configure -state disabled 1574 1575 itk_component add yDirButton { 1576 Rappture::PushButton $inner.ydir \ 1577 -onimage [Rappture::icon arrow-down] \ 1578 -onvalue -1 \ 1579 -offimage [Rappture::icon arrow-up] \ 1580 -offvalue 1 \ 1581 -command [itcl::code $this AdjustSetting -ydirection] \ 1582 -variable [itcl::scope _settings(-ydirection)] 1583 } 1584 Rappture::Tooltip::for $itk_component(yDirButton) \ 1585 "Toggle the direction of the Y-axis cutaway" 1586 set _settings(-ydirection) -1 1587 1588 # Z-value slicer... 1589 itk_component add zCutButton { 1590 Rappture::PushButton $inner.zbutton \ 1591 -onimage [Rappture::icon z-cutplane] \ 1592 -offimage [Rappture::icon z-cutplane] \ 1593 -command [itcl::code $this AdjustSetting -zcutaway] \ 1594 -variable [itcl::scope _settings(-zcutaway)] 1595 } 1596 Rappture::Tooltip::for $itk_component(zCutButton) \ 1597 "Toggle the Z-axis cutaway on/off" 1598 1599 itk_component add zCutScale { 1600 ::scale $inner.zval -from 100 -to 0 \ 1601 -width 10 -orient vertical -showvalue yes \ 1602 -borderwidth 1 -highlightthickness 0 \ 1603 -command [itcl::code $this Slice move z] \ 1604 -variable [itcl::scope _settings(-zposition)] 1605 } { 1606 usual 1607 ignore -borderwidth -highlightthickness 1608 } 1609 $itk_component(zCutScale) set 100 1610 $itk_component(zCutScale) configure -state disabled 1611 Rappture::Tooltip::for $itk_component(zCutScale) \ 1612 "@[itcl::code $this Slice tooltip z]" 1613 1614 itk_component add zDirButton { 1615 Rappture::PushButton $inner.zdir \ 1616 -onimage [Rappture::icon arrow-down] \ 1617 -onvalue -1 \ 1618 -offimage [Rappture::icon arrow-up] \ 1619 -offvalue 1 \ 1620 -command [itcl::code $this AdjustSetting -zdirection] \ 1621 -variable [itcl::scope _settings(-zdirection)] 1622 } 1623 set _settings(-zdirection) -1 1624 Rappture::Tooltip::for $itk_component(zDirButton) \ 1625 "Toggle the direction of the Z-axis cutaway" 1626 1627 blt::table $inner \ 1628 0,0 $itk_component(xCutButton) -anchor e -padx 2 -pady 2 \ 1629 1,0 $itk_component(xCutScale) -fill y \ 1630 0,1 $itk_component(yCutButton) -anchor e -padx 2 -pady 2 \ 1631 1,1 $itk_component(yCutScale) -fill y \ 1632 0,2 $itk_component(zCutButton) -anchor e -padx 2 -pady 2 \ 1633 1,2 $itk_component(zCutScale) -fill y \ 1634 1635 blt::table configure $inner r* c* -resize none 1636 blt::table configure $inner r1 c3 -resize expand 1465 1637 } 1466 1638 … … 1625 1797 } 1626 1798 1799 # ---------------------------------------------------------------------- 1800 # USAGE: Slice move x|y|z <newval> 1801 # 1802 # Called automatically when the user drags the slider to move the 1803 # cut plane that slices 3D data. Gets the current value from the 1804 # slider and moves the cut plane to the appropriate point in the 1805 # data set. 1806 # ---------------------------------------------------------------------- 1807 itcl::body Rappture::VtkMeshViewer::Slice {option args} { 1808 switch -- $option { 1809 "move" { 1810 set axis [lindex $args 0] 1811 set newval [lindex $args 1] 1812 if {[llength $args] != 2} { 1813 error "wrong # args: should be \"Slice move x|y|z newval\"" 1814 } 1815 set newpos [expr {0.01*$newval}] 1816 SendCmd "renderer clipplane $axis $newpos -1" 1817 } 1818 "tooltip" { 1819 set axis [lindex $args 0] 1820 set val [$itk_component(${axis}CutScale) get] 1821 return "Move the [string toupper $axis] cut plane.\nCurrently: $axis = $val%" 1822 } 1823 default { 1824 error "bad option \"$option\": should be axis, move, or tooltip" 1825 } 1826 } 1827 } 1828 1627 1829 itcl::body Rappture::VtkMeshViewer::SetOrientation { side } { 1628 1830 array set positions { … … 1645 1847 set _view(zoom) 1.0 1646 1848 } 1849 -
branches/uq/gui/scripts/vtkstreamlinesviewer.tcl
r4797 r4798 1783 1783 1784 1784 checkbutton $inner.visible \ 1785 -text " Axes" \1785 -text "Show Axes" \ 1786 1786 -variable [itcl::scope _settings(axesVisible)] \ 1787 1787 -command [itcl::code $this AdjustSetting axesVisible] \ … … 1789 1789 1790 1790 checkbutton $inner.labels \ 1791 -text " Axis Labels" \1791 -text "Show Axis Labels" \ 1792 1792 -variable [itcl::scope _settings(axisLabelsVisible)] \ 1793 1793 -command [itcl::code $this AdjustSetting axisLabelsVisible] \ 1794 1794 -font "Arial 9" 1795 label $inner.grid_l -text "Grid" -font "Arial 9" 1795 1796 1796 checkbutton $inner.xgrid \ 1797 -text " X" \1797 -text "Show X Grid" \ 1798 1798 -variable [itcl::scope _settings(axisXGrid)] \ 1799 1799 -command [itcl::code $this AdjustSetting axisXGrid] \ 1800 1800 -font "Arial 9" 1801 1801 checkbutton $inner.ygrid \ 1802 -text " Y" \1802 -text "Show Y Grid" \ 1803 1803 -variable [itcl::scope _settings(axisYGrid)] \ 1804 1804 -command [itcl::code $this AdjustSetting axisYGrid] \ 1805 1805 -font "Arial 9" 1806 1806 checkbutton $inner.zgrid \ 1807 -text " Z" \1807 -text "Show Z Grid" \ 1808 1808 -variable [itcl::scope _settings(axisZGrid)] \ 1809 1809 -command [itcl::code $this AdjustSetting axisZGrid] \ -
branches/uq/gui/scripts/vtksurfaceviewer.tcl
r4797 r4798 57 57 public method get {args} 58 58 public method isconnected {} 59 public method limits { colormap } 59 60 public method parameters {title args} { 60 61 # do nothing … … 201 202 202 203 array set _settings { 203 -axesvisible 1 204 -axislabels 1 205 -axisminorticks 1 206 -background black 207 -colormap BCGYR 208 -colormapvisible 1 209 -field "Default" 210 -isolinecolor white 211 -isolinesvisible 0 212 -legendvisible 1 213 -numcontours 10 214 -surfaceedges 0 215 -surfacelighting 1 216 -surfaceopacity 100 217 -outline 0 218 -surfacevisible 1 219 -surfacewireframe 0 220 -xgrid 0 221 -ygrid 0 222 -zgrid 0 204 -axesvisible 1 205 -axislabelsvisible 1 206 -background black 207 -colormap BCGYR 208 -colormapvisible 1 209 -field "Default" 210 -isolinecolor white 211 -isolinesvisible 0 212 -legendvisible 1 213 -numcontours 10 214 -surfaceedges 0 215 -surfacelighting 1 216 -surfaceopacity 100 217 -outline 0 218 -surfacevisible 1 219 -surfacewireframe 0 220 -xaxisgrid 0 221 -yaxisgrid 0 222 -zaxisgrid 0 223 223 } 224 224 array set _changed { … … 909 909 set _first "" 910 910 InitSettings -xaxisgrid -yaxisgrid -zaxisgrid -axismode \ 911 -axesvisible -axislabels -axisminorticks 912 #SendCmd "axis lformat all %g" 911 -axesvisible -axislabelsvisible 912 foreach axis { x y z } { 913 SendCmd "axis lformat $axis %g" 914 } 913 915 StopBufferingCommands 914 916 SendCmd "imgflush" … … 1501 1503 } 1502 1504 1505 itcl::body Rappture::VtkSurfaceViewer::limits { dataobj } { 1506 foreach { limits(xmin) limits(xmax) } [$dataobj limits x] break 1507 foreach { limits(ymin) limits(ymax) } [$dataobj limits y] break 1508 foreach { limits(zmin) limits(zmax) } [$dataobj limits z] break 1509 foreach { limits(vmin) limits(vmax) } [$dataobj limits v] break 1510 return [array get limits] 1511 } 1512 1503 1513 itcl::body Rappture::VtkSurfaceViewer::BuildSurfaceTab {} { 1504 1514 … … 1665 1675 1666 1676 checkbutton $inner.visible \ 1667 -text " Axes" \1677 -text "Show Axes" \ 1668 1678 -variable [itcl::scope _settings(-axesvisible)] \ 1669 1679 -command [itcl::code $this AdjustSetting -axesvisible] \ … … 1671 1681 1672 1682 checkbutton $inner.labels \ 1673 -text " Axis Labels" \1674 -variable [itcl::scope _settings(-axislabels )] \1675 -command [itcl::code $this AdjustSetting -axislabels ] \1683 -text "Show Axis Labels" \ 1684 -variable [itcl::scope _settings(-axislabelsvisible)] \ 1685 -command [itcl::code $this AdjustSetting -axislabelsvisible] \ 1676 1686 -font "Arial 9" 1677 label $inner.grid_l -text "Grid" -font "Arial 9" 1678 checkbutton $inner. xgrid\1679 -text " X" \1687 1688 checkbutton $inner.gridx \ 1689 -text "Show X Grid" \ 1680 1690 -variable [itcl::scope _settings(-xaxisgrid)] \ 1681 1691 -command [itcl::code $this AdjustSetting -xaxisgrid] \ 1682 1692 -font "Arial 9" 1683 checkbutton $inner. ygrid\1684 -text " Y" \1693 checkbutton $inner.gridy \ 1694 -text "Show Y Grid" \ 1685 1695 -variable [itcl::scope _settings(-yaxisgrid)] \ 1686 1696 -command [itcl::code $this AdjustSetting -yaxisgrid] \ 1687 1697 -font "Arial 9" 1688 checkbutton $inner. zgrid\1689 -text " Z" \1698 checkbutton $inner.gridz \ 1699 -text "Show Z Grid" \ 1690 1700 -variable [itcl::scope _settings(-zaxisgrid)] \ 1691 1701 -command [itcl::code $this AdjustSetting -zaxisgrid] \ 1692 -font "Arial 9"1693 checkbutton $inner.minorticks \1694 -text "Minor Ticks" \1695 -variable [itcl::scope _settings(-axisminorticks)] \1696 -command [itcl::code $this AdjustSetting -axisminorticks] \1697 1702 -font "Arial 9" 1698 1703 … … 1711 1716 1712 1717 blt::table $inner \ 1713 0,0 $inner.visible -anchor w -cspan 4 \ 1714 1,0 $inner.labels -anchor w -cspan 4 \ 1715 2,0 $inner.minorticks -anchor w -cspan 4 \ 1716 4,0 $inner.grid_l -anchor w \ 1717 4,1 $inner.xgrid -anchor w \ 1718 4,2 $inner.ygrid -anchor w \ 1719 4,3 $inner.zgrid -anchor w \ 1720 5,0 $inner.mode_l -anchor w -padx { 2 0 } \ 1721 5,1 $inner.mode -fill x -cspan 3 1718 0,0 $inner.visible -anchor w -cspan 2 \ 1719 1,0 $inner.labels -anchor w -cspan 2 \ 1720 2,0 $inner.gridx -anchor w -cspan 2 \ 1721 3,0 $inner.gridy -anchor w -cspan 2 \ 1722 4,0 $inner.gridz -anchor w -cspan 2 \ 1723 5,0 $inner.mode_l -anchor w -cspan 2 -padx { 2 0 } \ 1724 6,0 $inner.mode -fill x -cspan 2 1722 1725 1723 1726 blt::table configure $inner r* c* -resize none 1724 blt::table configure $inner r7 c 6-resize expand1725 blt::table configure $inner r3 -height 0.125i 1726 } 1727 blt::table configure $inner r7 c1 -resize expand 1728 } 1729 1727 1730 1728 1731 itcl::body Rappture::VtkSurfaceViewer::BuildCameraTab {} { -
branches/uq/gui/scripts/vtkviewer.tcl
r4797 r4798 1667 1667 set type [$dataobj type $comp] 1668 1668 if { $type == "molecule" } { 1669 StartBufferingCommands 1670 SendCmd [subst {molecule rscale $_settings(molecule-rscale) $dataset}] 1671 SendCmd [subst {molecule ascale $_settings(molecule-atomscale) $dataset}] 1672 SendCmd [subst {molecule bscale $_settings(molecule-bondscale) $dataset}] 1673 SendCmd [subst {molecule bstyle $_settings(molecule-bondstyle) $dataset}] 1674 SendCmd [subst {molecule atoms $_settings(molecule-atoms-visible) $dataset}] 1675 SendCmd [subst {molecule bonds $_settings(molecule-bonds-visible) $dataset}] 1676 StopBufferingCommands 1669 SendCmd [subst {molecule rscale $_settings(molecule-rscale) $dataset 1670 molecule ascale $_settings(molecule-atomscale) $dataset 1671 molecule bscale $_settings(molecule-bondscale) $dataset 1672 molecule bstyle $_settings(molecule-bondstyle) $dataset 1673 molecule atoms $_settings(molecule-atoms-visible) $dataset 1674 molecule bonds $_settings(molecule-bonds-visible) $dataset}] 1677 1675 } 1678 1676 } … … 2137 2135 2138 2136 checkbutton $inner.visible \ 2139 -text " Axes" \2137 -text "Show Axes" \ 2140 2138 -variable [itcl::scope _axis(visible)] \ 2141 2139 -command [itcl::code $this AdjustSetting axis-visible] \ … … 2143 2141 2144 2142 checkbutton $inner.labels \ 2145 -text " Axis Labels" \2143 -text "Show Axis Labels" \ 2146 2144 -variable [itcl::scope _axis(labels)] \ 2147 2145 -command [itcl::code $this AdjustSetting axis-labels] \ 2148 2146 -font "Arial 9" 2149 label $inner.grid_l -text "Grid" -font "Arial 9" 2150 checkbutton $inner. xgrid\2151 -text " X" \2147 2148 checkbutton $inner.gridx \ 2149 -text "Show X Grid" \ 2152 2150 -variable [itcl::scope _axis(xgrid)] \ 2153 2151 -command [itcl::code $this AdjustSetting axis-xgrid] \ 2154 2152 -font "Arial 9" 2155 checkbutton $inner. ygrid\2156 -text " Y" \2153 checkbutton $inner.gridy \ 2154 -text "Show Y Grid" \ 2157 2155 -variable [itcl::scope _axis(ygrid)] \ 2158 2156 -command [itcl::code $this AdjustSetting axis-ygrid] \ 2159 2157 -font "Arial 9" 2160 checkbutton $inner. zgrid\2161 -text " Z" \2158 checkbutton $inner.gridz \ 2159 -text "Show Z Grid" \ 2162 2160 -variable [itcl::scope _axis(zgrid)] \ 2163 2161 -command [itcl::code $this AdjustSetting axis-zgrid] \ -
branches/uq/gui/src/RpPdbToVtk.c
r4797 r4798 191 191 for (i = 0, hPtr = Tcl_FirstHashEntry(atomTablePtr, &iter); hPtr != NULL; 192 192 hPtr = Tcl_NextHashEntry(&iter), i++) { 193 PdbAtom *atomPtr = Tcl_GetHashValue(hPtr); 193 PdbAtom *atomPtr; 194 195 atomPtr = Tcl_GetHashValue(hPtr); 194 196 array[i] = atomPtr; 195 197 } … … 689 691 Tcl_AppendToObj(objPtr, mesg, -1); 690 692 } 691 #if 0692 for (hPtr = Tcl_FirstHashEntry(&atomTable, &iter); hPtr != NULL;693 hPtr = Tcl_NextHashEntry(&iter)) {694 PdbAtom *atomPtr = Tcl_GetHashValue(hPtr);695 fprintf(stderr, "%d %s %d connections\n", atomPtr->ordinal,696 elements[atomPtr->number].symbol, atomPtr->numConnections);697 }698 #endif699 693 sprintf(mesg, "POINT_DATA %d\n", atomTable.numEntries); 700 694 Tcl_AppendToObj(objPtr, mesg, -1); -
branches/uq/lang/tcl/pkgIndex.tcl.in
r4797 r4798 6 6 variable version $version 7 7 variable build "@SVN_VERSION@" 8 variable svnurl "@SVN_URL@"9 8 variable installdir [file normalize $dir] 10 9 } -
branches/uq/src/core/RpEncode.cc
r3362 r4798 212 212 for (p = (unsigned const char *)buf, pend = p + size; p < pend; p++) { 213 213 if (!_base64chars[*p]) { 214 fprintf(stderr, " %c %uis not base64\n", *p, *p);214 fprintf(stderr, "\"%c\" (0x%x) is not base64\n", *p, *p); 215 215 return false; 216 216 }
Note: See TracChangeset
for help on using the changeset viewer.