Ignore:
Timestamp:
Apr 15, 2015, 12:35:36 AM (10 years ago)
Author:
ldelgass
Message:

Minor cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/vtkvolumeviewer.tcl

    r5233 r5237  
    9797    private method BuildViewTab {}
    9898    private method BuildVolumeTab {}
    99     private method DrawLegend {}
    100     private method DrawLegendOld {}
    10199    private method Combo { option }
    102100    private method Connect {}
     
    105103    private method DoResize {}
    106104    private method DoRotate {}
     105    private method DrawLegend {}
     106    private method DrawLegendOld {}
    107107    private method EnterLegend { x y }
    108108    private method EventuallyResize { w h }
     
    112112    private method GetImage { args }
    113113    private method GetVtkData { args }
    114     private method InitSettings { args  }
     114    private method InitSettings { args }
    115115    private method IsValidObject { dataobj }
    116116    private method LeaveLegend {}
     
    167167    private variable _curFldName ""
    168168    private variable _curFldLabel ""
    169     private variable _colorMode "scalar"; #  Mode of colormap (vmag or scalar)
     169    private variable _colorMode "scalar"; # Mode of colormap (vmag or scalar)
    170170    private variable _cutplaneCmd "imgcutplane"
    171171    private variable _allowMultiComponent 0
    172     private variable _activeVolumes;   # Array of volumes that are active.
    173172}
    174173
     
    10161015        SendCmd "imgflush"
    10171016        StartBufferingCommands
    1018      }
     1017    }
    10191018    set _first ""
    1020 
    1021     SendCmd "dataset visible 0"
    10221019
    10231020    # No volumes are active (i.e. in the working set of displayed volumes).
     
    10251022    # volume in the working set may be visible/invisible depending upon the
    10261023    # global visibility value.
    1027     array unset _activeVolumes
     1024    SendCmd "dataset visible 0"
    10281025    foreach dataobj [get -objects] {
    10291026        if { [info exists _obj2ovride($dataobj-raise)] &&  $_first == "" } {
     
    26432640    # reference.
    26442641
    2645     if { ![info exists _parsedFunction($cname)] || ![info exists _cname2transferFunction($cname)] } {
     2642    if { ![info exists _parsedFunction($cname)] ||
     2643         ![info exists _cname2transferFunction($cname)] } {
    26462644        array set style {
    26472645            -color BCGYR
Note: See TracChangeset for help on using the changeset viewer.