- Timestamp:
- Mar 23, 2016 12:10:41 PM (8 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkglyphviewer.tcl
r6182 r6202 328 328 set c $itk_component(view) 329 329 bind $c <Configure> [itcl::code $this EventuallyResize %w %h] 330 bind $c <KeyPress-Left> [list %W xview scroll 10 units]331 bind $c <KeyPress-Right> [list %W xview scroll -10 units]332 bind $c <KeyPress-Up> [list %W yview scroll 10 units]333 bind $c <KeyPress-Down> [list %W yview scroll -10 units]334 bind $c <Enter> "focus %W"335 330 bind $c <Control-F1> [itcl::code $this ToggleConsole] 336 331 -
trunk/gui/scripts/vtkheightmapviewer.tcl
r6147 r6202 113 113 114 114 private variable _arcball "" 115 private variable _dlist "" ;# list of data objects116 private variable _obj2ovride ;# maps dataobj => style override115 private variable _dlist ""; # list of data objects 116 private variable _obj2ovride; # maps dataobj => style override 117 117 private variable _comp2scale; # maps dataset to the heightmap scale. 118 private variable _datasets ;# contains all the dataobj-component119 ;# datasets in the server120 private variable _colormaps ;# contains all the colormaps121 ;# in the server.118 private variable _datasets; # contains all the dataobj-component 119 # datasets in the server 120 private variable _colormaps; # contains all the colormaps 121 # in the server. 122 122 123 123 # The name of the current colormap used. The colormap is global to all … … 131 131 # -stretchtofit 132 132 133 private variable _click ;# info used for rotate operations134 private variable _limits ;# Holds overall limits for all dataobjs133 private variable _click; # info used for rotate operations 134 private variable _limits; # Holds overall limits for all dataobjs 135 135 # using the viewer. 136 private variable _view ;# view params for 3D view136 private variable _view; # view params for 3D view 137 137 private variable _settings 138 138 private variable _changed 139 139 private variable _reset 1; # Connection to server has been reset. 140 140 141 private variable _first "" ;# This is the topmost dataset.141 private variable _first ""; # This is the topmost dataset. 142 142 private variable _start 0 143 143 private variable _isolines … … 153 153 private variable _curFldName "" 154 154 private variable _curFldLabel "" 155 private variable _colorMode "scalar"; # Mode of colormap (vmag or scalar)155 private variable _colorMode "scalar"; # Mode of colormap (vmag or scalar) 156 156 157 157 private common _downloadPopup; # download options from popup … … 193 193 # 194 194 $_parser alias image [itcl::code $this ReceiveImage] 195 $_parser alias legend [itcl::code $this ReceiveLegend] 195 196 $_parser alias dataset [itcl::code $this ReceiveDataset] 196 $_parser alias legend [itcl::code $this ReceiveLegend]197 197 198 198 # Create image for legend colorbar. … … 264 264 set c $itk_component(view) 265 265 bind $c <Configure> [itcl::code $this EventuallyResize %w %h] 266 bind $c <4> [itcl::code $this Zoom in 0.25]267 bind $c <5> [itcl::code $this Zoom out 0.25]268 bind $c <KeyPress-Left> [list %W xview scroll 10 units]269 bind $c <KeyPress-Right> [list %W xview scroll -10 units]270 bind $c <KeyPress-Up> [list %W yview scroll 10 units]271 bind $c <KeyPress-Down> [list %W yview scroll -10 units]272 bind $c <Enter> "focus %W"273 266 bind $c <Control-F1> [itcl::code $this ToggleConsole] 274 267 -
trunk/gui/scripts/vtkimageviewer.tcl
r6147 r6202 109 109 110 110 private variable _arcball "" 111 private variable _dlist "" ;# list of data objects112 private variable _obj2ovride ;# maps dataobj => style override113 private variable _datasets ;# contains all the dataobj-component114 ;# datasets in the server115 private variable _colormaps ;# contains all the colormaps116 ;# in the server.111 private variable _dlist ""; # list of data objects 112 private variable _obj2ovride; # maps dataobj => style override 113 private variable _datasets; # contains all the dataobj-component 114 # datasets in the server 115 private variable _colormaps; # contains all the colormaps 116 # in the server. 117 117 118 118 # The name of the current colormap used. The colormap is global to all … … 126 126 # -stretchtofit 127 127 128 private variable _click ;# info used for rotate operations129 private variable _limits ;# Holds overall limits for all dataobjs128 private variable _click; # info used for rotate operations 129 private variable _limits; # Holds overall limits for all dataobjs 130 130 # using the viewer. 131 private variable _view ;# view params for 3D view131 private variable _view; # view params for 3D view 132 132 private variable _settings 133 133 private variable _changed 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 _isolines … … 148 148 private variable _curFldName "" 149 149 private variable _curFldLabel "" 150 private variable _colorMode "scalar"; #Mode of colormap (vmag or scalar)150 private variable _colorMode "scalar"; # Mode of colormap (vmag or scalar) 151 151 152 152 private common _downloadPopup; # download options from popup … … 188 188 # 189 189 $_parser alias image [itcl::code $this ReceiveImage] 190 $_parser alias legend [itcl::code $this ReceiveLegend] 190 191 $_parser alias dataset [itcl::code $this ReceiveDataset] 191 $_parser alias legend [itcl::code $this ReceiveLegend]192 192 193 193 # Create image for legend colorbar. … … 252 252 set c $itk_component(view) 253 253 bind $c <Configure> [itcl::code $this EventuallyResize %w %h] 254 bind $c <4> [itcl::code $this Zoom in 0.25]255 bind $c <5> [itcl::code $this Zoom out 0.25]256 bind $c <KeyPress-Left> [list %W xview scroll 10 units]257 bind $c <KeyPress-Right> [list %W xview scroll -10 units]258 bind $c <KeyPress-Up> [list %W yview scroll 10 units]259 bind $c <KeyPress-Down> [list %W yview scroll -10 units]260 bind $c <Enter> "focus %W"261 254 bind $c <Control-F1> [itcl::code $this ToggleConsole] 262 255 -
trunk/gui/scripts/vtkisosurfaceviewer.tcl
r6182 r6202 340 340 set c $itk_component(view) 341 341 bind $c <Configure> [itcl::code $this EventuallyResize %w %h] 342 bind $c <KeyPress-Left> [list %W xview scroll 10 units]343 bind $c <KeyPress-Right> [list %W xview scroll -10 units]344 bind $c <KeyPress-Up> [list %W yview scroll 10 units]345 bind $c <KeyPress-Down> [list %W yview scroll -10 units]346 bind $c <Enter> "focus %W"347 342 bind $c <Control-F1> [itcl::code $this ToggleConsole] 348 343 -
trunk/gui/scripts/vtkmeshviewer.tcl
r6147 r6202 210 210 set c $itk_component(view) 211 211 bind $c <Configure> [itcl::code $this EventuallyResize %w %h] 212 bind $c <4> [itcl::code $this Zoom in 0.25]213 bind $c <5> [itcl::code $this Zoom out 0.25]214 bind $c <KeyPress-Left> [list %W xview scroll 10 units]215 bind $c <KeyPress-Right> [list %W xview scroll -10 units]216 bind $c <KeyPress-Up> [list %W yview scroll 10 units]217 bind $c <KeyPress-Down> [list %W yview scroll -10 units]218 bind $c <Enter> "focus %W"219 212 bind $c <Control-F1> [itcl::code $this ToggleConsole] 220 213 -
trunk/gui/scripts/vtkstreamlinesviewer.tcl
r6147 r6202 114 114 private variable _arcball "" 115 115 116 private variable _dlist "" ;# list of data objects117 private variable _obj2ovride ;# maps dataobj => style override118 private variable _datasets ;# contains all the dataobj-component119 ;# datasets in the server120 private variable _colormaps ;# contains all the colormaps121 ;# in the server.116 private variable _dlist ""; # list of data objects 117 private variable _obj2ovride; # maps dataobj => style override 118 private variable _datasets; # contains all the dataobj-component 119 # datasets in the server 120 private variable _colormaps; # contains all the colormaps 121 # in the server. 122 122 private variable _currentColormap "" 123 123 124 private variable _click ;# info used for rotate operations125 private variable _limits ;# autoscale min/max for all axes126 private variable _view ;# view params for 3D view124 private variable _click; # info used for rotate operations 125 private variable _limits; # autoscale min/max for all axes 126 private variable _view; # view params for 3D view 127 127 private variable _settings 128 128 private variable _reset 1; # Connection to server has been reset. 129 129 130 private variable _first "" ;# This is the topmost dataset.130 private variable _first ""; # This is the topmost dataset. 131 131 private variable _start 0 132 132 private variable _title "" … … 144 144 private variable _field "" 145 145 private variable _numSeeds 200 146 private variable _colorMode "vmag"; #Mode of colormap (vmag or scalar)146 private variable _colorMode "vmag"; # Mode of colormap (vmag or scalar) 147 147 148 148 private common _downloadPopup; # download options from popup … … 271 271 set c $itk_component(view) 272 272 bind $c <Configure> [itcl::code $this EventuallyResize %w %h] 273 bind $c <4> [itcl::code $this Zoom in 0.25]274 bind $c <5> [itcl::code $this Zoom out 0.25]275 bind $c <KeyPress-Left> [list %W xview scroll 10 units]276 bind $c <KeyPress-Right> [list %W xview scroll -10 units]277 bind $c <KeyPress-Up> [list %W yview scroll 10 units]278 bind $c <KeyPress-Down> [list %W yview scroll -10 units]279 bind $c <Enter> "focus %W"280 273 bind $c <Control-F1> [itcl::code $this ToggleConsole] 281 274 -
trunk/gui/scripts/vtksurfaceviewer.tcl
r6153 r6202 111 111 private variable _arcball "" 112 112 113 private variable _dlist "" ;# list of data objects114 private variable _obj2ovride ;# maps dataobj => style override115 private variable _datasets ;# contains all the dataobj-component116 ;# datasets in the server117 private variable _colormaps ;# contains all the colormaps118 ;# in the server.113 private variable _dlist ""; # list of data objects 114 private variable _obj2ovride; # maps dataobj => style override 115 private variable _datasets; # contains all the dataobj-component 116 # datasets in the server 117 private variable _colormaps; # contains all the colormaps 118 # in the server. 119 119 # The name of the current colormap used. The colormap is global to all 120 120 # heightmaps displayed. … … 122 122 private variable _currentNumContours -1 123 123 124 private variable _click ;# info used for rotate operations125 private variable _limits ;# autoscale min/max for all axes126 private variable _view ;# view params for 3D view124 private variable _click; # info used for rotate operations 125 private variable _limits; # autoscale min/max for all axes 126 private variable _view; # view params for 3D view 127 127 private variable _settings 128 128 private variable _changed 129 129 private variable _reset 1; # Connection to server has been reset. 130 130 131 private variable _first "" ;# This is the topmost dataset.131 private variable _first ""; # This is the topmost dataset. 132 132 private variable _start 0 133 133 private variable _title "" … … 139 139 private variable _legendPending 0 140 140 private variable _rotatePending 0 141 private variable _field 142 private variable _colorMode "scalar"; # 141 private variable _field "" 142 private variable _colorMode "scalar"; # Mode of colormap (vmag or scalar) 143 143 private variable _fields 144 144 private variable _curFldName "" … … 251 251 set c $itk_component(view) 252 252 bind $c <Configure> [itcl::code $this EventuallyResize %w %h] 253 bind $c <4> [itcl::code $this Zoom in 0.25]254 bind $c <5> [itcl::code $this Zoom out 0.25]255 bind $c <KeyPress-Left> [list %W xview scroll 10 units]256 bind $c <KeyPress-Right> [list %W xview scroll -10 units]257 bind $c <KeyPress-Up> [list %W yview scroll 10 units]258 bind $c <KeyPress-Down> [list %W yview scroll -10 units]259 bind $c <Enter> "focus %W"260 253 bind $c <Control-F1> [itcl::code $this ToggleConsole] 261 254 -
trunk/gui/scripts/vtkviewer.tcl
r6147 r6202 305 305 set c $itk_component(view) 306 306 bind $c <Configure> [itcl::code $this EventuallyResize %w %h] 307 bind $c <4> [itcl::code $this Zoom in 0.25]308 bind $c <5> [itcl::code $this Zoom out 0.25]309 bind $c <KeyPress-Left> [list %W xview scroll 10 units]310 bind $c <KeyPress-Right> [list %W xview scroll -10 units]311 bind $c <KeyPress-Up> [list %W yview scroll 10 units]312 bind $c <KeyPress-Down> [list %W yview scroll -10 units]313 bind $c <Enter> "focus %W"314 307 bind $c <Control-F1> [itcl::code $this ToggleConsole] 315 308 -
trunk/gui/scripts/vtkvolumeviewer.tcl
r6147 r6202 288 288 set c $itk_component(view) 289 289 bind $c <Configure> [itcl::code $this EventuallyResize %w %h] 290 bind $c <4> [itcl::code $this Zoom in 0.25]291 bind $c <5> [itcl::code $this Zoom out 0.25]292 bind $c <KeyPress-Left> [list %W xview scroll 10 units]293 bind $c <KeyPress-Right> [list %W xview scroll -10 units]294 bind $c <KeyPress-Up> [list %W yview scroll 10 units]295 bind $c <KeyPress-Down> [list %W yview scroll -10 units]296 bind $c <Enter> "focus %W"297 290 bind $c <Control-F1> [itcl::code $this ToggleConsole] 298 291
Note: See TracChangeset
for help on using the changeset viewer.