Ignore:
Timestamp:
Sep 30, 2013 6:29:29 PM (11 years ago)
Author:
ldelgass
Message:

Allow overriding viewer for DICOM (with about.view), fixes for styles in
isosurface viewer. Also, make isosurface opaque if there is only one level
as translucency is expensive to render.

File:
1 edited

Legend:

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

    r3963 r3966  
    21172117    }
    21182118    array set style [$dataobj style $comp]
    2119     if { $dataobj != $_first } {
     2119    if { $dataobj != $_first || $style(-levels) == 1 } {
    21202120        set style(-opacity) 1
    2121     }
    2122     if { $_currentColormap == "" } {
    2123         set stylelist [$dataobj style $comp]
    2124         if { $stylelist != "" } {
    2125             array set style $stylelist
    2126             set stylelist [array get style]
    2127             SetCurrentColormap $stylelist
    2128         }
    2129         $itk_component(colormap) value $style(-color)
    21302121    }
    21312122    SendCmd "cutplane add $tag"
     
    21512142    }
    21522143    if { $_currentColormap == "" } {
     2144        SetCurrentColormap $style(-color)
    21532145        $itk_component(colormap) value $style(-color)
    21542146    }
     
    24972489    set _currentColormap $name
    24982490    SendCmd "contour3d colormap $_currentColormap"
     2491    SendCmd "cutplane colormap $_currentColormap"
    24992492}
    25002493
Note: See TracChangeset for help on using the changeset viewer.