- Timestamp:
- Nov 10, 2014, 10:03:44 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkviewer.tcl
r4669 r4690 257 257 visible 1 258 258 labels 1 259 minorticks 1 259 260 }] 260 261 array set _settings [subst { … … 1032 1033 DoResize 1033 1034 InitSettings axis-xgrid axis-ygrid axis-zgrid axis-mode \ 1034 axis-visible axis-labels 1035 axis-visible axis-labels axis-minorticks 1035 1036 1036 1037 StopBufferingCommands … … 1666 1667 set type [$dataobj type $comp] 1667 1668 if { $type == "molecule" } { 1668 SendCmd [subst {molecule rscale $_settings(molecule-rscale) $dataset 1669 molecule ascale $_settings(molecule-atomscale) $dataset 1670 molecule bscale $_settings(molecule-bondscale) $dataset 1671 molecule bstyle $_settings(molecule-bondstyle) $dataset 1672 molecule atoms $_settings(molecule-atoms-visible) $dataset 1673 molecule bonds $_settings(molecule-bonds-visible) $dataset}] 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 1674 1677 } 1675 1678 } … … 1704 1707 set bool $_axis(labels) 1705 1708 SendCmd "axis labels all $bool" 1709 } 1710 "axis-minorticks" { 1711 set bool $_axis(minorticks) 1712 SendCmd "axis minticks all $bool" 1706 1713 } 1707 1714 "axis-xgrid" { … … 2126 2133 set inner [$itk_component(main) insert end \ 2127 2134 -title "Axis Settings" \ 2128 -icon [Rappture::icon axis 1]]2135 -icon [Rappture::icon axis2]] 2129 2136 $inner configure -borderwidth 4 2130 2137 2131 2138 checkbutton $inner.visible \ 2132 -text " ShowAxes" \2139 -text "Axes" \ 2133 2140 -variable [itcl::scope _axis(visible)] \ 2134 2141 -command [itcl::code $this AdjustSetting axis-visible] \ … … 2136 2143 2137 2144 checkbutton $inner.labels \ 2138 -text " ShowAxis Labels" \2145 -text "Axis Labels" \ 2139 2146 -variable [itcl::scope _axis(labels)] \ 2140 2147 -command [itcl::code $this AdjustSetting axis-labels] \ 2141 2148 -font "Arial 9" 2142 2143 checkbutton $inner. gridx\2144 -text " Show X Grid" \2149 label $inner.grid_l -text "Grid" -font "Arial 9" 2150 checkbutton $inner.xgrid \ 2151 -text "X" \ 2145 2152 -variable [itcl::scope _axis(xgrid)] \ 2146 2153 -command [itcl::code $this AdjustSetting axis-xgrid] \ 2147 2154 -font "Arial 9" 2148 checkbutton $inner. gridy\2149 -text " Show Y Grid" \2155 checkbutton $inner.ygrid \ 2156 -text "Y" \ 2150 2157 -variable [itcl::scope _axis(ygrid)] \ 2151 2158 -command [itcl::code $this AdjustSetting axis-ygrid] \ 2152 2159 -font "Arial 9" 2153 checkbutton $inner. gridz\2154 -text " Show Z Grid" \2160 checkbutton $inner.zgrid \ 2161 -text "Z" \ 2155 2162 -variable [itcl::scope _axis(zgrid)] \ 2156 2163 -command [itcl::code $this AdjustSetting axis-zgrid] \ 2164 -font "Arial 9" 2165 checkbutton $inner.minorticks \ 2166 -text "Minor Ticks" \ 2167 -variable [itcl::scope _axis(minorticks)] \ 2168 -command [itcl::code $this AdjustSetting axis-minorticks] \ 2157 2169 -font "Arial 9" 2158 2170 … … 2171 2183 2172 2184 blt::table $inner \ 2173 0,0 $inner.visible -anchor w -cspan 2 \ 2174 1,0 $inner.labels -anchor w -cspan 2 \ 2175 2,0 $inner.gridx -anchor w -cspan 2 \ 2176 3,0 $inner.gridy -anchor w -cspan 2 \ 2177 4,0 $inner.gridz -anchor w -cspan 2 \ 2178 5,0 $inner.mode_l -anchor w -cspan 2 -padx { 2 0 } \ 2179 6,0 $inner.mode -fill x -cspan 2 2185 0,0 $inner.visible -anchor w -cspan 4 \ 2186 1,0 $inner.labels -anchor w -cspan 4 \ 2187 2,0 $inner.minorticks -anchor w -cspan 4 \ 2188 4,0 $inner.grid_l -anchor w \ 2189 4,1 $inner.xgrid -anchor w \ 2190 4,2 $inner.ygrid -anchor w \ 2191 4,3 $inner.zgrid -anchor w \ 2192 5,0 $inner.mode_l -anchor w -padx { 2 0 } \ 2193 5,1 $inner.mode -fill x -cspan 3 2180 2194 2181 2195 blt::table configure $inner r* c* -resize none 2182 blt::table configure $inner r7 c1 -resize expand 2196 blt::table configure $inner r7 c6 -resize expand 2197 blt::table configure $inner r3 -height 0.125i 2183 2198 } 2184 2199
Note: See TracChangeset
for help on using the changeset viewer.