@kitware/vtk.js 28.12.0 → 28.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,34 +2,34 @@ import { RGBColor } from './../../types';
|
|
|
2
2
|
import vtkAbstractRepresentationProxy from './../Core/AbstractRepresentationProxy';
|
|
3
3
|
|
|
4
4
|
export interface vtkGeometryRepresentationProxy
|
|
5
|
-
|
|
5
|
+
extends vtkAbstractRepresentationProxy {
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param representation a string that describes what representation to use for the explicit geometry.
|
|
10
|
+
* possible values are 'Surface with edges', 'Surface' (default), 'Wireframe',
|
|
11
|
+
* and 'Points'.
|
|
12
|
+
*/
|
|
13
|
+
setRepresentation(representation: string): boolean;
|
|
14
|
+
getRepresentation(): string;
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
// proxy property mappings
|
|
17
|
+
getColor(): RGBColor;
|
|
18
|
+
setColor(color: RGBColor): boolean;
|
|
19
19
|
getInterpolateScalarsBeforeMapping(): boolean;
|
|
20
20
|
setInterpolateScalarsBeforeMapping(interpolateScalarsBeforeMapping: boolean): boolean;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
getOpacity(): number;
|
|
22
|
+
setOpacity(opacity: number): boolean;
|
|
23
|
+
getVisibility(): boolean;
|
|
24
|
+
setVisibility(visible: boolean): boolean;
|
|
25
25
|
getPointSize(): number;
|
|
26
26
|
setPointSize(pointSize: number): boolean;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
getUseShadow(): boolean;
|
|
28
|
+
setUseShadow(lighting: boolean): boolean;
|
|
29
|
+
getUseBounds(): boolean;
|
|
30
|
+
setUseBounds(useBounds: boolean): boolean;
|
|
31
|
+
getLineWidth(): number;
|
|
32
|
+
setLineWidth(width: number): boolean;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export default vtkGeometryRepresentationProxy;
|
|
@@ -257,6 +257,9 @@ function extend(publicAPI, model) {
|
|
|
257
257
|
} else {
|
|
258
258
|
vtkHandleRepresentation.extend(publicAPI, model, defaultValues(publicAPI, model, initialValues));
|
|
259
259
|
}
|
|
260
|
+
if ('lighting' in initialValues) {
|
|
261
|
+
model._pipeline.actor.getProperty().setLighting(initialValues.lighting);
|
|
262
|
+
}
|
|
260
263
|
macro.setGet(publicAPI, model._pipeline, ['defaultScale']);
|
|
261
264
|
macro.get(publicAPI, model._pipeline, ['glyph', 'mapper', 'actor']);
|
|
262
265
|
// Expose the mixin functions to allow overwriting
|
|
@@ -178,14 +178,16 @@ function vtkResliceCursorWidget(publicAPI, model) {
|
|
|
178
178
|
labels: [`rotationIn${viewTypeToPlaneName[viewType]}`],
|
|
179
179
|
initialValues: {
|
|
180
180
|
useActiveColor: false,
|
|
181
|
-
scaleInPixels: model.scaleInPixels
|
|
181
|
+
scaleInPixels: model.scaleInPixels,
|
|
182
|
+
lighting: false
|
|
182
183
|
}
|
|
183
184
|
}, {
|
|
184
185
|
builder: vtkSphereHandleRepresentation,
|
|
185
186
|
labels: ['center'],
|
|
186
187
|
initialValues: {
|
|
187
188
|
useActiveColor: false,
|
|
188
|
-
scaleInPixels: model.scaleInPixels
|
|
189
|
+
scaleInPixels: model.scaleInPixels,
|
|
190
|
+
lighting: false
|
|
189
191
|
}
|
|
190
192
|
}];
|
|
191
193
|
case ViewTypes.DEFAULT:
|