Changeset 4440 for trunk/gui


Ignore:
Timestamp:
Jun 25, 2014 8:48:03 PM (10 years ago)
Author:
ldelgass
Message:

Minor fixes for isosurface viewer

File:
1 edited

Legend:

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

    r4430 r4440  
    223223        -axesvisible                    1
    224224        -axislabelsvisible              1
    225         -background                     black
    226         -colormap                       BCGYR
    227         -colormapvisible                1
     225        -axismode                       "static"
     226        -background                     black
     227        -colormap                       BCGYR
     228        -colormapvisible                1
    228229        -cutplaneedges                  0
    229230        -cutplanelighting               1
     
    232233        -cutplanesvisible               0
    233234        -cutplanewireframe              0
    234         -field                          "Default"
    235         -isolinecolor                   white
     235        -field                          "Default"
     236        -isolinecolor                   white
    236237        -isosurfaceedges                0
    237238        -isosurfacelighting             1
     
    253254    }
    254255    array set _changed {
     256        -colormap                0
    255257        -isosurfaceopacity       0
    256         -colormap                0
    257258        -numcontours             0
    258259    }
     
    13981399        }
    13991400        "-colormap" {
    1400             set _changed(-colormap) 1
     1401            set _changed($what) 1
    14011402            StartBufferingCommands
    14021403            set color [$itk_component(colormap) value]
     
    17801781        "furthest_triad"  "farthest" \
    17811782        "outer_edges"     "outer"         
    1782     $itk_component(axisMode) value "static"
     1783    $itk_component(axisMode) value $_settings(-axismode)
    17831784    bind $inner.mode <<Value>> [itcl::code $this AdjustSetting -axismode]
    17841785
     
    21322133        set style(-opacity) 1
    21332134    }
    2134     SendCmd "cutplane add $tag"
    2135     SendCmd "cutplane visible 0 $tag"
    21362135
    21372136    # This is too complicated.  We want to set the colormap, number of
     
    21722171    set _settings(-ycutplaneposition) $style(-ycutplaneposition)
    21732172    set _settings(-zcutplaneposition) $style(-zcutplaneposition)
    2174  
    2175     SendCmd [list contour3d add contourlist $_contourList $tag]
    2176     SendCmd "contour3d edges $style(-edges) $tag"
     2173
     2174    SendCmd "cutplane add $tag"
     2175    SendCmd "cutplane visible $style(-cutplanesvisible) $tag"
     2176
    21772177    SendCmd "outline add $tag"
    21782178    SendCmd "outline color [Color2RGB $itk_option(-plotforeground)] $tag"
    21792179    SendCmd "outline visible $style(-outline) $tag"
    21802180    set _settings(-outline) $style(-outline)
     2181 
     2182    SendCmd [list contour3d add contourlist $_contourList $tag]
     2183    SendCmd "contour3d visible $style(-isosurfacevisible) $tag"
     2184    SendCmd "contour3d edges $style(-edges) $tag"
    21812185    set _settings(-isosurfaceedges) $style(-edges)
    21822186    #SendCmd "contour3d color [Color2RGB $settings(-color)] $tag"
Note: See TracChangeset for help on using the changeset viewer.