Skip to content

vtkimageSlice has a setOpacity value of 1 #3177

Open
@ondaa

Description

@ondaa

Bug description

Hi, I'm using the 2D label map painting function.

I ran it by applying 1 to the setOpacity function of ImageSlice, and I tried to paint wideget, but I couldn't find any traces of painting. And when I applied 0.999 as the opacity value, I saw it.

Is this an issue? Example looked at the following.

https://kitware.github.io/vtk-js/examples/PaintWidget.html

Steps to reproduce

...
layerColorFun.addRGBPoint(1, 128 / 256, 174 / 256, 128 / 256);
layerPiecewiseFun.addPoint(0, 0);
layerPiecewiseFun.addPoint(1, 1.0);

layerActor.getProperty().setRGBTransferFunction(0, layerColorFun);  
layerActor.getProperty().setPiecewiseFunction(0, layerPiecewiseFun);
layerActor.getProperty().setOpacity(1); // <-- this setting

...

Detailed Behavior

No response

Expected Behavior

setOpacity(1.0) or setOpacity(1) show painting.

Environment

  • vtk.js version: 32.7.0
  • Browsers: Chrome
  • OS: Windows

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions