RenderConfigStore
Index
Constructors
Properties
- alpha
- bias
- channelHistogram
- colorMapIndex
- contrast
- cubeHistogram
- cubeHistogramProgress
- customColormapHexEnd
- customColormapHexStart
- gamma
- histChannel
- inverted
- preference
- previewHistogramMax
- previewHistogramMin
- scaleMax
- scaleMin
- scaling
- selectedPercentile
- stokesIndex
- useCubeHistogram
- useCubeHistogramContours
- visible
- ALPHA_MAX
- ALPHA_MIN
- BIAS_MAX
- BIAS_MIN
- COLOR_MAPS_ALL
- COLOR_MAPS_CUSTOM
- COLOR_MAPS_MONO
- COLOR_MAPS_PANEL
- COLOR_MAPS_SELECTED
- CONTRAST_MAX
- CONTRAST_MIN
- CUSTOM_COLOR_MAP_INDEX
- GAMMA_MAX
- GAMMA_MIN
- PERCENTILE_RANKS
- SCALING_TYPES
Accessors
Methods
- resetBias
- resetContrast
- setAlpha
- setBias
- setColorMap
- setColorMapIndex
- setContrast
- setCustomHexEnd
- setCustomHexStart
- setCustomScale
- setGamma
- setHistChannel
- setInverted
- setPercentileRank
- setPreviewHistogramMax
- setPreviewHistogramMin
- setScaling
- setStokesIndex
- setUseCubeHistogram
- setUseCubeHistogramContours
- setVisible
- toggleVisibility
- updateChannelHistogram
- updateCubeHistogram
- updateFrom
- updateFromWorkspace
- updateSiblings
- IsColormapValid
- IsGammaValid
- IsPercentileValid
- IsScalingValid
Constructors
constructor
Parameters
preference: PreferenceStore
frame: FrameStore
Returns RenderConfigStore
Properties
alpha
bias
channelHistogram
colorMapIndex
contrast
cubeHistogram
cubeHistogramProgress
customColormapHexEnd
customColormapHexStart
gamma
histChannel
inverted
readonlypreference
previewHistogramMax
previewHistogramMin
scaleMax
scaleMin
scaling
selectedPercentile
stokesIndex
useCubeHistogram
useCubeHistogramContours
visible
staticreadonlyALPHA_MAX
staticreadonlyALPHA_MIN
staticreadonlyBIAS_MAX
staticreadonlyBIAS_MIN
staticreadonlyCOLOR_MAPS_ALL
staticreadonlyCOLOR_MAPS_CUSTOM
staticreadonlyCOLOR_MAPS_MONO
Some commonly used single-color gradients.
staticreadonlyCOLOR_MAPS_PANEL
staticreadonlyCOLOR_MAPS_SELECTED
The selected colormaps shown in the option.
staticreadonlyCONTRAST_MAX
staticreadonlyCONTRAST_MIN
staticreadonlyCUSTOM_COLOR_MAP_INDEX
staticreadonlyGAMMA_MAX
staticreadonlyGAMMA_MIN
staticreadonlyPERCENTILE_RANKS
staticreadonlySCALING_TYPES
Accessors
colorMap
Returns string
colorscaleArray
Returns any[]
contourHistogram
Returns IHistogram
customColorGradient
Returns { color: Uint8ClampedArray; size: number }
color: Uint8ClampedArray
size: number
histogram
Returns IHistogram
histogramMax
Returns any
histogramMin
Returns number
monoColormapHex
Returns string
scaleMaxVal
Returns number
scaleMinVal
Returns number
scalingName
Returns string
selectedPercentileVal
Returns number
Methods
resetBias
Set the bias to be default value 0.
Returns void
resetContrast
Set the contrast to be default value 1.
Returns void
setAlpha
Set the alpha value for the scaling type Power.
Parameters
alpha: number
The alpha value of the scaling type Power.
Returns void
setBias
Set the bias value.
Parameters
bias: number
The bias value of the colormap.
Returns void
setColorMap
Set the colormap.
Parameters
colormap: string
The colormap name in RenderConfigStore.COLOR_MAPS_ALL.
Returns void
setColorMapIndex
Set index of the colormap.
Parameters
index: number
The colormap index between -1 and array RenderConfigStore.COLOR_MAPS_ALL size. The index -1 is the custom color.
Returns void
setContrast
Set the contrast value.
Parameters
contrast: number
The contrast value of the colormap.
Returns void
setCustomHexEnd
Set Hex to generate the custom colormap.
Parameters
colorHex: string
The Hex string.
Returns void
setCustomHexStart
Set starting Hex to generate the custom colormap. The default color is black.
Parameters
colorHex: string
The Hex string.
Returns void
setCustomScale
Set minimum and maximum values of the scaling.
Parameters
minVal: number
The minimum scaling value.
maxVal: number
The maximum scaling value.
Returns void
setGamma
Set the gamma value for the scaling type Gamma.
Parameters
gamma: number
The gamma value of the scaling type Gamma.
Returns void
setHistChannel
Set the channel number for the histogram.
Parameters
val: number
The channel number.
Returns void
setInverted
Invert the colormap.
Parameters
inverted: boolean
True for inverting colormap.
Returns void
setPercentileRank
Set the included histogram fraction for the colormap.
Parameters
rank: number
A value between 0 and 100.
Returns boolean
A boolean for the checking purpose.
setPreviewHistogramMax
Set the upper boundary of the histogram in the preview image.
Parameters
histogramMax: number
The upper cut of the histogram.
Returns void
setPreviewHistogramMin
Set the lower boundary of the histogram in the preview image.
Parameters
histogramMin: number
The lower cut of the histogram.
Returns void
setScaling
Set the colormap scaling type.
Parameters
newScaling: FrameScaling
The colormap scaling type RenderConfigStore.SCALING_TYPES.
Returns void
setStokesIndex
Set the polarization index for the histogram.
Parameters
val: number
The polarization index from 0 to maximum 8 (depending on data).
Returns void
setUseCubeHistogram
Use cube data instead of per channel data for the histogram.
Parameters
val: boolean
True for using the cube data.
Returns void
setUseCubeHistogramContours
Use cube data instead of per channel data for the contour.
Parameters
val: boolean
True for using the cube data.
Returns void
setVisible
Parameters
visible: boolean
Returns void
toggleVisibility
Returns void
updateChannelHistogram
Parameters
histogram: IHistogram
Returns void
updateCubeHistogram
Parameters
histogram: IHistogram
progress: number
Returns void
updateFrom
Parameters
other: RenderConfigStore
Returns void
updateFromWorkspace
Parameters
config: WorkspaceRenderConfig
Returns void
updateSiblings
Returns void
publicstaticIsColormapValid
Parameters
colormap: string
Returns boolean
publicstaticIsGammaValid
Parameters
gamma: number
Returns boolean
publicstaticIsPercentileValid
Parameters
percentile: number
Returns boolean
publicstaticIsScalingValid
Parameters
scaling: FrameScaling
Returns boolean
All provided colormaps.