Skip to main content

Interface: PlanarSliceBasis

The geometric basis for a single planar cross-section through image data.

Properties

cameraDistance

cameraDistance: number

Distance from the focal point to the camera position along the viewPlaneNormal. For single images this is a nominal value (1); for volumes it spans the full depth so clipping captures the entire volume.

Defined in

packages/core/src/RenderingEngine/GenericViewport/Planar/planarSliceBasis.ts:62


fitParallelScale

fitParallelScale: number

The parallelScale value at which the full slice exactly fits the canvas (i.e. zoom = 1). Computed from image dimensions, spacing, and canvas aspect ratio.

Defined in

packages/core/src/RenderingEngine/GenericViewport/Planar/planarSliceBasis.ts:59


sliceCenterWorld

sliceCenterWorld: Point3

The world-space center of this slice (the default focal point when pan is zero).

Defined in

packages/core/src/RenderingEngine/GenericViewport/Planar/planarSliceBasis.ts:56


sliceHeightWorld

sliceHeightWorld: number

Height of the displayed slice in world units before canvas aspect-ratio fitting is applied.

Defined in

packages/core/src/RenderingEngine/GenericViewport/Planar/planarSliceBasis.ts:61


sliceWidthWorld

sliceWidthWorld: number

Width of the displayed slice in world units before canvas aspect-ratio fitting is applied.

Defined in

packages/core/src/RenderingEngine/GenericViewport/Planar/planarSliceBasis.ts:60


viewPlaneNormal

viewPlaneNormal: Point3

Unit vector perpendicular to the slice plane, pointing toward the camera.

Defined in

packages/core/src/RenderingEngine/GenericViewport/Planar/planarSliceBasis.ts:57


viewUp

viewUp: Point3

Unit vector defining the "up" direction in the slice plane (before user rotation is applied).

Defined in

packages/core/src/RenderingEngine/GenericViewport/Planar/planarSliceBasis.ts:58