Skip to content

Commit 820ad2d

Browse files
committed
fix(tools): keep segment groups from covering rect and poly fills
1 parent 9b86b85 commit 820ad2d

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/components/vtk/VtkSegmentationSliceRepresentation.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ onVTKEvent(imageData, 'onModified', () => {
4949
// setup slice rep
5050
const sliceRep = useSliceRepresentation(view, imageData);
5151
52+
// Let widget fill representations be picked through the segment overlay
53+
sliceRep.actor.setPickable(false);
54+
5255
sliceRep.property.setRGBTransferFunction(
5356
0,
5457
vtkColorTransferFunction.newInstance()
File renamed without changes.

src/vtk/PolygonWidget/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import vtkPlanePointManipulator from '@kitware/vtk.js/Widgets/Manipulators/Plane
44
import vtkSphereHandleRepresentation from '@kitware/vtk.js/Widgets/Representations/SphereHandleRepresentation';
55
import { Behavior } from '@kitware/vtk.js/Widgets/Representations/WidgetRepresentation/Constants';
66
import vtkLineGlyphRepresentation from '@/src/vtk/LineGlyphRepresentation';
7-
import vtkPolygonFillRepresentation from '@/src/vtk/PolygonFillRepresentation';
7+
import vtkPolygonFillRepresentation from './PolygonFillRepresentation';
88

99
import widgetBehavior from './behavior';
1010
import stateGenerator, { HandlesLabel, MoveHandleLabel } from './state';

0 commit comments

Comments
 (0)