DWVv0.37.0

ViewConfig

Source: application.js:51

View configuration: mainly defines the ´divId´ of the associated HTML div.


Constructor

new ViewConfig(divId: string): ViewConfig

Parameters

  • divId (string) — The associated HTML div id.

Instance Fields

divId: string

Associated HTML div id.

orientation: string | undefined

Optional orientation of the data; 'axial', 'coronal' or 'sagittal'. If undefined, will use the data aquisition plane.

colourMap: string | undefined

Optional view colour map name.

opacity: number | undefined

Optional layer opacity; in [0, 1] range.

fillOpacity: number | undefined

Optional segmentation layer fill opacity; in [0, 1] range.

contourThickness: number | undefined

Optional segmentation contour thickness; in [0, 10] range.

wlPresetName: string | undefined

Optional layer window level preset name. If present, the preset name will be used and the window centre and width ignored.

windowCenter: number | undefined

Optional layer window center.

windowWidth: number | undefined

Optional layer window width.