@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.
Files changed (151) hide show
  1. package/Common/Core/CellArray.d.ts +2 -2
  2. package/Common/Core/DataArray.d.ts +2 -2
  3. package/Common/Core/Endian.d.ts +3 -1
  4. package/Common/Core/ImageHelper.d.ts +1 -1
  5. package/Common/Core/LookupTable.d.ts +2 -2
  6. package/Common/Core/Math.d.ts +1 -1
  7. package/Common/Core/MatrixBuilder.d.ts +1 -1
  8. package/Common/Core/Points.d.ts +2 -2
  9. package/Common/Core/PriorityQueue.d.ts +1 -1
  10. package/Common/Core/ProgressHandler.d.ts +1 -1
  11. package/Common/Core/ScalarsToColors.d.ts +3 -3
  12. package/Common/Core/StringArray.d.ts +1 -1
  13. package/Common/Core/VariantArray.d.ts +1 -1
  14. package/Common/DataModel/Box.d.ts +2 -2
  15. package/Common/DataModel/CardinalSpline1D.d.ts +2 -2
  16. package/Common/DataModel/Cell.d.ts +3 -3
  17. package/Common/DataModel/Cone.d.ts +2 -2
  18. package/Common/DataModel/Cylinder.d.ts +2 -2
  19. package/Common/DataModel/DataSet.d.ts +2 -2
  20. package/Common/DataModel/DataSetAttributes/FieldData.d.ts +1 -1
  21. package/Common/DataModel/DataSetAttributes.d.ts +3 -3
  22. package/Common/DataModel/ImageData.d.ts +2 -2
  23. package/Common/DataModel/KochanekSpline1D.d.ts +1 -1
  24. package/Common/DataModel/Line.d.ts +2 -2
  25. package/Common/DataModel/PiecewiseFunction.d.ts +2 -2
  26. package/Common/DataModel/Plane.d.ts +2 -2
  27. package/Common/DataModel/PointSet.d.ts +3 -3
  28. package/Common/DataModel/PolyData.d.ts +3 -3
  29. package/Common/DataModel/Polygon.d.ts +2 -2
  30. package/Common/DataModel/SelectionNode.d.ts +2 -2
  31. package/Common/DataModel/Sphere.d.ts +2 -2
  32. package/Common/DataModel/Spline1D.d.ts +1 -1
  33. package/Common/DataModel/Spline3D.d.ts +1 -1
  34. package/Common/DataModel/Triangle.d.ts +2 -2
  35. package/Common/Transform/LandmarkTransform.d.ts +2 -2
  36. package/Filters/General/AppendPolyData.d.ts +1 -1
  37. package/Filters/General/ImageCropFilter.d.ts +1 -1
  38. package/Filters/General/ImageOutlineFilter.d.ts +1 -1
  39. package/Filters/General/ImageSliceFilter.d.ts +1 -1
  40. package/Filters/General/ImageStreamline.d.ts +3 -3
  41. package/Filters/General/LineFilter.d.ts +1 -1
  42. package/Filters/General/OutlineFilter.d.ts +1 -1
  43. package/Filters/General/TriangleFilter.d.ts +1 -1
  44. package/Filters/General/TubeFilter.d.ts +2 -2
  45. package/Filters/Sources/Arrow2DSource.d.ts +2 -2
  46. package/Filters/Sources/ArrowSource.d.ts +2 -2
  47. package/Filters/Sources/CircleSource.d.ts +2 -2
  48. package/Filters/Sources/ConeSource.d.ts +2 -2
  49. package/Filters/Sources/CubeSource.d.ts +2 -2
  50. package/Filters/Sources/Cursor3D.d.ts +3 -3
  51. package/Filters/Sources/CylinderSource.d.ts +2 -2
  52. package/Filters/Sources/LineSource.d.ts +2 -2
  53. package/Filters/Sources/PlaneSource.d.ts +2 -2
  54. package/Filters/Sources/PointSource.d.ts +2 -2
  55. package/Filters/Sources/SphereSource.d.ts +2 -2
  56. package/Filters/Texture/TextureMapToPlane.d.ts +1 -1
  57. package/Filters/Texture/TextureMapToSphere.d.ts +1 -1
  58. package/IO/Core/DataAccessHelper.d.ts +4 -4
  59. package/IO/Core/HttpDataSetReader.d.ts +5 -5
  60. package/IO/Core/HttpSceneLoader.d.ts +5 -5
  61. package/IO/Core/ImageStream/DefaultProtocol.d.ts +1 -1
  62. package/IO/Core/ImageStream/ViewStream.d.ts +4 -4
  63. package/IO/Core/ImageStream.d.ts +3 -3
  64. package/IO/Core/WSLinkClient.d.ts +1 -1
  65. package/IO/Geometry/DracoReader.d.ts +5 -5
  66. package/IO/Geometry/PLYReader.d.ts +5 -5
  67. package/IO/Geometry/PLYWriter.d.ts +2 -2
  68. package/IO/Geometry/STLReader.d.ts +5 -5
  69. package/IO/Geometry/STLWriter.d.ts +2 -2
  70. package/IO/Misc/ElevationReader.d.ts +5 -5
  71. package/IO/Misc/ITKImageReader.d.ts +1 -1
  72. package/IO/Misc/ITKPolyDataReader.d.ts +1 -1
  73. package/IO/Misc/JSONNucleoReader.d.ts +5 -5
  74. package/IO/Misc/JSONReader.d.ts +1 -1
  75. package/IO/Misc/MTLReader.d.ts +6 -6
  76. package/IO/Misc/OBJReader.d.ts +5 -5
  77. package/IO/Misc/PDBReader.d.ts +5 -5
  78. package/IO/XML/XMLImageDataReader.d.ts +1 -1
  79. package/IO/XML/XMLPolyDataReader.d.ts +1 -1
  80. package/IO/XML/XMLReader.d.ts +5 -5
  81. package/Imaging/Core/ImageInterpolator.js +181 -6
  82. package/Imaging/Core/ImageReslice.js +1 -1
  83. package/Interaction/Manipulators/MouseRangeManipulator.js +55 -1
  84. package/Interaction/Widgets/OrientationMarkerWidget.d.ts +12 -10
  85. package/Rendering/Core/AbstractMapper.d.ts +2 -2
  86. package/Rendering/Core/AbstractMapper3D.d.ts +2 -2
  87. package/Rendering/Core/AbstractPicker.d.ts +4 -4
  88. package/Rendering/Core/Actor.d.ts +4 -4
  89. package/Rendering/Core/Actor2D.d.ts +5 -5
  90. package/Rendering/Core/AnnotatedCubeActor.d.ts +1 -1
  91. package/Rendering/Core/AxesActor.d.ts +1 -1
  92. package/Rendering/Core/Camera.d.ts +2 -2
  93. package/Rendering/Core/CellPicker.d.ts +5 -5
  94. package/Rendering/Core/ColorTransferFunction.d.ts +1 -1
  95. package/Rendering/Core/Coordinate.d.ts +2 -2
  96. package/Rendering/Core/Follower.d.ts +2 -2
  97. package/Rendering/Core/Glyph3DMapper.d.ts +2 -2
  98. package/Rendering/Core/ImageMapper.d.ts +3 -3
  99. package/Rendering/Core/ImageProperty.d.ts +2 -2
  100. package/Rendering/Core/ImageSlice.d.ts +4 -4
  101. package/Rendering/Core/Light.d.ts +2 -2
  102. package/Rendering/Core/Mapper.d.ts +5 -5
  103. package/Rendering/Core/Mapper2D.d.ts +4 -3
  104. package/Rendering/Core/Picker.d.ts +5 -5
  105. package/Rendering/Core/PixelSpaceCallbackMapper.d.ts +2 -2
  106. package/Rendering/Core/PointPicker.d.ts +3 -3
  107. package/Rendering/Core/Prop.d.ts +5 -5
  108. package/Rendering/Core/Prop3D.d.ts +2 -2
  109. package/Rendering/Core/Property.d.ts +2 -2
  110. package/Rendering/Core/Property2D.d.ts +2 -2
  111. package/Rendering/Core/RenderWindow.d.ts +4 -4
  112. package/Rendering/Core/RenderWindowInteractor.d.ts +2 -2
  113. package/Rendering/Core/Renderer.d.ts +12 -11
  114. package/Rendering/Core/ScalarBarActor.d.ts +3 -3
  115. package/Rendering/Core/Skybox.d.ts +1 -1
  116. package/Rendering/Core/SphereMapper.d.ts +1 -1
  117. package/Rendering/Core/StickMapper.d.ts +1 -1
  118. package/Rendering/Core/Texture.d.ts +1 -1
  119. package/Rendering/Core/Viewport.d.ts +4 -4
  120. package/Rendering/Core/Volume.d.ts +4 -4
  121. package/Rendering/Core/VolumeMapper.d.ts +2 -2
  122. package/Rendering/Core/VolumeProperty.d.ts +1 -1
  123. package/Rendering/Misc/CanvasView.d.ts +2 -2
  124. package/Rendering/Misc/FullScreenRenderWindow.d.ts +8 -8
  125. package/Rendering/Misc/GenericRenderWindow.d.ts +6 -6
  126. package/Rendering/Misc/RemoteView.d.ts +3 -3
  127. package/Rendering/Misc/RenderWindowWithControlBar.d.ts +2 -2
  128. package/Rendering/Misc/SynchronizableRenderWindow.d.ts +4 -3
  129. package/Rendering/Misc/TextureLODsDownloader.d.ts +4 -4
  130. package/Rendering/OpenGL/ForwardPass.js +7 -3
  131. package/Rendering/OpenGL/Framebuffer.js +68 -11
  132. package/Rendering/OpenGL/ImageMapper.js +23 -4
  133. package/Rendering/OpenGL/OrderIndependentTranslucentPass.js +293 -0
  134. package/Rendering/OpenGL/PolyDataMapper.js +20 -2
  135. package/Rendering/OpenGL/RenderWindow.d.ts +18 -18
  136. package/Rendering/OpenGL/ShaderCache.js +10 -2
  137. package/Rendering/OpenGL/Texture.js +32 -16
  138. package/Rendering/OpenGL/glsl/vtkPolyDataFS.glsl.js +1 -1
  139. package/Rendering/SceneGraph/RenderPass.d.ts +2 -2
  140. package/Rendering/SceneGraph/ViewNode.d.ts +2 -2
  141. package/Rendering/SceneGraph/ViewNodeFactory.d.ts +1 -1
  142. package/Widgets/Manipulators/LineManipulator.d.ts +1 -1
  143. package/Widgets/Manipulators/PlaneManipulator.d.ts +1 -1
  144. package/Widgets/Manipulators/TrackballManipulator.d.ts +1 -1
  145. package/Widgets/Representations/ResliceCursorContextRepresentation.d.ts +1 -1
  146. package/Widgets/Representations/WidgetRepresentation.d.ts +1 -1
  147. package/interfaces.d.ts +4 -4
  148. package/macros.d.ts +1 -1
  149. package/package.json +1 -1
  150. package/types.d.ts +22 -1
  151. package/vtk.d.ts +7 -2
@@ -1,4 +1,4 @@
1
- import { vtkObject } from '@kitware/vtk.js/interfaces';
1
+ import { vtkObject } from '../../interfaces';
2
2
 
3
3
  export enum ColorSpace {
4
4
  RGB,
@@ -1,5 +1,5 @@
1
- import { vtkObject, vtkProperty } from '@kitware/vtk.js/interfaces';
2
- import vtkRenderer from '@kitware/vtk.js/Rendering/Core/Renderer';
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 vtkActor, { IActorInitialValues } from '@kitware/vtk.js/Rendering/Core/Actor';
2
- import vtkCamera from '@kitware/vtk.js/Rendering/Core/Camera';
1
+ import vtkActor, { IActorInitialValues } from './Actor';
2
+ import vtkCamera from './Camera';
3
3
 
4
4
  /**
5
5
  *
@@ -1,5 +1,5 @@
1
- import { Bounds } from '@kitware/vtk.js/types';
2
- import vtkMapper, { IMapperInitialValues } from '@kitware/vtk.js/Rendering/Core/Mapper';
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 '@kitware/vtk.js/Rendering/Core/Camera';
2
- import vtkAbstractMapper, { IAbstractMapperInitialValues } from '@kitware/vtk.js/Rendering/Core/AbstractMapper';
3
- import { Bounds, Vector3 } from '@kitware/vtk.js/types';
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 '@kitware/vtk.js/interfaces';
2
- import vtkColorTransferFunction from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction';
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 '@kitware/vtk.js/types';
2
- import vtkImageProperty from '@kitware/vtk.js/Rendering/Core/ImageProperty';
3
- import vtkMapper from '@kitware/vtk.js/Rendering/Core/Mapper';
4
- import vtkProp3D, { IProp3DInitialValues } from '@kitware/vtk.js/Rendering/Core/Prop3D';
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 '@kitware/vtk.js/interfaces';
3
- import { RGBColor, Vector3 } from '@kitware/vtk.js/types';
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 '@kitware/vtk.js/types';
2
- import vtkAbstractMapper3D, { IAbstractMapper3DInitialValues } from '@kitware/vtk.js/Rendering/Core/AbstractMapper3D';
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 | null;
154
+ getColorByArrayName(): Nullable<string>;
155
155
 
156
156
  /**
157
157
  * Provide read access to the color texture coordinate array
158
158
  */
159
- getColorCoordinates(): Float32Array | null;
159
+ getColorCoordinates(): Nullable<Float32Array>;
160
160
 
161
161
  /**
162
162
  * Provide read access to the color array.
163
163
  */
164
- getColorMapColors(): Uint8Array | null;
164
+ getColorMapColors(): Nullable<Uint8Array>;
165
165
 
166
166
  /**
167
167
  * Return the method of coloring scalar data.
@@ -1,4 +1,5 @@
1
- import vtkAbstractMapper, { IAbstractMapperInitialValues } from '@kitware/vtk.js/Rendering/Core/AbstractMapper';
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 | null;
77
+ getColorByArrayName(): Nullable<string>;
77
78
 
78
79
  /**
79
80
  * Provide read access to the color array.
80
81
  */
81
- getColorMapColors(): Uint8Array | null;
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 '@kitware/vtk.js/types';
2
- import vtkAbstractPicker, { IAbstractPickerInitialValues } from '@kitware/vtk.js/Rendering/Core/AbstractPicker';
3
- import vtkActor from '@kitware/vtk.js/Rendering/Core/Actor';
4
- import vtkMapper from '@kitware/vtk.js/Rendering/Core/Mapper';
5
- import vtkRenderer from '@kitware/vtk.js/Rendering/Core/Renderer';
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,5 +1,5 @@
1
- import vtkCamera from '@kitware/vtk.js/Rendering/Core/Camera';
2
- import vtkMapper, { IMapperInitialValues } from '@kitware/vtk.js/Rendering/Core/Mapper';
1
+ import vtkCamera from './Camera';
2
+ import vtkMapper, { IMapperInitialValues } from './Mapper';
3
3
 
4
4
  /**
5
5
  *
@@ -1,6 +1,6 @@
1
- import vtkPicker, { IPickerInitialValues } from '@kitware/vtk.js/Rendering/Core/Picker';
2
- import vtkMapper from '@kitware/vtk.js/Rendering/Core/Mapper';
3
- import { Vector3 } from '@kitware/vtk.js/types';
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;
@@ -1,8 +1,8 @@
1
- import { vtkObject } from '@kitware/vtk.js/interfaces';
2
- import vtkActor from '@kitware/vtk.js/Rendering/Core/Actor';
3
- import vtkActor2D from '@kitware/vtk.js/Rendering/Core/Actor2D';
4
- import vtkTexture from '@kitware/vtk.js/Rendering/Core/Texture';
5
- import vtkVolume from '@kitware/vtk.js/Rendering/Core/Volume';
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 '@kitware/vtk.js/types';
3
- import vtkProp, { IPropInitialValues } from '@kitware/vtk.js/Rendering/Core/Prop';
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,5 +1,5 @@
1
- import { vtkObject } from '@kitware/vtk.js/interfaces';
2
- import { RGBColor } from '@kitware/vtk.js/types';
1
+ import { vtkObject } from '../../interfaces';
2
+ import { RGBColor } from '../../types';
3
3
 
4
4
  export enum Shading {
5
5
  FLAT,
@@ -1,5 +1,5 @@
1
- import { vtkObject } from '@kitware/vtk.js/interfaces';
2
- import { RGBColor } from '@kitware/vtk.js/types';
1
+ import { vtkObject } from '../../interfaces';
2
+ import { RGBColor } from '../../types';
3
3
 
4
4
  interface IProperty2DInitialValues{
5
5
  color?: RGBColor;
@@ -1,7 +1,7 @@
1
- import { vtkObject, vtkSubscription } from '@kitware/vtk.js/interfaces';
2
- import vtkRenderer from '@kitware/vtk.js/Rendering/Core/Renderer';
3
- import vtkRenderWindowInteractor from '@kitware/vtk.js/Rendering/Core/RenderWindowInteractor';
4
- // import vtkOpenGLRenderWindow from '@kitware/vtk.js/OpenGL/RenderWindow';
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,5 +1,5 @@
1
- import { vtkObject } from '@kitware/vtk.js/interfaces';
2
- import vtkRenderer from '@kitware/vtk.js/Rendering/Core/Renderer';
1
+ import { vtkObject } from '../../interfaces';
2
+ import vtkRenderer from './Renderer';
3
3
 
4
4
  export enum Device {
5
5
  Unknown,
@@ -1,13 +1,13 @@
1
- import { Bounds } from '@kitware/vtk.js/types';
1
+ import { Bounds, Nullable } from '../../types';
2
2
 
3
- import vtkCamera from '@kitware/vtk.js/Rendering/Core/Camera';
4
- import vtkLight from '@kitware/vtk.js/Rendering/Core/Light';
5
- import vtkRenderWindow from '@kitware/vtk.js/Rendering/Core/RenderWindow';
6
- import vtkProp3D from '@kitware/vtk.js/Rendering/Core/Prop3D';
7
- import vtkViewport, { IViewportInitialValues } from '@kitware/vtk.js/Rendering/Core/Viewport';
8
- import vtkVolume from '@kitware/vtk.js/Rendering/Core/Volume';
9
- import vtkTexture from '@kitware/vtk.js/Rendering/Core/Texture';
10
- import vtkActor from '@kitware/vtk.js/Rendering/Core/Actor';
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 | null;
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 | null): boolean;
341
+ setActiveCamera(camera: vtkCamera): boolean;
341
342
 
342
343
  /**
343
344
  *
@@ -1,6 +1,6 @@
1
- import vtkScalarsToColors from '@kitware/vtk.js/Common/Core/ScalarsToColors';
2
- import { Size, Vector2, Vector3 } from '@kitware/vtk.js/types';
3
- import vtkActor, { IActorInitialValues } from '@kitware/vtk.js/Rendering/Core/Actor';
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,4 +1,4 @@
1
- import vtkActor, { IActorInitialValues } from '@kitware/vtk.js/Rendering/Core/Actor';
1
+ import vtkActor, { IActorInitialValues } from './Actor';
2
2
 
3
3
  export interface ISkyboxInitialValues extends IActorInitialValues {
4
4
  format?: string;
@@ -1,4 +1,4 @@
1
- import vtkMapper, { IMapperInitialValues } from '@kitware/vtk.js/Rendering/Core/Mapper';
1
+ import vtkMapper, { IMapperInitialValues } from './Mapper';
2
2
 
3
3
  export interface ISphereInitialValues extends IMapperInitialValues {
4
4
  radius?: number;
@@ -1,4 +1,4 @@
1
- import vtkMapper, { IMapperInitialValues } from '@kitware/vtk.js/Rendering/Core/Mapper';
1
+ import vtkMapper, { IMapperInitialValues } from './Mapper';
2
2
 
3
3
  interface IStickMappereInitialValues extends IMapperInitialValues{
4
4
  radius?: number;
@@ -1,4 +1,4 @@
1
- import { vtkAlgorithm } from '@kitware/vtk.js/interfaces';
1
+ import { vtkAlgorithm } from '../../interfaces';
2
2
 
3
3
  export interface ITextureInitialValues {
4
4
  repeat?: boolean;
@@ -1,8 +1,8 @@
1
1
 
2
- import { vtkObject } from '@kitware/vtk.js/interfaces';
3
- import { RGBColor } from '@kitware/vtk.js/types';
4
- import vtkActor2D from '@kitware/vtk.js/Rendering/Core/Actor2D';
5
- import vtkProp from '@kitware/vtk.js/Rendering/Core/Prop';
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 '@kitware/vtk.js/types';
2
- import vtkProp3D, { IProp3DInitialValues } from '@kitware/vtk.js/Rendering/Core/Prop3D';
3
- import vtkVolumeMapper from '@kitware/vtk.js/Rendering/Core/VolumeMapper';
4
- import vtkVolumeProperty from '@kitware/vtk.js/Rendering/Core/VolumeProperty';
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 '@kitware/vtk.js/types';
2
- import vtkAbstractMapper, { IAbstractMapperInitialValues } from '@kitware/vtk.js/Rendering/Core/AbstractMapper';
1
+ import { Bounds, Range } from '../../types';
2
+ import vtkAbstractMapper, { IAbstractMapperInitialValues } from './AbstractMapper';
3
3
 
4
4
  export enum BlendMode {
5
5
  COMPOSITE_BLEND,
@@ -1,4 +1,4 @@
1
- import { vtkObject } from '@kitware/vtk.js/interfaces';
1
+ import { vtkObject } from '../../interfaces';
2
2
 
3
3
  export enum InterpolationType {
4
4
  NEAREST,
@@ -1,5 +1,5 @@
1
- import { vtkObject } from '@kitware/vtk.js/interfaces';
2
- import { Size } from '@kitware/vtk.js/types';
1
+ import { vtkObject } from '../../interfaces';
2
+ import { Size } from '../../types';
3
3
 
4
4
 
5
5
  /**
@@ -1,11 +1,11 @@
1
- import { vtkObject } from '@kitware/vtk.js/interfaces';
2
- import { RGBColor } from '@kitware/vtk.js/types';
3
- import vtkRenderer from '@kitware/vtk.js/Rendering/Core/Renderer';
4
- import vtkRenderWindow from '@kitware/vtk.js/Rendering/Core/RenderWindow';
5
- import vtkRenderWindowInteractor from '@kitware/vtk.js/Rendering/Core/RenderWindowInteractor';
6
-
7
- // import vtkOpenGLRenderWindow from '@kitware/vtk.js/OpenGL/RenderWindow';
8
- // import vtkWebGPURenderWindow from '@kitware/vtk.js/WebGPU/RenderWindow';
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 '@kitware/vtk.js/interfaces';
2
- import { RGBColor } from '@kitware/vtk.js/types';
3
- import vtkRenderer from '@kitware/vtk.js/Rendering/Core/Renderer';
4
- import vtkRenderWindow from '@kitware/vtk.js/Rendering/Core/RenderWindow';
5
- import vtkRenderWindowInteractor from '@kitware/vtk.js/Rendering/Core/RenderWindowInteractor';
6
- import vtkOpenGLRenderWindow from '@kitware/vtk.js/Rendering/OpenGL/RenderWindow';
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 '@kitware/vtk.js/interfaces';
2
- import vtkCanvasView from '@kitware/vtk.js/Rendering/Misc/CanvasView';
3
- import vtkViewStream from '@kitware/vtk.js/IO/Core/ImageStream/ViewStream';
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 '@kitware/vtk.js/types';
3
- import vtkGenericRenderWindow, { IGenericRenderWindowInitialValues } from '@kitware/vtk.js/Rendering/Misc/GenericRenderWindow';
2
+ import { Placement } from '../../types';
3
+ import vtkGenericRenderWindow, { IGenericRenderWindowInitialValues } from './GenericRenderWindow';
4
4
 
5
5
  /**
6
6
  *
@@ -1,4 +1,5 @@
1
- import vtkRenderWindow, { IRenderWindowInitialValues } from '@kitware/vtk.js/Rendering/Core/RenderWindow';
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 | null;
31
- synchronizedViewId?: string | null;
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 '@kitware/vtk.js/interfaces';
2
- import { CrossOrigin } from '@kitware/vtk.js/types';
3
- import vtkTexture from '@kitware/vtk.js/Rendering/Core/Texture';
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 | null;
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
- publicAPI.setCurrentOperation('translucentPass');
76
- renNode.traverse(publicAPI);
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
  } // ----------------------------------------------------------------------------