@kitware/vtk.js 23.0.1 → 23.3.0-beta.1
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.
- package/Common/Core/CellArray.d.ts +2 -2
- package/Common/Core/DataArray.d.ts +2 -2
- package/Common/Core/Endian.d.ts +3 -1
- package/Common/Core/ImageHelper.d.ts +1 -1
- package/Common/Core/LookupTable.d.ts +2 -2
- package/Common/Core/Math.d.ts +1 -1
- package/Common/Core/MatrixBuilder.d.ts +1 -1
- package/Common/Core/Points.d.ts +2 -2
- package/Common/Core/PriorityQueue.d.ts +1 -1
- package/Common/Core/ProgressHandler.d.ts +1 -1
- package/Common/Core/ScalarsToColors.d.ts +3 -3
- package/Common/Core/StringArray.d.ts +1 -1
- package/Common/Core/VariantArray.d.ts +1 -1
- package/Common/DataModel/Box.d.ts +2 -2
- package/Common/DataModel/CardinalSpline1D.d.ts +2 -2
- package/Common/DataModel/Cell.d.ts +3 -3
- package/Common/DataModel/Cone.d.ts +2 -2
- package/Common/DataModel/Cylinder.d.ts +2 -2
- package/Common/DataModel/DataSet.d.ts +2 -2
- package/Common/DataModel/DataSetAttributes/FieldData.d.ts +1 -1
- package/Common/DataModel/DataSetAttributes.d.ts +3 -3
- package/Common/DataModel/ImageData.d.ts +2 -2
- package/Common/DataModel/KochanekSpline1D.d.ts +1 -1
- package/Common/DataModel/Line.d.ts +2 -2
- package/Common/DataModel/PiecewiseFunction.d.ts +2 -2
- package/Common/DataModel/Plane.d.ts +2 -2
- package/Common/DataModel/PointSet.d.ts +3 -3
- package/Common/DataModel/PolyData.d.ts +3 -3
- package/Common/DataModel/Polygon.d.ts +2 -2
- package/Common/DataModel/SelectionNode.d.ts +2 -2
- package/Common/DataModel/Sphere.d.ts +2 -2
- package/Common/DataModel/Spline1D.d.ts +1 -1
- package/Common/DataModel/Spline3D.d.ts +1 -1
- package/Common/DataModel/Triangle.d.ts +2 -2
- package/Common/Transform/LandmarkTransform.d.ts +2 -2
- package/Filters/General/AppendPolyData.d.ts +1 -1
- package/Filters/General/ImageCropFilter.d.ts +1 -1
- package/Filters/General/ImageOutlineFilter.d.ts +1 -1
- package/Filters/General/ImageSliceFilter.d.ts +1 -1
- package/Filters/General/ImageStreamline.d.ts +3 -3
- package/Filters/General/LineFilter.d.ts +1 -1
- package/Filters/General/OutlineFilter.d.ts +1 -1
- package/Filters/General/TriangleFilter.d.ts +1 -1
- package/Filters/General/TubeFilter.d.ts +2 -2
- package/Filters/Sources/Arrow2DSource.d.ts +2 -2
- package/Filters/Sources/ArrowSource.d.ts +2 -2
- package/Filters/Sources/CircleSource.d.ts +2 -2
- package/Filters/Sources/ConeSource.d.ts +2 -2
- package/Filters/Sources/CubeSource.d.ts +2 -2
- package/Filters/Sources/Cursor3D.d.ts +3 -3
- package/Filters/Sources/CylinderSource.d.ts +2 -2
- package/Filters/Sources/LineSource.d.ts +2 -2
- package/Filters/Sources/PlaneSource.d.ts +2 -2
- package/Filters/Sources/PointSource.d.ts +2 -2
- package/Filters/Sources/SphereSource.d.ts +2 -2
- package/Filters/Texture/TextureMapToPlane.d.ts +1 -1
- package/Filters/Texture/TextureMapToSphere.d.ts +1 -1
- package/IO/Core/DataAccessHelper.d.ts +4 -4
- package/IO/Core/HttpDataSetReader.d.ts +5 -5
- package/IO/Core/HttpSceneLoader.d.ts +5 -5
- package/IO/Core/ImageStream/DefaultProtocol.d.ts +1 -1
- package/IO/Core/ImageStream/ViewStream.d.ts +4 -4
- package/IO/Core/ImageStream.d.ts +3 -3
- package/IO/Core/WSLinkClient.d.ts +1 -1
- package/IO/Geometry/DracoReader.d.ts +5 -5
- package/IO/Geometry/PLYReader.d.ts +5 -5
- package/IO/Geometry/PLYWriter.d.ts +2 -2
- package/IO/Geometry/STLReader.d.ts +5 -5
- package/IO/Geometry/STLWriter.d.ts +2 -2
- package/IO/Misc/ElevationReader.d.ts +5 -5
- package/IO/Misc/ITKImageReader.d.ts +1 -1
- package/IO/Misc/ITKPolyDataReader.d.ts +1 -1
- package/IO/Misc/JSONNucleoReader.d.ts +5 -5
- package/IO/Misc/JSONReader.d.ts +1 -1
- package/IO/Misc/MTLReader.d.ts +6 -6
- package/IO/Misc/OBJReader.d.ts +5 -5
- package/IO/Misc/PDBReader.d.ts +5 -5
- package/IO/XML/XMLImageDataReader.d.ts +1 -1
- package/IO/XML/XMLPolyDataReader.d.ts +1 -1
- package/IO/XML/XMLReader.d.ts +5 -5
- package/Imaging/Core/ImageInterpolator.js +181 -6
- package/Imaging/Core/ImageReslice.js +1 -1
- package/Interaction/Manipulators/MouseRangeManipulator.js +55 -1
- package/Interaction/Widgets/OrientationMarkerWidget.d.ts +12 -10
- package/Rendering/Core/AbstractMapper.d.ts +2 -2
- package/Rendering/Core/AbstractMapper3D.d.ts +2 -2
- package/Rendering/Core/AbstractPicker.d.ts +4 -4
- package/Rendering/Core/Actor.d.ts +4 -4
- package/Rendering/Core/Actor2D.d.ts +5 -5
- package/Rendering/Core/AnnotatedCubeActor.d.ts +1 -1
- package/Rendering/Core/AxesActor.d.ts +1 -1
- package/Rendering/Core/Camera.d.ts +2 -2
- package/Rendering/Core/CellPicker.d.ts +5 -5
- package/Rendering/Core/ColorTransferFunction.d.ts +1 -1
- package/Rendering/Core/Coordinate.d.ts +2 -2
- package/Rendering/Core/Follower.d.ts +2 -2
- package/Rendering/Core/Glyph3DMapper.d.ts +2 -2
- package/Rendering/Core/ImageMapper.d.ts +3 -3
- package/Rendering/Core/ImageProperty.d.ts +2 -2
- package/Rendering/Core/ImageSlice.d.ts +4 -4
- package/Rendering/Core/Light.d.ts +2 -2
- package/Rendering/Core/Mapper.d.ts +5 -5
- package/Rendering/Core/Mapper2D.d.ts +4 -3
- package/Rendering/Core/Picker.d.ts +5 -5
- package/Rendering/Core/PixelSpaceCallbackMapper.d.ts +2 -2
- package/Rendering/Core/PointPicker.d.ts +3 -3
- package/Rendering/Core/Prop.d.ts +5 -5
- package/Rendering/Core/Prop3D.d.ts +2 -2
- package/Rendering/Core/Property.d.ts +2 -2
- package/Rendering/Core/Property2D.d.ts +2 -2
- package/Rendering/Core/RenderWindow.d.ts +4 -4
- package/Rendering/Core/RenderWindowInteractor.d.ts +2 -2
- package/Rendering/Core/Renderer.d.ts +12 -11
- package/Rendering/Core/ScalarBarActor.d.ts +3 -3
- package/Rendering/Core/Skybox.d.ts +1 -1
- package/Rendering/Core/SphereMapper.d.ts +1 -1
- package/Rendering/Core/StickMapper.d.ts +1 -1
- package/Rendering/Core/Texture.d.ts +1 -1
- package/Rendering/Core/Viewport.d.ts +4 -4
- package/Rendering/Core/Volume.d.ts +4 -4
- package/Rendering/Core/VolumeMapper.d.ts +2 -2
- package/Rendering/Core/VolumeProperty.d.ts +1 -1
- package/Rendering/Misc/CanvasView.d.ts +2 -2
- package/Rendering/Misc/FullScreenRenderWindow.d.ts +8 -8
- package/Rendering/Misc/GenericRenderWindow.d.ts +6 -6
- package/Rendering/Misc/RemoteView.d.ts +3 -3
- package/Rendering/Misc/RenderWindowWithControlBar.d.ts +2 -2
- package/Rendering/Misc/SynchronizableRenderWindow.d.ts +4 -3
- package/Rendering/Misc/TextureLODsDownloader.d.ts +4 -4
- package/Rendering/OpenGL/ForwardPass.js +7 -3
- package/Rendering/OpenGL/Framebuffer.js +68 -11
- package/Rendering/OpenGL/ImageMapper.js +23 -4
- package/Rendering/OpenGL/OrderIndependentTranslucentPass.js +293 -0
- package/Rendering/OpenGL/PolyDataMapper.js +20 -2
- package/Rendering/OpenGL/RenderWindow.d.ts +18 -18
- package/Rendering/OpenGL/ShaderCache.js +10 -2
- package/Rendering/OpenGL/Texture.js +32 -16
- package/Rendering/OpenGL/glsl/vtkPolyDataFS.glsl.js +1 -1
- package/Rendering/SceneGraph/RenderPass.d.ts +2 -2
- package/Rendering/SceneGraph/ViewNode.d.ts +2 -2
- package/Rendering/SceneGraph/ViewNodeFactory.d.ts +1 -1
- package/Widgets/Manipulators/LineManipulator.d.ts +1 -1
- package/Widgets/Manipulators/PlaneManipulator.d.ts +1 -1
- package/Widgets/Manipulators/TrackballManipulator.d.ts +1 -1
- package/Widgets/Representations/ResliceCursorContextRepresentation.d.ts +1 -1
- package/Widgets/Representations/WidgetRepresentation.d.ts +1 -1
- package/interfaces.d.ts +4 -4
- package/macros.d.ts +1 -1
- package/package.json +1 -1
- package/types.d.ts +22 -1
- package/vtk.d.ts +7 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { vtkObject, vtkProperty } from '
|
|
2
|
-
import vtkRenderer from '
|
|
1
|
+
import { vtkObject, vtkProperty } from '../../interfaces';
|
|
2
|
+
import vtkRenderer from './Renderer';
|
|
3
3
|
|
|
4
4
|
export enum Coordinate {
|
|
5
5
|
DISPLAY,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bounds } from '
|
|
2
|
-
import vtkMapper, { IMapperInitialValues } from '
|
|
1
|
+
import { Bounds } from '../../types';
|
|
2
|
+
import vtkMapper, { IMapperInitialValues } from './Mapper';
|
|
3
3
|
|
|
4
4
|
export enum OrientationModes {
|
|
5
5
|
DIRECTION,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import vtkCamera from '
|
|
2
|
-
import vtkAbstractMapper, { IAbstractMapperInitialValues } from '
|
|
3
|
-
import { Bounds, Vector3 } from '
|
|
1
|
+
import vtkCamera from './Camera';
|
|
2
|
+
import vtkAbstractMapper, { IAbstractMapperInitialValues } from './AbstractMapper';
|
|
3
|
+
import { Bounds, Vector3 } from '../../types';
|
|
4
4
|
|
|
5
5
|
export enum SlicingMode {
|
|
6
6
|
NONE,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { vtkObject } from '
|
|
2
|
-
import vtkColorTransferFunction from '
|
|
1
|
+
import { vtkObject } from '../../interfaces';
|
|
2
|
+
import vtkColorTransferFunction from './ColorTransferFunction';
|
|
3
3
|
|
|
4
4
|
export enum InterpolationType {
|
|
5
5
|
NEAREST,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Bounds } from '
|
|
2
|
-
import vtkImageProperty from '
|
|
3
|
-
import vtkMapper from '
|
|
4
|
-
import vtkProp3D, { IProp3DInitialValues } from '
|
|
1
|
+
import { Bounds } from '../../types';
|
|
2
|
+
import vtkImageProperty from './ImageProperty';
|
|
3
|
+
import vtkMapper from './Mapper';
|
|
4
|
+
import vtkProp3D, { IProp3DInitialValues } from './Prop3D';
|
|
5
5
|
|
|
6
6
|
interface IImageSliceInitialValues extends IProp3DInitialValues{
|
|
7
7
|
mapper?: vtkMapper;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mat4 } from "gl-matrix";
|
|
2
|
-
import { vtkObject } from '
|
|
3
|
-
import { RGBColor, Vector3 } from '
|
|
2
|
+
import { vtkObject } from '../../interfaces';
|
|
3
|
+
import { RGBColor, Vector3 } from '../../types';
|
|
4
4
|
|
|
5
5
|
export enum LIGHT_TYPES {
|
|
6
6
|
'HeadLight',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bounds, Range } from '
|
|
2
|
-
import vtkAbstractMapper3D, { IAbstractMapper3DInitialValues } from '
|
|
1
|
+
import { Bounds, Nullable, Range } from '../../types';
|
|
2
|
+
import vtkAbstractMapper3D, { IAbstractMapper3DInitialValues } from './AbstractMapper3D';
|
|
3
3
|
|
|
4
4
|
export enum ColorMode {
|
|
5
5
|
DEFAULT,
|
|
@@ -151,17 +151,17 @@ export interface vtkMapper extends vtkAbstractMapper3D {
|
|
|
151
151
|
/**
|
|
152
152
|
* Get the array name to color by.
|
|
153
153
|
*/
|
|
154
|
-
getColorByArrayName(): string
|
|
154
|
+
getColorByArrayName(): Nullable<string>;
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
157
|
* Provide read access to the color texture coordinate array
|
|
158
158
|
*/
|
|
159
|
-
getColorCoordinates(): Float32Array
|
|
159
|
+
getColorCoordinates(): Nullable<Float32Array>;
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
162
|
* Provide read access to the color array.
|
|
163
163
|
*/
|
|
164
|
-
getColorMapColors(): Uint8Array
|
|
164
|
+
getColorMapColors(): Nullable<Uint8Array>;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
167
|
* Return the method of coloring scalar data.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Nullable } from '../../types';
|
|
2
|
+
import vtkAbstractMapper, { IAbstractMapperInitialValues } from './AbstractMapper';
|
|
2
3
|
|
|
3
4
|
export enum ColorMode {
|
|
4
5
|
DEFAULT,
|
|
@@ -73,12 +74,12 @@ export interface vtkMapper2D extends vtkAbstractMapper {
|
|
|
73
74
|
/**
|
|
74
75
|
* Get the array name to color by.
|
|
75
76
|
*/
|
|
76
|
-
getColorByArrayName(): string
|
|
77
|
+
getColorByArrayName(): Nullable<string>;
|
|
77
78
|
|
|
78
79
|
/**
|
|
79
80
|
* Provide read access to the color array.
|
|
80
81
|
*/
|
|
81
|
-
getColorMapColors(): Uint8Array
|
|
82
|
+
getColorMapColors(): Nullable<Uint8Array>;
|
|
82
83
|
|
|
83
84
|
/**
|
|
84
85
|
* Return the method of coloring scalar data.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Vector3 } from '
|
|
2
|
-
import vtkAbstractPicker, { IAbstractPickerInitialValues } from '
|
|
3
|
-
import vtkActor from '
|
|
4
|
-
import vtkMapper from '
|
|
5
|
-
import vtkRenderer from '
|
|
1
|
+
import { Vector3 } from '../../types';
|
|
2
|
+
import vtkAbstractPicker, { IAbstractPickerInitialValues } from './AbstractPicker';
|
|
3
|
+
import vtkActor from './Actor';
|
|
4
|
+
import vtkMapper from './Mapper';
|
|
5
|
+
import vtkRenderer from './Renderer';
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
export interface IPickerInitialValues extends IAbstractPickerInitialValues {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import vtkPicker, { IPickerInitialValues } from '
|
|
2
|
-
import vtkMapper from '
|
|
3
|
-
import { Vector3 } from '
|
|
1
|
+
import vtkPicker, { IPickerInitialValues } from './Picker';
|
|
2
|
+
import vtkMapper from './Mapper';
|
|
3
|
+
import { Vector3 } from '../../types';
|
|
4
4
|
|
|
5
5
|
interface IPointPickerInitialValues extends IPickerInitialValues {
|
|
6
6
|
pointId?: number;
|
package/Rendering/Core/Prop.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { vtkObject } from '
|
|
2
|
-
import vtkActor from '
|
|
3
|
-
import vtkActor2D from '
|
|
4
|
-
import vtkTexture from '
|
|
5
|
-
import vtkVolume from '
|
|
1
|
+
import { vtkObject } from '../../interfaces';
|
|
2
|
+
import vtkActor from './Actor';
|
|
3
|
+
import vtkActor2D from './Actor2D';
|
|
4
|
+
import vtkTexture from './Texture';
|
|
5
|
+
import vtkVolume from './Volume';
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
export interface IPropInitialValues {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mat4 } from "gl-matrix";
|
|
2
|
-
import { Bounds, Vector3, Range } from '
|
|
3
|
-
import vtkProp, { IPropInitialValues } from '
|
|
2
|
+
import { Bounds, Vector3, Range } from '../../types';
|
|
3
|
+
import vtkProp, { IPropInitialValues } from './Prop';
|
|
4
4
|
|
|
5
5
|
export interface IProp3DInitialValues extends IPropInitialValues {
|
|
6
6
|
origin?: number[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { vtkObject, vtkSubscription } from '
|
|
2
|
-
import vtkRenderer from '
|
|
3
|
-
import vtkRenderWindowInteractor from '
|
|
4
|
-
// import vtkOpenGLRenderWindow from '
|
|
1
|
+
import { vtkObject, vtkSubscription } from '../../interfaces';
|
|
2
|
+
import vtkRenderer from './Renderer';
|
|
3
|
+
import vtkRenderWindowInteractor from './RenderWindowInteractor';
|
|
4
|
+
// import vtkOpenGLRenderWindow from '../../OpenGL/RenderWindow';
|
|
5
5
|
|
|
6
6
|
export interface IRenderWindowInitialValues {
|
|
7
7
|
renderers?: vtkRenderer[],
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Bounds } from '
|
|
1
|
+
import { Bounds, Nullable } from '../../types';
|
|
2
2
|
|
|
3
|
-
import vtkCamera from '
|
|
4
|
-
import vtkLight from '
|
|
5
|
-
import vtkRenderWindow from '
|
|
6
|
-
import vtkProp3D from '
|
|
7
|
-
import vtkViewport, { IViewportInitialValues } from '
|
|
8
|
-
import vtkVolume from '
|
|
9
|
-
import vtkTexture from '
|
|
10
|
-
import vtkActor from '
|
|
3
|
+
import vtkCamera from './Camera';
|
|
4
|
+
import vtkLight from './Light';
|
|
5
|
+
import vtkRenderWindow from './RenderWindow';
|
|
6
|
+
import vtkProp3D from './Prop3D';
|
|
7
|
+
import vtkViewport, { IViewportInitialValues } from './Viewport';
|
|
8
|
+
import vtkVolume from './Volume';
|
|
9
|
+
import vtkTexture from './Texture';
|
|
10
|
+
import vtkActor from './Actor';
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
export interface IRendererInitialValues extends IViewportInitialValues {
|
|
@@ -128,6 +128,7 @@ export interface vtkRenderer extends vtkViewport {
|
|
|
128
128
|
*
|
|
129
129
|
*/
|
|
130
130
|
getClippingRangeExpansion(): number;
|
|
131
|
+
|
|
131
132
|
/**
|
|
132
133
|
*
|
|
133
134
|
* @default null
|
|
@@ -226,7 +227,7 @@ export interface vtkRenderer extends vtkViewport {
|
|
|
226
227
|
*
|
|
227
228
|
* @default null
|
|
228
229
|
*/
|
|
229
|
-
getRenderWindow(): vtkRenderWindow
|
|
230
|
+
getRenderWindow(): Nullable<vtkRenderWindow>;
|
|
230
231
|
|
|
231
232
|
/**
|
|
232
233
|
*
|
|
@@ -337,7 +338,7 @@ export interface vtkRenderer extends vtkViewport {
|
|
|
337
338
|
* Specify the camera to use for this renderer.
|
|
338
339
|
* @param {vtkCamera} camera The camera object to use.
|
|
339
340
|
*/
|
|
340
|
-
setActiveCamera(camera: vtkCamera
|
|
341
|
+
setActiveCamera(camera: vtkCamera): boolean;
|
|
341
342
|
|
|
342
343
|
/**
|
|
343
344
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import vtkScalarsToColors from '
|
|
2
|
-
import { Size, Vector2, Vector3 } from '
|
|
3
|
-
import vtkActor, { IActorInitialValues } from '
|
|
1
|
+
import vtkScalarsToColors from '../../Common/Core/ScalarsToColors';
|
|
2
|
+
import { Size, Vector2, Vector3 } from '../../types';
|
|
3
|
+
import vtkActor, { IActorInitialValues } from './Actor';
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
export interface ITextSizes {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import { vtkObject } from '
|
|
3
|
-
import { RGBColor } from '
|
|
4
|
-
import vtkActor2D from '
|
|
5
|
-
import vtkProp from '
|
|
2
|
+
import { vtkObject } from '../../interfaces';
|
|
3
|
+
import { RGBColor } from '../../types';
|
|
4
|
+
import vtkActor2D from './Actor2D';
|
|
5
|
+
import vtkProp from './Prop';
|
|
6
6
|
|
|
7
7
|
export interface IViewportInitialValues {
|
|
8
8
|
background?: RGBColor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Bounds } from '
|
|
2
|
-
import vtkProp3D, { IProp3DInitialValues } from '
|
|
3
|
-
import vtkVolumeMapper from '
|
|
4
|
-
import vtkVolumeProperty from '
|
|
1
|
+
import { Bounds } from '../../types';
|
|
2
|
+
import vtkProp3D, { IProp3DInitialValues } from './Prop3D';
|
|
3
|
+
import vtkVolumeMapper from './VolumeMapper';
|
|
4
|
+
import vtkVolumeProperty from './VolumeProperty';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bounds, Range } from '
|
|
2
|
-
import vtkAbstractMapper, { IAbstractMapperInitialValues } from '
|
|
1
|
+
import { Bounds, Range } from '../../types';
|
|
2
|
+
import vtkAbstractMapper, { IAbstractMapperInitialValues } from './AbstractMapper';
|
|
3
3
|
|
|
4
4
|
export enum BlendMode {
|
|
5
5
|
COMPOSITE_BLEND,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { vtkObject } from '
|
|
2
|
-
import { RGBColor } from '
|
|
3
|
-
import vtkRenderer from '
|
|
4
|
-
import vtkRenderWindow from '
|
|
5
|
-
import vtkRenderWindowInteractor from '
|
|
6
|
-
|
|
7
|
-
// import vtkOpenGLRenderWindow from '
|
|
8
|
-
// import vtkWebGPURenderWindow from '
|
|
1
|
+
import { vtkObject } from '../../interfaces';
|
|
2
|
+
import { RGBColor } from '../../types';
|
|
3
|
+
import vtkRenderer from '../Core/Renderer';
|
|
4
|
+
import vtkRenderWindow from '../Core/RenderWindow';
|
|
5
|
+
import vtkRenderWindowInteractor from '../Core/RenderWindowInteractor';
|
|
6
|
+
|
|
7
|
+
// import vtkOpenGLRenderWindow from '../../OpenGL/RenderWindow';
|
|
8
|
+
// import vtkWebGPURenderWindow from '../../WebGPU/RenderWindow';
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { vtkObject, vtkSubscription } from '
|
|
2
|
-
import { RGBColor } from '
|
|
3
|
-
import vtkRenderer from '
|
|
4
|
-
import vtkRenderWindow from '
|
|
5
|
-
import vtkRenderWindowInteractor from '
|
|
6
|
-
import vtkOpenGLRenderWindow from '
|
|
1
|
+
import { vtkObject, vtkSubscription } from '../../interfaces';
|
|
2
|
+
import { RGBColor } from '../../types';
|
|
3
|
+
import vtkRenderer from '../Core/Renderer';
|
|
4
|
+
import vtkRenderWindow from '../Core/RenderWindow';
|
|
5
|
+
import vtkRenderWindowInteractor from '../Core/RenderWindowInteractor';
|
|
6
|
+
import vtkOpenGLRenderWindow from '../OpenGL/RenderWindow';
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { vtkObject } from '
|
|
2
|
-
import vtkCanvasView from '
|
|
3
|
-
import vtkViewStream from '
|
|
1
|
+
import { vtkObject } from '../../interfaces';
|
|
2
|
+
import vtkCanvasView from './CanvasView';
|
|
3
|
+
import vtkViewStream from '../../IO/Core/ImageStream/ViewStream';
|
|
4
4
|
|
|
5
5
|
interface IRemoteViewInitialValues {
|
|
6
6
|
viewId?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { Placement } from '
|
|
3
|
-
import vtkGenericRenderWindow, { IGenericRenderWindowInitialValues } from '
|
|
2
|
+
import { Placement } from '../../types';
|
|
3
|
+
import vtkGenericRenderWindow, { IGenericRenderWindowInitialValues } from './GenericRenderWindow';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Nullable } from '../../types';
|
|
2
|
+
import vtkRenderWindow, { IRenderWindowInitialValues } from '../Core/RenderWindow';
|
|
2
3
|
|
|
3
4
|
// Keeps state for client / server scene synchronization.
|
|
4
5
|
export interface ISynchronizerContext {
|
|
@@ -27,8 +28,8 @@ export interface ISynchronizerContext {
|
|
|
27
28
|
|
|
28
29
|
export interface ISynchronizableRenderWindowInitialValues extends IRenderWindowInitialValues {
|
|
29
30
|
synchronizerContextName?: string; // default: 'default':
|
|
30
|
-
synchronizerContext?: ISynchronizerContext
|
|
31
|
-
synchronizedViewId?: string
|
|
31
|
+
synchronizerContext?: Nullable<ISynchronizerContext>;
|
|
32
|
+
synchronizedViewId?: Nullable<string>;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
// Server-side view state.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { vtkObject } from '
|
|
2
|
-
import { CrossOrigin } from '
|
|
3
|
-
import vtkTexture from '
|
|
1
|
+
import { vtkObject } from '../../interfaces';
|
|
2
|
+
import { CrossOrigin, Nullable } from '../../types';
|
|
3
|
+
import vtkTexture from '../Core/Texture';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
@@ -27,7 +27,7 @@ export interface vtkTextureLODsDownloader extends vtkObject {
|
|
|
27
27
|
/**
|
|
28
28
|
* Get the crossorigin attribute
|
|
29
29
|
*/
|
|
30
|
-
getCrossOrigin(): CrossOrigin
|
|
30
|
+
getCrossOrigin(): Nullable<CrossOrigin>;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Get the list of files to download
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
2
|
import vtkOpenGLFramebuffer from './Framebuffer.js';
|
|
3
3
|
import vtkRenderPass from '../SceneGraph/RenderPass.js';
|
|
4
|
+
import vtkOpenGLOrderIndependentTranslucentPass from './OrderIndependentTranslucentPass.js';
|
|
4
5
|
|
|
5
6
|
function vtkForwardPass(publicAPI, model) {
|
|
6
7
|
// Set our className
|
|
@@ -72,8 +73,11 @@ function vtkForwardPass(publicAPI, model) {
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
if (model.translucentActorCount > 0) {
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
if (!model.translucentPass) {
|
|
77
|
+
model.translucentPass = vtkOpenGLOrderIndependentTranslucentPass.newInstance();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
model.translucentPass.traverse(viewNode, renNode, publicAPI);
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
if (model.volumeCount > 0) {
|
|
@@ -136,7 +140,7 @@ function extend(publicAPI, model) {
|
|
|
136
140
|
Object.assign(model, DEFAULT_VALUES, initialValues); // Build VTK API
|
|
137
141
|
|
|
138
142
|
vtkRenderPass.extend(publicAPI, model, initialValues);
|
|
139
|
-
macro.get(publicAPI, model, ['framebuffer']); // Object methods
|
|
143
|
+
macro.get(publicAPI, model, ['framebuffer', 'opaqueActorCount', 'translucentActorCount', 'volumeCount']); // Object methods
|
|
140
144
|
|
|
141
145
|
vtkForwardPass(publicAPI, model);
|
|
142
146
|
} // ----------------------------------------------------------------------------
|