Skip to content

Commit

Permalink
fix(rcw): change style of RCW back to as it was in v25
Browse files Browse the repository at this point in the history
Remove lighting
Spin cyclinder representations to avoid cropping of the cylinder by the imageReslice
  • Loading branch information
bruyeret authored and finetjul committed Sep 26, 2023
1 parent 017f450 commit 9efcbca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/Widgets/Representations/GlyphRepresentation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ export function extend(publicAPI, model, initialValues = {}) {
defaultValues(publicAPI, model, initialValues)
);
}
if ('lighting' in initialValues) {
model._pipeline.actor.getProperty().setLighting(initialValues.lighting);
}

macro.setGet(publicAPI, model._pipeline, ['defaultScale']);
macro.get(publicAPI, model._pipeline, ['glyph', 'mapper', 'actor']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ function defaultValues(initialValues) {
_pipeline: {
glyph: vtkCylinderSource.newInstance({
resolution: initialValues.glyphResolution ?? 4,
initAngle: initialValues.glyphAngle ?? Math.PI / 4,
direction: [0, 0, 1],
}),
},
Expand Down
2 changes: 2 additions & 0 deletions Sources/Widgets/Widgets3D/ResliceCursorWidget/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ function vtkResliceCursorWidget(publicAPI, model) {
initialValues: {
useActiveColor: false,
scaleInPixels: model.scaleInPixels,
lighting: false,
},
},
{
Expand All @@ -302,6 +303,7 @@ function vtkResliceCursorWidget(publicAPI, model) {
initialValues: {
useActiveColor: false,
scaleInPixels: model.scaleInPixels,
lighting: false,
},
},
];
Expand Down

0 comments on commit 9efcbca

Please sign in to comment.