Skip to main content

Interface: ViewPresentationSelector

A view presentation selector allows choosing what view attributes should be returned by a call to getViewPresentation. This allows a shared selection object to be used to specify which presentation attributes are to be used.

For example, a synchronizer might choose to use a presentation selector so that multiple viewports could specify to synchronizer, say slabThickness and windowLevel across one set, while a different synchronizer would choose to apply zoom and pan. Then, a resize operation might choose to synchronize display area, zoom and pan, but not window level or slab thickness. A store/remember state of viewport might choose to synchronize everything Individual tools might choose to use synchronization of the specific attribute which they are modifying (such as rotation) for history undo/redo, but use the same re-apply function to undo the remembered history.

It is certainly possible to implement each of these with their own selectors which call the particular get/set functions, but that makes it more work to share particular sets for different uses.

Properties

displayArea?

optional displayArea: boolean

Defined in

packages/core/src/types/IViewport.ts:351


flipHorizontal?

optional flipHorizontal: boolean

Defined in

packages/core/src/types/IViewport.ts:354


flipVertical?

optional flipVertical: boolean

Defined in

packages/core/src/types/IViewport.ts:355


paletteLut?

optional paletteLut: boolean

Defined in

packages/core/src/types/IViewport.ts:358


pan?

optional pan: boolean

Defined in

packages/core/src/types/IViewport.ts:353


rotation?

optional rotation: boolean

Defined in

packages/core/src/types/IViewport.ts:350


slabThickness?

optional slabThickness: number

Defined in

packages/core/src/types/IViewport.ts:348


windowLevel?

optional windowLevel: boolean

Defined in

packages/core/src/types/IViewport.ts:357


zoom?

optional zoom: boolean

Defined in

packages/core/src/types/IViewport.ts:352