Type Alias: ViewportContentMode
ViewportContentMode:
"stack"|"volume"|"volume3d"|"video"|"wholeSlide"|"ecg"|"empty"|"unknown"
The content a Generic ("next") viewport is currently rendering.
Unlike the legacy model, a PLANAR_NEXT viewport's content shape (stack vs
volume) is decided by the data it is bound to, not by its viewport type. The
duck-typing capability guards (viewportSupportsImageSlices,
viewportSupportsVolumeId, ...) only report which methods a viewport
exposes, so a single PlanarViewport reports support for both stack and
volume operations regardless of what it is actually showing.
getCurrentMode() answers the content question that the capability guards
cannot: it reflects the currently bound source data.
stack— image-id stack content (image render path)volume— volume-backed slice content (volume slice render path)volume3d— 3D volume renderingvideo— video frameswholeSlide— whole-slide tilesecg— ECG waveformempty— no source data is bound yetunknown— a viewport family that does not classify its content