Changeset 5382 for branches/1.4
- Timestamp:
- May 1, 2015, 1:36:50 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.4/gui/scripts/vtkvolumeviewer.tcl
r5349 r5382 118 118 119 119 private variable _arcball "" 120 private variable _dlist "" ;# list of data objects121 private variable _obj2ovride ;# maps dataobj => style override122 private variable _datasets ;# contains all the dataobj-component123 ;# datasets in the server124 private variable _colormaps ;# contains all the colormaps125 ;# in the server.126 private variable _dataset2style ;# maps dataobj-component to transfunc127 128 private variable _click ;# info used for rotate operations129 private variable _limits ;# autoscale min/max for all axes130 private variable _view ;# view params for 3D view120 private variable _dlist ""; # list of data objects 121 private variable _obj2ovride; # maps dataobj => style override 122 private variable _datasets; # contains all the dataobj-component 123 # datasets in the server 124 private variable _colormaps; # contains all the colormaps 125 # in the server. 126 private variable _dataset2style; # maps dataobj-component to transfunc 127 128 private variable _click; # info used for rotate operations 129 private variable _limits; # autoscale min/max for all axes 130 private variable _view; # view params for 3D view 131 131 private variable _settings 132 132 private variable _style; # Array of current component styles. … … 134 134 private variable _reset 1; # Connection to server has been reset. 135 135 136 private variable _first "" ;# This is the topmost dataset.136 private variable _first ""; # This is the topmost dataset. 137 137 private variable _start 0 138 138 private variable _title "" 139 139 140 private common _downloadPopup; # download options from popup141 private common _hardcopy142 140 private variable _width 0 143 141 private variable _height 0 … … 152 150 private variable _cutplaneCmd "cutplane" 153 151 private variable _allowMultiComponent 0 152 153 private common _downloadPopup; # download options from popup 154 private common _hardcopy 154 155 } 155 156 … … 1640 1641 itcl::body Rappture::VtkVolumeViewer::BuildViewTab {} { 1641 1642 set font [option get $itk_component(hull) font Font] 1642 #set bfont [option get $itk_component(hull) boldFont Font]1643 1643 1644 1644 set inner [$itk_component(main) insert end \ … … 1651 1651 -variable [itcl::scope _settings(-axesvisible)] \ 1652 1652 -command [itcl::code $this AdjustSetting -axesvisible] \ 1653 -font "Arial 9"1653 -font $font 1654 1654 1655 1655 checkbutton $inner.outline \ … … 1657 1657 -variable [itcl::scope _settings(-volumeoutline)] \ 1658 1658 -command [itcl::code $this AdjustSetting -volumeoutline] \ 1659 -font "Arial 9"1659 -font $font 1660 1660 1661 1661 checkbutton $inner.legend \ … … 1663 1663 -variable [itcl::scope _settings(-legendvisible)] \ 1664 1664 -command [itcl::code $this AdjustSetting -legendvisible] \ 1665 -font "Arial 9"1665 -font $font 1666 1666 1667 1667 checkbutton $inner.volume \ … … 1669 1669 -variable [itcl::scope _settings(-volumevisible)] \ 1670 1670 -command [itcl::code $this AdjustSetting -volumevisible] \ 1671 -font "Arial 9"1672 1673 label $inner.background_l -text "Background" -font "Arial 9"1671 -font $font 1672 1673 label $inner.background_l -text "Background" -font $font 1674 1674 itk_component add background { 1675 1675 Rappture::Combobox $inner.background -width 10 -editable no 1676 1676 } 1677 1677 $inner.background choices insert end \ 1678 "black" "black"\1679 "white" "white"\1680 "grey" 1678 "black" "black" \ 1679 "white" "white" \ 1680 "grey" "grey" 1681 1681 1682 1682 $itk_component(background) value $_settings(-background) … … 1685 1685 1686 1686 blt::table $inner \ 1687 0,0 $inner.axes 1688 1,0 $inner.outline 1689 2,0 $inner.volume 1690 3,0 $inner.legend 1691 4,0 $inner.background_l 1692 4,1 $inner.background 1687 0,0 $inner.axes -cspan 2 -anchor w \ 1688 1,0 $inner.outline -cspan 2 -anchor w \ 1689 2,0 $inner.volume -cspan 2 -anchor w \ 1690 3,0 $inner.legend -cspan 2 -anchor w \ 1691 4,0 $inner.background_l -anchor e -pady 2 \ 1692 4,1 $inner.background -fill x \ 1693 1693 1694 1694 blt::table configure $inner r* -resize none … … 1699 1699 set font [option get $itk_component(hull) font Font] 1700 1700 #set bfont [option get $itk_component(hull) boldFont Font] 1701 set bfont "Arial 9 bold" 1701 1702 1702 1703 set inner [$itk_component(main) insert end \ … … 1753 1754 1754 1755 blt::table $inner \ 1755 0,0 $inner.field_l 1756 0,1 $inner.field -fill x-pady 2 -cspan 3 \1756 0,0 $inner.field_l -anchor w -pady 2 \ 1757 0,1 $inner.field -fill x -pady 2 -cspan 3 \ 1757 1758 1,0 $inner.visibility -anchor w -pady 2 -cspan 4 \ 1758 2,0 $inner.lighting 1759 3,0 $inner.dim_l 1760 3,1 $inner.material -fill x-pady 2 -cspan 2 \1761 3,3 $inner.bright_l 1759 2,0 $inner.lighting -anchor w -pady 2 -cspan 4 \ 1760 3,0 $inner.dim_l -anchor e -pady 2 \ 1761 3,1 $inner.material -fill x -pady 2 -cspan 2 \ 1762 3,3 $inner.bright_l -anchor w -pady 2 \ 1762 1763 4,0 $inner.opacity_l -anchor w -pady 2 -cspan 4 \ 1763 5,0 $inner.opacity -fill x-pady 2 -cspan 4 \1764 5,0 $inner.opacity -fill x -pady 2 -cspan 4 \ 1764 1765 6,0 $inner.quality_l -anchor w -pady 2 -cspan 4 \ 1765 7,0 $inner.quality -fill x-pady 2 -cspan 4 \1766 7,0 $inner.quality -fill x -pady 2 -cspan 4 \ 1766 1767 8,0 $inner.colormap_l -anchor w -pady 2 \ 1767 8,1 $inner.colormap -fill x-pady 2 -cspan 31768 8,1 $inner.colormap -fill x -pady 2 -cspan 3 1768 1769 1769 1770 blt::table configure $inner r* c0 c1 c3 -resize none … … 1772 1773 1773 1774 itcl::body Rappture::VtkVolumeViewer::BuildAxisTab {} { 1774 set fg [option get $itk_component(hull) font Font] 1775 #set bfg [option get $itk_component(hull) boldFont Font] 1775 set font [option get $itk_component(hull) font Font] 1776 1776 1777 1777 set inner [$itk_component(main) insert end \ … … 1784 1784 -variable [itcl::scope _settings(-axesvisible)] \ 1785 1785 -command [itcl::code $this AdjustSetting -axesvisible] \ 1786 -font "Arial 9"1786 -font $font 1787 1787 1788 1788 checkbutton $inner.labels \ … … 1790 1790 -variable [itcl::scope _settings(-axislabels)] \ 1791 1791 -command [itcl::code $this AdjustSetting -axislabels] \ 1792 -font "Arial 9"1793 label $inner.grid_l -text "Grid" -font "Arial 9"1792 -font $font 1793 label $inner.grid_l -text "Grid" -font $font 1794 1794 checkbutton $inner.xgrid \ 1795 1795 -text "X" \ 1796 1796 -variable [itcl::scope _settings(-xgrid)] \ 1797 1797 -command [itcl::code $this AdjustSetting -xgrid] \ 1798 -font "Arial 9"1798 -font $font 1799 1799 checkbutton $inner.ygrid \ 1800 1800 -text "Y" \ 1801 1801 -variable [itcl::scope _settings(-ygrid)] \ 1802 1802 -command [itcl::code $this AdjustSetting -ygrid] \ 1803 -font "Arial 9"1803 -font $font 1804 1804 checkbutton $inner.zgrid \ 1805 1805 -text "Z" \ 1806 1806 -variable [itcl::scope _settings(-zgrid)] \ 1807 1807 -command [itcl::code $this AdjustSetting -zgrid] \ 1808 -font "Arial 9"1808 -font $font 1809 1809 checkbutton $inner.minorticks \ 1810 1810 -text "Minor Ticks" \ 1811 1811 -variable [itcl::scope _settings(-axisminorticks)] \ 1812 1812 -command [itcl::code $this AdjustSetting -axisminorticks] \ 1813 -font "Arial 9"1814 1815 label $inner.mode_l -text "Mode" -font "Arial 9"1813 -font $font 1814 1815 label $inner.mode_l -text "Mode" -font $font 1816 1816 1817 1817 itk_component add axismode { … … 1828 1828 blt::table $inner \ 1829 1829 0,0 $inner.visible -anchor w -cspan 4 \ 1830 1,0 $inner.labels 1831 2,0 $inner.minorticks 1832 4,0 $inner.grid_l 1833 4,1 $inner.xgrid 1834 4,2 $inner.ygrid 1835 4,3 $inner.zgrid 1836 5,0 $inner.mode_l 1837 5,1 $inner.mode -fill x-cspan 31830 1,0 $inner.labels -anchor w -cspan 4 \ 1831 2,0 $inner.minorticks -anchor w -cspan 4 \ 1832 4,0 $inner.grid_l -anchor w \ 1833 4,1 $inner.xgrid -anchor w \ 1834 4,2 $inner.ygrid -anchor w \ 1835 4,3 $inner.zgrid -anchor w \ 1836 5,0 $inner.mode_l -anchor w -padx { 2 0 } \ 1837 5,1 $inner.mode -fill x -cspan 3 1838 1838 1839 1839 blt::table configure $inner r* c* -resize none … … 1843 1843 1844 1844 itcl::body Rappture::VtkVolumeViewer::BuildCameraTab {} { 1845 set font [option get $itk_component(hull) font Font] 1845 1846 set inner [$itk_component(main) insert end \ 1846 1847 -title "Camera Settings" \ … … 1848 1849 $inner configure -borderwidth 4 1849 1850 1850 label $inner.view_l -text "view" -font "Arial 9"1851 label $inner.view_l -text "view" -font $font 1851 1852 set f [frame $inner.view] 1852 1853 foreach side { front back left right top bottom } { … … 1864 1865 set labels { qx qy qz qw xpan ypan zoom } 1865 1866 foreach tag $labels { 1866 label $inner.${tag}label -text $tag -font "Arial 9"1867 entry $inner.${tag} -font "Arial 9"-bg white \1867 label $inner.${tag}label -text $tag -font $font 1868 entry $inner.${tag} -font $font -bg white \ 1868 1869 -textvariable [itcl::scope _view(-$tag)] 1869 1870 bind $inner.${tag} <Return> \ … … 1881 1882 -variable [itcl::scope _view(-ortho)] \ 1882 1883 -command [itcl::code $this camera set -ortho] \ 1883 -font "Arial 9"1884 -font $font 1884 1885 blt::table $inner \ 1885 1886 $row,0 $inner.ortho -cspan 2 -anchor w -pady 2 … … 1905 1906 -variable [itcl::scope _settings(-cutplanesvisible)] \ 1906 1907 -command [itcl::code $this AdjustSetting -cutplanesvisible] \ 1907 -font "Arial 9"1908 -font $font 1908 1909 1909 1910 checkbutton $inner.lighting \ … … 1911 1912 -variable [itcl::scope _settings(-cutplanelighting)] \ 1912 1913 -command [itcl::code $this AdjustSetting -cutplanelighting] \ 1913 -font "Arial 9"1914 1915 label $inner.opacity_l -text "Opacity" -font "Arial 9"1914 -font $font 1915 1916 label $inner.opacity_l -text "Opacity" -font $font 1916 1917 ::scale $inner.opacity -from 0 -to 100 -orient horizontal \ 1917 1918 -variable [itcl::scope _settings(-cutplaneopacity)] \
Note: See TracChangeset
for help on using the changeset viewer.