copper3d 3.6.13 → 3.7.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/dist/Controls/Copper3dOrbitControls.d.ts +54 -0
- package/dist/Controls/Copper3dOrbitControls.js +134 -0
- package/dist/Controls/Copper3dOrbitControls.js.map +1 -0
- package/dist/Controls/Copper3dTrackballControls.d.ts +45 -45
- package/dist/Controls/Copper3dTrackballControls.js.map +1 -1
- package/dist/Controls/copperControls.d.ts +17 -17
- package/dist/Controls/copperControls.js.map +1 -1
- package/dist/Controls/orbitFraming.d.ts +71 -0
- package/dist/Controls/orbitFraming.js +94 -0
- package/dist/Controls/orbitFraming.js.map +1 -0
- package/dist/Loader/copperDicomLoader.d.ts +13 -13
- package/dist/Loader/copperDicomLoader.js +6 -1
- package/dist/Loader/copperDicomLoader.js.map +1 -1
- package/dist/Loader/copperGltfLoader.d.ts +3 -3
- package/dist/Loader/copperNrrdLoader.d.ts +13 -13
- package/dist/Loader/copperNrrdLoader.js.map +1 -1
- package/dist/Loader/copperOBJLoader.d.ts +3 -3
- package/dist/Loader/copperRaw4DVolumeLoader.d.ts +10 -0
- package/dist/Loader/copperRaw4DVolumeLoader.js +270 -0
- package/dist/Loader/copperRaw4DVolumeLoader.js.map +1 -0
- package/dist/Loader/copperVtkLoader.d.ts +8 -8
- package/dist/Loader/copperVtkLoader.js.map +1 -1
- package/dist/Loader/mhdParser.d.ts +83 -0
- package/dist/Loader/mhdParser.js +130 -0
- package/dist/Loader/mhdParser.js.map +1 -0
- package/dist/Renderer/baseRenderer.d.ts +32 -33
- package/dist/Renderer/baseRenderer.js +1 -1
- package/dist/Renderer/baseRenderer.js.map +1 -1
- package/dist/Renderer/copperMSceneRenderer.d.ts +24 -24
- package/dist/Renderer/copperMSceneRenderer.js.map +1 -1
- package/dist/Renderer/copperRenderer.d.ts +20 -20
- package/dist/Renderer/copperRenderer.js.map +1 -1
- package/dist/Renderer/copperRendererOnDemond.d.ts +12 -12
- package/dist/Renderer/copperRendererOnDemond.js.map +1 -1
- package/dist/Scene/baseScene.d.ts +38 -38
- package/dist/Scene/baseScene.js.map +1 -1
- package/dist/Scene/commonSceneMethod.d.ts +50 -49
- package/dist/Scene/commonSceneMethod.js +4 -19
- package/dist/Scene/commonSceneMethod.js.map +1 -1
- package/dist/Scene/copperMScene.d.ts +42 -42
- package/dist/Scene/copperMScene.js +2 -15
- package/dist/Scene/copperMScene.js.map +1 -1
- package/dist/Scene/copperScene.d.ts +64 -58
- package/dist/Scene/copperScene.js +14 -2
- package/dist/Scene/copperScene.js.map +1 -1
- package/dist/Scene/copperSceneOnDemond.d.ts +13 -13
- package/dist/Scene/copperSceneOnDemond.js.map +1 -1
- package/dist/Scene/preRenderRegistry.d.ts +33 -0
- package/dist/Scene/preRenderRegistry.js +44 -0
- package/dist/Scene/preRenderRegistry.js.map +1 -0
- package/dist/Utils/MeshNodeTool.d.ts +41 -41
- package/dist/Utils/MeshNodeTool.js.map +1 -1
- package/dist/Utils/add3DLabel.d.ts +18 -18
- package/dist/Utils/add3DLabel.js.map +1 -1
- package/dist/Utils/colormapData.d.ts +9 -0
- package/dist/Utils/colormapData.js +39 -0
- package/dist/Utils/colormapData.js.map +1 -0
- package/dist/Utils/convet.d.ts +1 -1
- package/dist/Utils/convet.js.map +1 -1
- package/dist/Utils/download.d.ts +1 -1
- package/dist/Utils/download.js.map +1 -1
- package/dist/Utils/getVOILUT.d.ts +13 -13
- package/dist/Utils/getVOILUT.js.map +1 -1
- package/dist/Utils/kiwrious/configKiwrious.d.ts +4 -4
- package/dist/Utils/kiwrious/configKiwrious.js.map +1 -1
- package/dist/Utils/raycaster.d.ts +8 -8
- package/dist/Utils/raycaster.js.map +1 -1
- package/dist/Utils/segmentation/CanvasState.d.ts +31 -31
- package/dist/Utils/segmentation/CanvasState.js.map +1 -1
- package/dist/Utils/segmentation/DragOperator.d.ts +45 -45
- package/dist/Utils/segmentation/DragOperator.js.map +1 -1
- package/dist/Utils/segmentation/DrawToolCore.d.ts +168 -168
- package/dist/Utils/segmentation/DrawToolCore.js.map +1 -1
- package/dist/Utils/segmentation/NrrdTools.d.ts +334 -334
- package/dist/Utils/segmentation/NrrdTools.js +1 -1
- package/dist/Utils/segmentation/NrrdTools.js.map +1 -1
- package/dist/Utils/segmentation/RenderingUtils.d.ts +96 -96
- package/dist/Utils/segmentation/RenderingUtils.js.map +1 -1
- package/dist/Utils/segmentation/core/GaussianSmoother.d.ts +55 -55
- package/dist/Utils/segmentation/core/GaussianSmoother.js.map +1 -1
- package/dist/Utils/segmentation/core/MarchingSquares.d.ts +80 -80
- package/dist/Utils/segmentation/core/MarchingSquares.js.map +1 -1
- package/dist/Utils/segmentation/core/MaskVolume.d.ts +471 -471
- package/dist/Utils/segmentation/core/MaskVolume.js.map +1 -1
- package/dist/Utils/segmentation/core/UndoManager.d.ts +51 -51
- package/dist/Utils/segmentation/core/UndoManager.js.map +1 -1
- package/dist/Utils/segmentation/core/index.d.ts +76 -76
- package/dist/Utils/segmentation/core/types.d.ts +505 -505
- package/dist/Utils/segmentation/core/types.js +36 -36
- package/dist/Utils/segmentation/core/types.js.map +1 -1
- package/dist/Utils/segmentation/coreTools/GuiState.d.ts +22 -22
- package/dist/Utils/segmentation/coreTools/NrrdState.d.ts +25 -25
- package/dist/Utils/segmentation/coreTools/divControlTools.d.ts +19 -19
- package/dist/Utils/segmentation/coreTools/gui.d.ts +42 -42
- package/dist/Utils/segmentation/coreTools/gui.js.map +1 -1
- package/dist/Utils/segmentation/eventRouter/EventRouter.d.ts +157 -157
- package/dist/Utils/segmentation/eventRouter/EventRouter.js.map +1 -1
- package/dist/Utils/segmentation/eventRouter/index.d.ts +7 -7
- package/dist/Utils/segmentation/eventRouter/types.d.ts +71 -71
- package/dist/Utils/segmentation/tools/AiAssistTool.d.ts +249 -249
- package/dist/Utils/segmentation/tools/AiAssistTool.js.map +1 -1
- package/dist/Utils/segmentation/tools/BaseTool.d.ts +31 -31
- package/dist/Utils/segmentation/tools/ContrastTool.d.ts +23 -23
- package/dist/Utils/segmentation/tools/ContrastTool.js.map +1 -1
- package/dist/Utils/segmentation/tools/CrosshairTool.d.ts +40 -40
- package/dist/Utils/segmentation/tools/CrosshairTool.js.map +1 -1
- package/dist/Utils/segmentation/tools/DataLoader.d.ts +33 -33
- package/dist/Utils/segmentation/tools/DataLoader.js.map +1 -1
- package/dist/Utils/segmentation/tools/DragSliceTool.d.ts +33 -33
- package/dist/Utils/segmentation/tools/DragSliceTool.js.map +1 -1
- package/dist/Utils/segmentation/tools/DrawingTool.d.ts +126 -126
- package/dist/Utils/segmentation/tools/DrawingTool.js.map +1 -1
- package/dist/Utils/segmentation/tools/EraserTool.d.ts +16 -16
- package/dist/Utils/segmentation/tools/EraserTool.js.map +1 -1
- package/dist/Utils/segmentation/tools/ImageStoreHelper.d.ts +42 -42
- package/dist/Utils/segmentation/tools/ImageStoreHelper.js.map +1 -1
- package/dist/Utils/segmentation/tools/LayerChannelManager.d.ts +56 -56
- package/dist/Utils/segmentation/tools/LayerChannelManager.js.map +1 -1
- package/dist/Utils/segmentation/tools/PanTool.d.ts +47 -47
- package/dist/Utils/segmentation/tools/PanTool.js.map +1 -1
- package/dist/Utils/segmentation/tools/SliceRenderPipeline.d.ts +85 -85
- package/dist/Utils/segmentation/tools/SliceRenderPipeline.js.map +1 -1
- package/dist/Utils/segmentation/tools/SphereBrushTool.d.ts +204 -204
- package/dist/Utils/segmentation/tools/SphereBrushTool.js.map +1 -1
- package/dist/Utils/segmentation/tools/SphereTool.d.ts +249 -249
- package/dist/Utils/segmentation/tools/SphereTool.js.map +1 -1
- package/dist/Utils/segmentation/tools/ToolHost.d.ts +76 -76
- package/dist/Utils/segmentation/tools/ZoomTool.d.ts +16 -16
- package/dist/Utils/segmentation/tools/ZoomTool.js.map +1 -1
- package/dist/Utils/segmentation/tools/index.d.ts +25 -25
- package/dist/Utils/surfaceAnnotation/MeshGraph.d.ts +46 -46
- package/dist/Utils/surfaceAnnotation/MeshGraph.js.map +1 -1
- package/dist/Utils/surfaceAnnotation/SurfaceAnnotator.d.ts +213 -213
- package/dist/Utils/surfaceAnnotation/SurfaceAnnotator.js.map +1 -1
- package/dist/Utils/surfaceAnnotation/annotationStore.d.ts +32 -32
- package/dist/Utils/surfaceAnnotation/annotationStore.js.map +1 -1
- package/dist/Utils/surfaceAnnotation/contourRender.d.ts +7 -7
- package/dist/Utils/surfaceAnnotation/geodesicContour.d.ts +59 -59
- package/dist/Utils/surfaceAnnotation/geodesicContour.js.map +1 -1
- package/dist/Utils/surfaceAnnotation/index.d.ts +3 -3
- package/dist/Utils/surfaceAnnotation/pointMarkers.d.ts +16 -16
- package/dist/Utils/surfaceAnnotation/raycastSurface.d.ts +8 -8
- package/dist/Utils/surfaceAnnotation/raycastSurface.js.map +1 -1
- package/dist/Utils/surfaceAnnotation/strokeContour.d.ts +29 -29
- package/dist/Utils/surfaceAnnotation/strokeContour.js.map +1 -1
- package/dist/Utils/surfaceAnnotation/types.d.ts +47 -47
- package/dist/Utils/texture2d.d.ts +14 -12
- package/dist/Utils/texture2d.js +7 -1
- package/dist/Utils/texture2d.js.map +1 -1
- package/dist/Utils/utils.d.ts +37 -37
- package/dist/Utils/utils.js.map +1 -1
- package/dist/Utils/volumeColormap.d.ts +6 -0
- package/dist/Utils/volumeColormap.js +14 -0
- package/dist/Utils/volumeColormap.js.map +1 -0
- package/dist/Utils/volumeShader.d.ts +7 -0
- package/dist/Utils/volumeShader.js +98 -0
- package/dist/Utils/volumeShader.js.map +1 -0
- package/dist/Utils/workers/reformatSaveDataWorker.d.ts +13 -13
- package/dist/Utils/workers/reformatSaveDataWorker.js.map +1 -1
- package/dist/bundle.esm.js +64928 -43706
- package/dist/bundle.umd.js +64945 -43722
- package/dist/index.d.ts +35 -33
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/dicom_pharser_dictionary.d.ts +1 -1
- package/dist/lib/environment/index.d.ts +8 -8
- package/dist/lib/three-vignette.d.ts +11 -11
- package/dist/lib/three-vignette.js.map +1 -1
- package/dist/types/Controls/Copper3dOrbitControls.d.ts +54 -0
- package/dist/types/Controls/orbitFraming.d.ts +71 -0
- package/dist/types/Loader/copperDicomLoader.d.ts +1 -1
- package/dist/types/Loader/copperRaw4DVolumeLoader.d.ts +10 -0
- package/dist/types/Loader/mhdParser.d.ts +83 -0
- package/dist/types/Renderer/baseRenderer.d.ts +0 -1
- package/dist/types/Scene/commonSceneMethod.d.ts +1 -0
- package/dist/types/Scene/copperScene.d.ts +8 -2
- package/dist/types/Scene/preRenderRegistry.d.ts +33 -0
- package/dist/types/Utils/colormapData.d.ts +9 -0
- package/dist/types/Utils/convet.d.ts +1 -1
- package/dist/types/Utils/segmentation/core/MaskVolume.d.ts +1 -1
- package/dist/types/Utils/texture2d.d.ts +2 -0
- package/dist/types/Utils/volumeColormap.d.ts +6 -0
- package/dist/types/Utils/volumeShader.d.ts +7 -0
- package/dist/types/Utils/workers/reformatSaveDataWorker.d.ts +1 -1
- package/dist/types/index.d.ts +5 -3
- package/dist/types/types/types.d.ts +82 -2
- package/dist/types/types.d.ts +310 -230
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
import { copperRenderer } from "./Renderer/copperRenderer";
|
|
2
|
-
import { setHDRFilePath } from "./lib/environment/index";
|
|
3
|
-
import { copperScene } from "./Scene/copperScene";
|
|
4
|
-
import { CameraViewPoint } from "./Controls/copperControls";
|
|
5
|
-
import { addLabelToScene, positionType, screenPosType, convert3DPostoScreenPos, convertScreenPosto3DPos } from "./Utils/add3DLabel";
|
|
6
|
-
import { addBoxHelper, optsType } from "./Loader/copperNrrdLoader";
|
|
7
|
-
import { fullScreenListenner, loading, throttle } from "./Utils/utils";
|
|
8
|
-
import { copperRendererOnDemond } from "./Renderer/copperRendererOnDemond";
|
|
9
|
-
import { copperSceneOnDemond } from "./Scene/copperSceneOnDemond";
|
|
10
|
-
import { copperMSceneRenderer } from "./Renderer/copperMSceneRenderer";
|
|
11
|
-
import { copperMScene } from "./Scene/copperMScene";
|
|
12
|
-
import { createTexture2D_NRRD } from "./Utils/texture2d";
|
|
13
|
-
import { configKiwriousHeart } from "./Utils/kiwrious/configKiwrious";
|
|
14
|
-
import kiwrious from "./Utils/kiwrious/configKiwrious";
|
|
15
|
-
import { NrrdTools } from "./Utils/segmentation/NrrdTools";
|
|
16
|
-
import { GaussianSmoother } from "./Utils/segmentation/core/GaussianSmoother";
|
|
17
|
-
import { Copper3dTrackballControls } from "./Controls/Copper3dTrackballControls";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import
|
|
27
|
-
import {
|
|
28
|
-
import
|
|
29
|
-
import type {
|
|
30
|
-
import "./
|
|
31
|
-
|
|
32
|
-
export
|
|
33
|
-
export
|
|
1
|
+
import { copperRenderer } from "./Renderer/copperRenderer";
|
|
2
|
+
import { setHDRFilePath } from "./lib/environment/index";
|
|
3
|
+
import { copperScene } from "./Scene/copperScene";
|
|
4
|
+
import { CameraViewPoint } from "./Controls/copperControls";
|
|
5
|
+
import { addLabelToScene, positionType, screenPosType, convert3DPostoScreenPos, convertScreenPosto3DPos } from "./Utils/add3DLabel";
|
|
6
|
+
import { addBoxHelper, optsType } from "./Loader/copperNrrdLoader";
|
|
7
|
+
import { fullScreenListenner, loading, throttle } from "./Utils/utils";
|
|
8
|
+
import { copperRendererOnDemond } from "./Renderer/copperRendererOnDemond";
|
|
9
|
+
import { copperSceneOnDemond } from "./Scene/copperSceneOnDemond";
|
|
10
|
+
import { copperMSceneRenderer } from "./Renderer/copperMSceneRenderer";
|
|
11
|
+
import { copperMScene } from "./Scene/copperMScene";
|
|
12
|
+
import { createTexture2D_NRRD } from "./Utils/texture2d";
|
|
13
|
+
import { configKiwriousHeart } from "./Utils/kiwrious/configKiwrious";
|
|
14
|
+
import kiwrious from "./Utils/kiwrious/configKiwrious";
|
|
15
|
+
import { NrrdTools } from "./Utils/segmentation/NrrdTools";
|
|
16
|
+
import { GaussianSmoother } from "./Utils/segmentation/core/GaussianSmoother";
|
|
17
|
+
import { Copper3dTrackballControls } from "./Controls/Copper3dTrackballControls";
|
|
18
|
+
import { Copper3dOrbitControls } from "./Controls/Copper3dOrbitControls";
|
|
19
|
+
import { MeshNodeTool } from "./Utils/MeshNodeTool";
|
|
20
|
+
import { removeGuiFolderChilden } from "./Utils/segmentation/coreTools/gui";
|
|
21
|
+
import { SurfaceAnnotator } from "./Utils/surfaceAnnotation";
|
|
22
|
+
import type { SurfaceAnnotatorOptions, Annotation, AnnotationMode, ExportOptions } from "./Utils/surfaceAnnotation";
|
|
23
|
+
import { nrrdMeshesType, nrrdSliceType, SensorDecodedValue_kiwrious, SensorReadResult_kiwrious, HeartRateResult_kiwrious, loadingBarType, exportPaintImageType, IOptVTKLoader, aligned4DSurfaceType, aligned4DOptsType, Aligned4DController, raw4DVolumeTransformType, raw4DVolumeOptsType, Raw4DVolumeController } from "./types/types";
|
|
24
|
+
import { IPaintImage, ICommXYZ, IGUIStates, IGuiParameterSettings, INrrdStates, IGuiMeta } from "./Utils/segmentation/core/types";
|
|
25
|
+
import { NrrdState } from "./Utils/segmentation/coreTools/NrrdState";
|
|
26
|
+
import { GuiState } from "./Utils/segmentation/coreTools/GuiState";
|
|
27
|
+
import type { ToolMode, IAnnotationCallbacks } from "./Utils/segmentation/core/types";
|
|
28
|
+
import { CHANNEL_COLORS, CHANNEL_HEX_COLORS, AI_MASK_CHANNEL_COLORS, AI_CHANNEL_HEX_COLORS, rgbaToHex, rgbaToCss } from "./Utils/segmentation/core/index";
|
|
29
|
+
import type { LayerId, ChannelValue } from "./Utils/segmentation/core/index";
|
|
30
|
+
import type { AiPromptTool, AiPromptPoint, AiPromptPayload, AiMaskResult } from "./Utils/segmentation/tools/AiAssistTool";
|
|
31
|
+
import "./css/style.css";
|
|
32
|
+
export declare const REVISION: string;
|
|
33
|
+
export { copperRenderer, copperRendererOnDemond, copperMSceneRenderer, setHDRFilePath, addLabelToScene, convert3DPostoScreenPos, convertScreenPosto3DPos, addBoxHelper, fullScreenListenner, configKiwriousHeart, copperScene, copperSceneOnDemond, copperMScene, CameraViewPoint, kiwrious, NrrdTools, loading, Copper3dTrackballControls, Copper3dOrbitControls, createTexture2D_NRRD, MeshNodeTool, throttle, removeGuiFolderChilden, CHANNEL_COLORS, CHANNEL_HEX_COLORS, AI_MASK_CHANNEL_COLORS, AI_CHANNEL_HEX_COLORS, rgbaToHex, rgbaToCss, GaussianSmoother, SurfaceAnnotator, };
|
|
34
|
+
export type { positionType, screenPosType, optsType, nrrdMeshesType, nrrdSliceType, SensorDecodedValue_kiwrious, SensorReadResult_kiwrious, HeartRateResult_kiwrious, loadingBarType, IPaintImage, exportPaintImageType, IOptVTKLoader, aligned4DSurfaceType, aligned4DOptsType, Aligned4DController, raw4DVolumeTransformType, raw4DVolumeOptsType, Raw4DVolumeController, ICommXYZ, IGUIStates, IGuiParameterSettings, INrrdStates, NrrdState, GuiState, IGuiMeta, ToolMode, IAnnotationCallbacks, LayerId, ChannelValue, AiPromptTool, AiPromptPoint, AiPromptPayload, AiMaskResult, SurfaceAnnotatorOptions, Annotation, AnnotationMode, ExportOptions, };
|
|
35
|
+
export type { CameraViewPreset } from "./Controls/orbitFraming";
|
package/dist/index.js
CHANGED
|
@@ -17,6 +17,7 @@ import { NrrdTools } from "./Utils/segmentation/NrrdTools";
|
|
|
17
17
|
import { GaussianSmoother } from "./Utils/segmentation/core/GaussianSmoother";
|
|
18
18
|
// Phase 7: Segmentation Module - Unified exports
|
|
19
19
|
import { Copper3dTrackballControls } from "./Controls/Copper3dTrackballControls";
|
|
20
|
+
import { Copper3dOrbitControls } from "./Controls/Copper3dOrbitControls";
|
|
20
21
|
import { MeshNodeTool } from "./Utils/MeshNodeTool";
|
|
21
22
|
import { removeGuiFolderChilden } from "./Utils/segmentation/coreTools/gui";
|
|
22
23
|
import { SurfaceAnnotator } from "./Utils/surfaceAnnotation";
|
|
@@ -40,5 +41,5 @@ if (typeof window !== "undefined") {
|
|
|
40
41
|
if (typeof console !== "undefined") {
|
|
41
42
|
console.log(`%cCopper3D Visualisation %c${REVISION}`, "padding: 3px;color:white; background:#023047", "padding: 3px;color:white; background:#f50a25");
|
|
42
43
|
}
|
|
43
|
-
export { copperRenderer, copperRendererOnDemond, copperMSceneRenderer, setHDRFilePath, addLabelToScene, convert3DPostoScreenPos, convertScreenPosto3DPos, addBoxHelper, fullScreenListenner, configKiwriousHeart, copperScene, copperSceneOnDemond, copperMScene, CameraViewPoint, kiwrious, NrrdTools, loading, Copper3dTrackballControls, createTexture2D_NRRD, MeshNodeTool, throttle, removeGuiFolderChilden, CHANNEL_COLORS, CHANNEL_HEX_COLORS, AI_MASK_CHANNEL_COLORS, AI_CHANNEL_HEX_COLORS, rgbaToHex, rgbaToCss, GaussianSmoother, SurfaceAnnotator, };
|
|
44
|
+
export { copperRenderer, copperRendererOnDemond, copperMSceneRenderer, setHDRFilePath, addLabelToScene, convert3DPostoScreenPos, convertScreenPosto3DPos, addBoxHelper, fullScreenListenner, configKiwriousHeart, copperScene, copperSceneOnDemond, copperMScene, CameraViewPoint, kiwrious, NrrdTools, loading, Copper3dTrackballControls, Copper3dOrbitControls, createTexture2D_NRRD, MeshNodeTool, throttle, removeGuiFolderChilden, CHANNEL_COLORS, CHANNEL_HEX_COLORS, AI_MASK_CHANNEL_COLORS, AI_CHANNEL_HEX_COLORS, rgbaToHex, rgbaToCss, GaussianSmoother, SurfaceAnnotator, };
|
|
44
45
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO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M,CAAC,MAAM,QAAQ,GAAG,SAAS,CAAC;AAElC,8GAA8G;AAC9G,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;IACjC,MAAc,CAAC,oBAAoB,GAAG,QAAQ,CAAC;AAClD,CAAC;AAED,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE,CAAC;IACnC,OAAO,CAAC,GAAG,CACT,8BAA8B,QAAQ,EAAE,EACxC,8CAA8C,EAC9C,8CAA8C,CAC/C,CAAC;AACJ,CAAC;AAED,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,oBAAoB,EACpB,cAAc,EACd,eAAe,EACf,uBAAuB,EACvB,uBAAuB,EACvB,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,SAAS,EACT,OAAO,EACP,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,EACpB,YAAY,EACZ,QAAQ,EACR,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,gBAAgB,GACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare var TAG_DICT: any;
|
|
1
|
+
export declare var TAG_DICT: any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type environmentType = {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
path: string | null;
|
|
5
|
-
format: string;
|
|
6
|
-
};
|
|
7
|
-
export declare function setHDRFilePath(url: string): void;
|
|
8
|
-
export declare const environments: Array<environmentType>;
|
|
1
|
+
export type environmentType = {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
path: string | null;
|
|
5
|
+
format: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function setHDRFilePath(url: string): void;
|
|
8
|
+
export declare const environments: Array<environmentType>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Mesh, RawShaderMaterial } from "three";
|
|
2
|
-
interface optType {
|
|
3
|
-
[key: string]: any;
|
|
4
|
-
}
|
|
5
|
-
interface customMeshType {
|
|
6
|
-
mesh: Mesh<any, RawShaderMaterial>;
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
}
|
|
9
|
-
declare function createBackground(opt?: optType): customMeshType;
|
|
10
|
-
export { createBackground };
|
|
11
|
-
export type { customMeshType };
|
|
1
|
+
import { Mesh, RawShaderMaterial } from "three";
|
|
2
|
+
interface optType {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}
|
|
5
|
+
interface customMeshType {
|
|
6
|
+
mesh: Mesh<any, RawShaderMaterial>;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
declare function createBackground(opt?: optType): customMeshType;
|
|
10
|
+
export { createBackground };
|
|
11
|
+
export type { customMeshType };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"three-vignette.js","sourceRoot":"","sources":["../../src/lib/three-vignette.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,UAAU,EACV,IAAI,EACJ,aAAa,EACb,iBAAiB,EACjB,OAAO,GACR,MAAM,OAAO,CAAC;AAEf,+EAA+E;AAC/E,4FAA4F;AAC5F,2FAA2F;AAC3F,sFAAsF;AACtF,0FAA0F;AAC1F,wCAAwC;AACxC,OAAO,IAAI,MAAM,2BAA2B,CAAC;AAC7C,OAAO,IAAI,MAAM,2BAA2B,CAAC;AAU7C,SAAS,gBAAgB,CAAC,GAAa;IACrC,GAAG,GAAG,GAAG,IAAI,EAAE,CAAC;IAChB,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,IAAI,IAAI,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1D,IAAI,QAAQ,GAAG,IAAI,iBAAiB,CAAC;QACnC,YAAY,EAAE,IAAI;QAClB,cAAc,EAAE,IAAI;QACpB,IAAI,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AQ,CAAC,gBAAgB,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAC3E,CAAC;IACH,CAAC,CAAC;IACF,SAAS,SAAS,CAAC,KAAY;QAC7B,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,OAAO,IAAI,OAAO,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxC,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,GAAG,EAAE,CAAC;QACR,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxB,CAAC;SAAM,CAAC;QACN,UAAU,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrbitControls with medical-viewer defaults, a stable model-centre orbit pivot,
|
|
3
|
+
* per-view pole refresh, and auto-framing.
|
|
4
|
+
*
|
|
5
|
+
* Drop-in swappable with Copper3dTrackballControls: same new X(camera, domElement)
|
|
6
|
+
* signature and the same core surface (update / dispose / reset / target /
|
|
7
|
+
* mouseButtons / enabled, inherited from OrbitControls), plus setPivot / frameBox /
|
|
8
|
+
* applyView for the medical features.
|
|
9
|
+
*
|
|
10
|
+
* Seam: copperScene.render() calls controls.update() every frame, so assigning an
|
|
11
|
+
* instance to copperScene.controls lets copper's own loop drive it — no extra rAF loop.
|
|
12
|
+
*
|
|
13
|
+
* Never drive the camera via copperScene.loadView(): it unconditionally touches
|
|
14
|
+
* controls.up0, which OrbitControls does not have. applyView() replaces it.
|
|
15
|
+
*/
|
|
16
|
+
import * as THREE from 'three';
|
|
17
|
+
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
|
|
18
|
+
import { type CameraViewPreset } from './orbitFraming';
|
|
19
|
+
export declare class Copper3dOrbitControls extends OrbitControls {
|
|
20
|
+
private _pivot;
|
|
21
|
+
private _dist;
|
|
22
|
+
private _currentPreset;
|
|
23
|
+
private readonly _onStart;
|
|
24
|
+
constructor(camera: THREE.PerspectiveCamera | THREE.OrthographicCamera, domElement: HTMLElement);
|
|
25
|
+
/** The point rotation orbits; a rotate gesture snaps target back to it. */
|
|
26
|
+
setPivot(pivot: THREE.Vector3): void;
|
|
27
|
+
/**
|
|
28
|
+
* Frame a bounding box: pivot = box centre, auto distance from box size and the
|
|
29
|
+
* camera's fov, min/max zoom limits, then re-apply the current view so near/far are
|
|
30
|
+
* recomputed for the new size. The caller supplies the box (e.g. the union of the
|
|
31
|
+
* three orthogonal NRRD slice planes) so this class stays engine-agnostic.
|
|
32
|
+
*
|
|
33
|
+
* Perspective cameras only: auto-framing derives the distance from the vertical fov,
|
|
34
|
+
* which an OrthographicCamera does not have. Rather than silently produce a NaN camera
|
|
35
|
+
* position (model vanishes), we warn and skip for a non-perspective camera.
|
|
36
|
+
*/
|
|
37
|
+
frameBox(box: THREE.Box3): void;
|
|
38
|
+
/**
|
|
39
|
+
* Apply a view preset. Equivalent to copperScene.loadView but never touches up0.
|
|
40
|
+
* Authoritative + idempotent: saveState() at the end makes reset() mean "back to this
|
|
41
|
+
* view's initial framing".
|
|
42
|
+
*/
|
|
43
|
+
applyView(preset: CameraViewPreset): void;
|
|
44
|
+
dispose(): void;
|
|
45
|
+
/**
|
|
46
|
+
* Rewrite OrbitControls' cached orbit-pole quaternion from the given up.
|
|
47
|
+
*
|
|
48
|
+
* r170 caches _quat once in the constructor from object.up and never recomputes it in
|
|
49
|
+
* update() (OrbitControls.js:132 sets it; :299/:388 only consume it), so after a view
|
|
50
|
+
* change the pole would be stale. Writing these private fields is acceptable: three is
|
|
51
|
+
* version-pinned to 0.170.0.
|
|
52
|
+
*/
|
|
53
|
+
private refreshPole;
|
|
54
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure camera-framing math for the right panel's OrbitControls.
|
|
3
|
+
*
|
|
4
|
+
* Deliberately free of DOM / copperScene / OrbitControls: every mistake here shows
|
|
5
|
+
* up only as "rotation feels wrong" and never throws, so it must be unit-tested.
|
|
6
|
+
* The wiring lives in Copper3dOrbitControls.ts.
|
|
7
|
+
*/
|
|
8
|
+
import * as THREE from 'three';
|
|
9
|
+
/** Shape of src/assets/nrrd_view*.json. */
|
|
10
|
+
export interface CameraViewPreset {
|
|
11
|
+
farPlane: number;
|
|
12
|
+
nearPlane: number;
|
|
13
|
+
eyePosition: number[];
|
|
14
|
+
targetPosition: number[];
|
|
15
|
+
upVector: number[];
|
|
16
|
+
}
|
|
17
|
+
export interface Framing {
|
|
18
|
+
/** Rotation pivot = bounding-box centre (decision C4). */
|
|
19
|
+
pivot: THREE.Vector3;
|
|
20
|
+
/** Bounding-box diagonal length; view-independent, shared by all three presets. */
|
|
21
|
+
size: number;
|
|
22
|
+
/** Camera-to-pivot distance (decision C5 auto-framing). */
|
|
23
|
+
dist: number;
|
|
24
|
+
}
|
|
25
|
+
export interface ViewPose {
|
|
26
|
+
position: THREE.Vector3;
|
|
27
|
+
up: THREE.Vector3;
|
|
28
|
+
target: THREE.Vector3;
|
|
29
|
+
}
|
|
30
|
+
/** Leave ~30% margin so the model does not touch the panel edge while pan/rotating. */
|
|
31
|
+
export declare const FRAMING_MARGIN = 1.3;
|
|
32
|
+
/**
|
|
33
|
+
* Whether this gesture is a pure rotate. Used to decide whether to snap the rotation
|
|
34
|
+
* pivot back to the model centre: OrbitControls' pan moves target with the camera, so
|
|
35
|
+
* after a pan target is off the model and a rotate would orbit an empty point. We snap
|
|
36
|
+
* target back on rotate start, but must NOT on pan/dolly (or the model jumps at pan start).
|
|
37
|
+
*
|
|
38
|
+
* Picking the wrong state constant is a silent bug (rotate not re-pivoting, or pan wrongly
|
|
39
|
+
* re-pivoting), so it is unit-tested.
|
|
40
|
+
*/
|
|
41
|
+
export declare function isRotateGesture(state: number): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Bounding box -> pivot + size + framing distance.
|
|
44
|
+
*
|
|
45
|
+
* fovDeg is read from the camera by the caller at runtime (copper3d uses 75); it is
|
|
46
|
+
* not hardcoded here.
|
|
47
|
+
*/
|
|
48
|
+
export declare function computeFraming(box: THREE.Box3, fovDeg: number): Framing;
|
|
49
|
+
/**
|
|
50
|
+
* Preset + pivot + distance -> camera pose.
|
|
51
|
+
*
|
|
52
|
+
* The preset's eyePosition is absolute; only its DIRECTION is taken here, and the
|
|
53
|
+
* distance comes from C5 auto-framing (the implicit 600 in the JSON is ignored).
|
|
54
|
+
*
|
|
55
|
+
* up must be Gram-Schmidt-orthogonalised against the view direction (decision D1):
|
|
56
|
+
* OrbitControls uses camera.up as its polar axis, and nrrd_view_coronal.json's up
|
|
57
|
+
* (0,1,-1) is not perpendicular to its own view direction (0,1,0) — feeding it raw
|
|
58
|
+
* gives a 45-degree-tilted pole. The old trackball path got away with it only because
|
|
59
|
+
* three's lookAt() orthogonalises internally.
|
|
60
|
+
*/
|
|
61
|
+
export declare function resolveViewPose(preset: CameraViewPreset, pivot: THREE.Vector3, dist: number): ViewPose;
|
|
62
|
+
/**
|
|
63
|
+
* Far clipping plane (decision D2).
|
|
64
|
+
*
|
|
65
|
+
* The preset's farPlane is 1000, but a large volume's maxDistance (= size*5) can
|
|
66
|
+
* exceed it, which would clip the model when the user zooms all the way out.
|
|
67
|
+
*
|
|
68
|
+
* The Number.isFinite guard is required: right after construction and before the first
|
|
69
|
+
* frameBox, OrbitControls' maxDistance is still the default Infinity.
|
|
70
|
+
*/
|
|
71
|
+
export declare function resolveFarPlane(presetFar: number, maxDistance: number, dist: number): number;
|
|
@@ -9,5 +9,5 @@ export declare function computeImagePlaneCorners(ipp: number[], iop: number[], s
|
|
|
9
9
|
export declare function getLut(data: Uint16Array, windowWidth: number, windowCenter: number, invert: boolean, voiLUT: any): {
|
|
10
10
|
minPixelValue: number;
|
|
11
11
|
maxPixelValue: number;
|
|
12
|
-
lutArray: Uint8ClampedArray
|
|
12
|
+
lutArray: Uint8ClampedArray<ArrayBuffer>;
|
|
13
13
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { raw4DVolumeOptsType, Raw4DVolumeController } from "../types/types";
|
|
3
|
+
/**
|
|
4
|
+
* Load a 4D volume sequence (one .mhd/.raw pair per cardiac phase) and add it to `scene`
|
|
5
|
+
* as a raycast volume.
|
|
6
|
+
*
|
|
7
|
+
* The returned controller runs NO clock of its own — drive it with setFrame()/setPhase()
|
|
8
|
+
* so it can share a cardiac-phase clock with other modalities.
|
|
9
|
+
*/
|
|
10
|
+
export declare function loadRaw4DVolume(mhdUrls: Array<string>, scene: THREE.Scene, opts?: raw4DVolumeOptsType, callback?: (ctrl: Raw4DVolumeController) => void): void;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal MetaImage (.mhd) header parser.
|
|
3
|
+
*
|
|
4
|
+
* Deliberately dependency-free (no three.js) so it can run under
|
|
5
|
+
* `node --experimental-strip-types --test`.
|
|
6
|
+
*
|
|
7
|
+
* Only the subset the 4D ultrasound data uses is supported: 3D, uncompressed,
|
|
8
|
+
* uint8. Anything else throws rather than silently mis-rendering.
|
|
9
|
+
*/
|
|
10
|
+
export type Matrix3x3 = [number, number, number, number, number, number, number, number, number];
|
|
11
|
+
/** Row-major identity — the value MetaImage writes when it has no real orientation. */
|
|
12
|
+
export declare const IDENTITY_MATRIX: Matrix3x3;
|
|
13
|
+
export interface MhdHeader {
|
|
14
|
+
/** DimSize — x is the fastest-varying axis. e.g. [189, 189, 134] */
|
|
15
|
+
dims: [number, number, number];
|
|
16
|
+
/** ElementSpacing in mm. e.g. [1, 1, 1] */
|
|
17
|
+
spacing: [number, number, number];
|
|
18
|
+
/** ElementType, always "MET_UCHAR" here. */
|
|
19
|
+
elementType: string;
|
|
20
|
+
/** CompressedData — always false here (true is rejected). */
|
|
21
|
+
compressed: boolean;
|
|
22
|
+
/** ElementDataFile, relative to the .mhd. e.g. "DZET01_17871377_000.raw" */
|
|
23
|
+
elementDataFile: string;
|
|
24
|
+
/** Offset — world coordinates of voxel (0,0,0). Defaults to the origin. */
|
|
25
|
+
offset: [number, number, number];
|
|
26
|
+
/** TransformMatrix — row-major direction cosines. Defaults to the identity. */
|
|
27
|
+
transformMatrix: Matrix3x3;
|
|
28
|
+
/** AnatomicalOrientation, e.g. "RAI". `null` when absent. */
|
|
29
|
+
anatomicalOrientation: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* MetaImage has no standard way to assert "this is the same world frame as that MRI".
|
|
32
|
+
* DICOM does — FrameOfReferenceUID (0020,0052). MetaImage readers ignore unknown keys,
|
|
33
|
+
* so a producer can carry the UID across as a custom line. `null` when absent.
|
|
34
|
+
*/
|
|
35
|
+
frameOfReferenceUID: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* True when Offset or TransformMatrix carry real values, i.e. the header actually places
|
|
38
|
+
* the volume somewhere. A zero offset with an identity matrix is ambiguous — it may mean
|
|
39
|
+
* "at the origin, unrotated" or "nobody filled this in" — and is treated as the latter,
|
|
40
|
+
* because silently trusting it is the dangerous failure mode.
|
|
41
|
+
*/
|
|
42
|
+
hasPose: boolean;
|
|
43
|
+
/** True when ElementSpacing is not the placeholder 1 1 1, i.e. real physical voxel size. */
|
|
44
|
+
hasRealSpacing: boolean;
|
|
45
|
+
}
|
|
46
|
+
export declare function parseMhdHeader(text: string): MhdHeader;
|
|
47
|
+
export type RegistrationReason = "no-pose" | "frame-missing" | "frame-mismatch" | "unverified" | "verified";
|
|
48
|
+
export interface RegistrationDecision {
|
|
49
|
+
/** Honour the header's placement? */
|
|
50
|
+
registered: boolean;
|
|
51
|
+
/** Did a FrameOfReferenceUID actually prove the shared world frame? */
|
|
52
|
+
frameVerified: boolean;
|
|
53
|
+
reason: RegistrationReason;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Decide whether a header's pose may be trusted.
|
|
57
|
+
*
|
|
58
|
+
* Two independent things must hold, and the second is the one people forget:
|
|
59
|
+
*
|
|
60
|
+
* 1. the header must actually carry a pose (`hasPose`), and
|
|
61
|
+
* 2. that pose must be expressed in the SAME world frame as the scene.
|
|
62
|
+
*
|
|
63
|
+
* DICOM proves (2) with FrameOfReferenceUID. MetaImage has no such field, so a producer must
|
|
64
|
+
* carry the UID across as a custom line. When the caller names the scene's frame and the file
|
|
65
|
+
* cannot match it, the pose is refused — a pose in another scanner's coordinate system is
|
|
66
|
+
* worse than no pose at all, because it looks authoritative while being wrong.
|
|
67
|
+
*
|
|
68
|
+
* When the caller names no frame, a pose is honoured but reported as `unverified`: nobody
|
|
69
|
+
* checked, and the UI should not claim otherwise.
|
|
70
|
+
*/
|
|
71
|
+
export declare function resolveRegistration(header: MhdHeader, expectedFrameOfReferenceUID?: string | null): RegistrationDecision;
|
|
72
|
+
/**
|
|
73
|
+
* voxel index -> world, as a column-major 4x4 (three.js `Matrix4.elements` order).
|
|
74
|
+
*
|
|
75
|
+
* ITK/MetaImage convention: `world = Offset + D · (Spacing ∘ index)`, with `D` the
|
|
76
|
+
* row-major direction matrix from TransformMatrix.
|
|
77
|
+
*
|
|
78
|
+
* Only meaningful when `header.hasPose` — otherwise this is the identity scaled by
|
|
79
|
+
* spacing, which places the volume at the world origin and means nothing.
|
|
80
|
+
*/
|
|
81
|
+
export declare function voxelToWorldMatrix(header: MhdHeader): number[];
|
|
82
|
+
/** Number of voxels implied by the header — equals the .raw byte length for uint8. */
|
|
83
|
+
export declare function voxelCount(header: MhdHeader): number;
|
|
@@ -28,6 +28,7 @@ export declare class commonScene {
|
|
|
28
28
|
addObject(obj: any): void;
|
|
29
29
|
setDepth(value: number): void;
|
|
30
30
|
setDicomFilesOrder(value: "ascending" | "descending"): void;
|
|
31
|
+
/** Registers a per-frame callback and returns its id, for removePreRenderCallbackFunction. */
|
|
31
32
|
addPreRenderCallbackFunction(callbackFunction: Function): number;
|
|
32
33
|
removePreRenderCallbackFunction(id: number): void;
|
|
33
34
|
pickModel(content: THREE.Group, callback: (selectMesh: THREE.Mesh | undefined) => void, options?: string[]): void;
|
|
@@ -5,7 +5,7 @@ import { OrbitControls } from "three/examples/jsm/controls/OrbitControls";
|
|
|
5
5
|
import { baseScene } from "./baseScene";
|
|
6
6
|
import { vtkModels } from "../types/types";
|
|
7
7
|
import { TrackballControls } from "three/examples/jsm/controls/TrackballControls";
|
|
8
|
-
import { ICopperSceneOpts, aligned4DOptsType, Aligned4DController } from "../types/types";
|
|
8
|
+
import { ICopperSceneOpts, aligned4DOptsType, Aligned4DController, raw4DVolumeOptsType, Raw4DVolumeController } from "../types/types";
|
|
9
9
|
import { SurfaceAnnotator } from "../Utils/surfaceAnnotation";
|
|
10
10
|
import type { SurfaceAnnotatorOptions } from "../Utils/surfaceAnnotation";
|
|
11
11
|
export declare class copperScene extends baseScene {
|
|
@@ -40,6 +40,12 @@ export declare class copperScene extends baseScene {
|
|
|
40
40
|
* advance together off ONE shared frame clock. Returns a controller (play/pause/...).
|
|
41
41
|
*/
|
|
42
42
|
loadAligned4D(opts: aligned4DOptsType, callback?: (ctrl: Aligned4DController) => void): void;
|
|
43
|
+
/**
|
|
44
|
+
* Load a 4D volume sequence (.mhd/.raw per cardiac phase) and render it as a raycast
|
|
45
|
+
* volume. The returned controller runs no clock of its own — drive it with
|
|
46
|
+
* setFrame()/setPhase() so it can share a cardiac-phase clock with other modalities.
|
|
47
|
+
*/
|
|
48
|
+
loadRaw4DVolume(mhdUrls: Array<string>, opts?: raw4DVolumeOptsType, callback?: (ctrl: Raw4DVolumeController) => void): void;
|
|
43
49
|
getPlayRate(): number;
|
|
44
50
|
setPlayRate(playRate: number): void;
|
|
45
51
|
setModelPosition(model: THREE.Group | THREE.Mesh, position: {
|
|
@@ -51,7 +57,7 @@ export declare class copperScene extends baseScene {
|
|
|
51
57
|
resetView(): void;
|
|
52
58
|
updateCamera(viewpoint: CameraViewPoint): void;
|
|
53
59
|
getCurrentTime(): number;
|
|
54
|
-
getCurrentMixer(): THREE.AnimationMixer | null;
|
|
60
|
+
getCurrentMixer(): THREE.AnimationMixer<THREE.AnimationMixerEventMap> | null;
|
|
55
61
|
updateControls(camera: THREE.PerspectiveCamera | THREE.OrthographicCamera): void;
|
|
56
62
|
onRenderCameraChange(): void;
|
|
57
63
|
render(time?: number): void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registry of per-frame callbacks, keyed by a stable id.
|
|
3
|
+
*
|
|
4
|
+
* Deliberately dependency-free (no three.js) so it can be unit-tested under
|
|
5
|
+
* `node --experimental-strip-types --test`.
|
|
6
|
+
*
|
|
7
|
+
* It replaces an object literal that was duplicated across `commonSceneMethod` and
|
|
8
|
+
* `copperMScene` and carried three bugs, one of which silently corrupted callers:
|
|
9
|
+
*
|
|
10
|
+
* 1. `index` was never incremented, so `addPreRenderCallbackFunction` always returned 0.
|
|
11
|
+
* Callers who stored that value and later removed it deleted somebody else's callback.
|
|
12
|
+
* 2. `add` guarded with `if (!fn.id)`, and the very first id was 0 — falsy — so the first
|
|
13
|
+
* callback looked unregistered forever and could be added twice.
|
|
14
|
+
* 3. `remove(id)` spliced `cache` at the raw id, treating the id as an array index. Removing
|
|
15
|
+
* one callback shifted every later one down, so every previously handed-out id then
|
|
16
|
+
* pointed at its neighbour.
|
|
17
|
+
*
|
|
18
|
+
* Here ids come from a monotonic counter, are never reused, and are held in an array parallel
|
|
19
|
+
* to `cache` — so a removal cannot invalidate anyone else's id.
|
|
20
|
+
*/
|
|
21
|
+
export interface PreRenderRegistry {
|
|
22
|
+
/** Monotonic counter for the next id. NOT an index into `cache`. */
|
|
23
|
+
index: number;
|
|
24
|
+
/** Callbacks, in insertion order. Consumers iterate this each frame. */
|
|
25
|
+
cache: Function[];
|
|
26
|
+
/** Ids, parallel to `cache`. Stable across removals. */
|
|
27
|
+
ids: number[];
|
|
28
|
+
/** Registers `fn` and returns its id. Idempotent: re-adding returns the existing id. */
|
|
29
|
+
add: (fn: Function) => number;
|
|
30
|
+
/** Removes the callback with this id. A no-op for an unknown id. */
|
|
31
|
+
remove: (id: number) => void;
|
|
32
|
+
}
|
|
33
|
+
export declare function createPreRenderRegistry(): PreRenderRegistry;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blue -> orange transfer function for ultrasound volume rendering.
|
|
3
|
+
*
|
|
4
|
+
* Dependency-free (no three.js) so it can be unit-tested under Node.
|
|
5
|
+
* The ALPHA channel is load-bearing: three's VolumeRenderShader1 samples this
|
|
6
|
+
* ramp as RGBA, so alpha is what turns low-intensity speckle transparent and
|
|
7
|
+
* gives the volume its cloud-like appearance.
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildBlueOrangeRGBA(size?: number): Uint8Array;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function resize3dnrrd(pixels: Float32Array, dimOrigin: Array<number>, dimTarget: Array<number>): Float32Array
|
|
1
|
+
export declare function resize3dnrrd(pixels: Float32Array, dimOrigin: Array<number>, dimTarget: Array<number>): Float32Array<ArrayBuffer>;
|
|
@@ -255,7 +255,7 @@ export declare class MaskVolume {
|
|
|
255
255
|
* If undefined, all channels are visible.
|
|
256
256
|
* @param opacity Opacity multiplier 0.0–1.0 (default 1.0).
|
|
257
257
|
*/
|
|
258
|
-
renderLabelSliceInto(sliceIndex: number, axis: "
|
|
258
|
+
renderLabelSliceInto(sliceIndex: number, axis: "x" | "y" | "z" | undefined, target: ImageData, channelVisible?: Record<number, boolean>, opacity?: number): void;
|
|
259
259
|
/**
|
|
260
260
|
* Return a copy of the volume dimensions.
|
|
261
261
|
*
|
|
@@ -7,6 +7,8 @@ export interface texture2dResult {
|
|
|
7
7
|
updateTexture: (copperVolume: copperVolumeType) => void;
|
|
8
8
|
setFrame: (i: number) => void;
|
|
9
9
|
setWindow: (center: number, width: number) => void;
|
|
10
|
+
/** Post-window gain. 1.0 is faithful; 1.5 is the historical hard-coded default. */
|
|
11
|
+
setBrightness: (v: number) => void;
|
|
10
12
|
}
|
|
11
13
|
export declare function createTexture2D_NRRD(data: Uint8Array, width: number, height: number, depth: number, callback: (mesh: THREE.Mesh) => void): void;
|
|
12
14
|
export declare function createTexture2D_Array(copperVolume: copperVolumeType, depth: number, scene: THREE.Scene, gui?: GUI, aligned?: boolean): texture2dResult;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IPaintImage } from "../segmentation/core/types";
|
|
2
|
-
declare function pruningData(originArr: IPaintImage[]):
|
|
2
|
+
declare function pruningData(originArr: IPaintImage[]): ImageDataArray[];
|
|
3
3
|
declare function restructData(originArr: IPaintImage[], len: number, width: number, height: number): {
|
|
4
4
|
sliceIndex: number;
|
|
5
5
|
dataFormat: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -15,11 +15,12 @@ import kiwrious from "./Utils/kiwrious/configKiwrious";
|
|
|
15
15
|
import { NrrdTools } from "./Utils/segmentation/NrrdTools";
|
|
16
16
|
import { GaussianSmoother } from "./Utils/segmentation/core/GaussianSmoother";
|
|
17
17
|
import { Copper3dTrackballControls } from "./Controls/Copper3dTrackballControls";
|
|
18
|
+
import { Copper3dOrbitControls } from "./Controls/Copper3dOrbitControls";
|
|
18
19
|
import { MeshNodeTool } from "./Utils/MeshNodeTool";
|
|
19
20
|
import { removeGuiFolderChilden } from "./Utils/segmentation/coreTools/gui";
|
|
20
21
|
import { SurfaceAnnotator } from "./Utils/surfaceAnnotation";
|
|
21
22
|
import type { SurfaceAnnotatorOptions, Annotation, AnnotationMode, ExportOptions } from "./Utils/surfaceAnnotation";
|
|
22
|
-
import { nrrdMeshesType, nrrdSliceType, SensorDecodedValue_kiwrious, SensorReadResult_kiwrious, HeartRateResult_kiwrious, loadingBarType, exportPaintImageType, IOptVTKLoader, aligned4DSurfaceType, aligned4DOptsType, Aligned4DController } from "./types/types";
|
|
23
|
+
import { nrrdMeshesType, nrrdSliceType, SensorDecodedValue_kiwrious, SensorReadResult_kiwrious, HeartRateResult_kiwrious, loadingBarType, exportPaintImageType, IOptVTKLoader, aligned4DSurfaceType, aligned4DOptsType, Aligned4DController, raw4DVolumeTransformType, raw4DVolumeOptsType, Raw4DVolumeController } from "./types/types";
|
|
23
24
|
import { IPaintImage, ICommXYZ, IGUIStates, IGuiParameterSettings, INrrdStates, IGuiMeta } from "./Utils/segmentation/core/types";
|
|
24
25
|
import { NrrdState } from "./Utils/segmentation/coreTools/NrrdState";
|
|
25
26
|
import { GuiState } from "./Utils/segmentation/coreTools/GuiState";
|
|
@@ -29,5 +30,6 @@ import type { LayerId, ChannelValue } from "./Utils/segmentation/core/index";
|
|
|
29
30
|
import type { AiPromptTool, AiPromptPoint, AiPromptPayload, AiMaskResult } from "./Utils/segmentation/tools/AiAssistTool";
|
|
30
31
|
import "./css/style.css";
|
|
31
32
|
export declare const REVISION: string;
|
|
32
|
-
export { copperRenderer, copperRendererOnDemond, copperMSceneRenderer, setHDRFilePath, addLabelToScene, convert3DPostoScreenPos, convertScreenPosto3DPos, addBoxHelper, fullScreenListenner, configKiwriousHeart, copperScene, copperSceneOnDemond, copperMScene, CameraViewPoint, kiwrious, NrrdTools, loading, Copper3dTrackballControls, createTexture2D_NRRD, MeshNodeTool, throttle, removeGuiFolderChilden, CHANNEL_COLORS, CHANNEL_HEX_COLORS, AI_MASK_CHANNEL_COLORS, AI_CHANNEL_HEX_COLORS, rgbaToHex, rgbaToCss, GaussianSmoother, SurfaceAnnotator, };
|
|
33
|
-
export type { positionType, screenPosType, optsType, nrrdMeshesType, nrrdSliceType, SensorDecodedValue_kiwrious, SensorReadResult_kiwrious, HeartRateResult_kiwrious, loadingBarType, IPaintImage, exportPaintImageType, IOptVTKLoader, aligned4DSurfaceType, aligned4DOptsType, Aligned4DController, ICommXYZ, IGUIStates, IGuiParameterSettings, INrrdStates, NrrdState, GuiState, IGuiMeta, ToolMode, IAnnotationCallbacks, LayerId, ChannelValue, AiPromptTool, AiPromptPoint, AiPromptPayload, AiMaskResult, SurfaceAnnotatorOptions, Annotation, AnnotationMode, ExportOptions, };
|
|
33
|
+
export { copperRenderer, copperRendererOnDemond, copperMSceneRenderer, setHDRFilePath, addLabelToScene, convert3DPostoScreenPos, convertScreenPosto3DPos, addBoxHelper, fullScreenListenner, configKiwriousHeart, copperScene, copperSceneOnDemond, copperMScene, CameraViewPoint, kiwrious, NrrdTools, loading, Copper3dTrackballControls, Copper3dOrbitControls, createTexture2D_NRRD, MeshNodeTool, throttle, removeGuiFolderChilden, CHANNEL_COLORS, CHANNEL_HEX_COLORS, AI_MASK_CHANNEL_COLORS, AI_CHANNEL_HEX_COLORS, rgbaToHex, rgbaToCss, GaussianSmoother, SurfaceAnnotator, };
|
|
34
|
+
export type { positionType, screenPosType, optsType, nrrdMeshesType, nrrdSliceType, SensorDecodedValue_kiwrious, SensorReadResult_kiwrious, HeartRateResult_kiwrious, loadingBarType, IPaintImage, exportPaintImageType, IOptVTKLoader, aligned4DSurfaceType, aligned4DOptsType, Aligned4DController, raw4DVolumeTransformType, raw4DVolumeOptsType, Raw4DVolumeController, ICommXYZ, IGUIStates, IGuiParameterSettings, INrrdStates, NrrdState, GuiState, IGuiMeta, ToolMode, IAnnotationCallbacks, LayerId, ChannelValue, AiPromptTool, AiPromptPoint, AiPromptPayload, AiMaskResult, SurfaceAnnotatorOptions, Annotation, AnnotationMode, ExportOptions, };
|
|
35
|
+
export type { CameraViewPreset } from "./Controls/orbitFraming";
|