Skip to content

Commit 9efcbca

Browse files
bruyeretfinetjul
authored andcommitted
fix(rcw): change style of RCW back to as it was in v25
Remove lighting Spin cyclinder representations to avoid cropping of the cylinder by the imageReslice
1 parent 017f450 commit 9efcbca

File tree

3 files changed

+6
-0
lines changed
  • Sources/Widgets

3 files changed

+6
-0
lines changed

Sources/Widgets/Representations/GlyphRepresentation/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,9 @@ export function extend(publicAPI, model, initialValues = {}) {
303303
defaultValues(publicAPI, model, initialValues)
304304
);
305305
}
306+
if ('lighting' in initialValues) {
307+
model._pipeline.actor.getProperty().setLighting(initialValues.lighting);
308+
}
306309

307310
macro.setGet(publicAPI, model._pipeline, ['defaultScale']);
308311
macro.get(publicAPI, model._pipeline, ['glyph', 'mapper', 'actor']);

Sources/Widgets/Representations/LineHandleRepresentation/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ function defaultValues(initialValues) {
9696
_pipeline: {
9797
glyph: vtkCylinderSource.newInstance({
9898
resolution: initialValues.glyphResolution ?? 4,
99+
initAngle: initialValues.glyphAngle ?? Math.PI / 4,
99100
direction: [0, 0, 1],
100101
}),
101102
},

Sources/Widgets/Widgets3D/ResliceCursorWidget/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ function vtkResliceCursorWidget(publicAPI, model) {
294294
initialValues: {
295295
useActiveColor: false,
296296
scaleInPixels: model.scaleInPixels,
297+
lighting: false,
297298
},
298299
},
299300
{
@@ -302,6 +303,7 @@ function vtkResliceCursorWidget(publicAPI, model) {
302303
initialValues: {
303304
useActiveColor: false,
304305
scaleInPixels: model.scaleInPixels,
306+
lighting: false,
305307
},
306308
},
307309
];

0 commit comments

Comments
 (0)