Skip to main content
Version: Next

SpectralProfileWidgetStore

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

channel

channel: number

channelValueRange

channelValueRange: NumberRange

cursorX

cursorX: number

fileId

fileId: number

readonlyfittingStore

fittingStore: ProfileFittingStore

intensityUnit

intensityUnit: string

isHighlighted

isHighlighted: boolean

isMouseMoveIntoLinePlots

isMouseMoveIntoLinePlots: boolean

isStreamingData

isStreamingData: boolean

keep

keep: boolean

lineColorMap

lineColorMap: Map<LineKey, string>

linePlotInitXYBoundaries

linePlotInitXYBoundaries: { maxXVal: number; maxYVal: number; minXVal: number; minYVal: number }

Type declaration

  • maxXVal: number
  • maxYVal: number
  • minXVal: number
  • minYVal: number

linePlotPointSize

linePlotPointSize: number

lineWidth

lineWidth: number

markerTextVisible

markerTextVisible: boolean

maskRange

maskRange: NumberRange

maxX

maxX: number

maxY

maxY: number

meanRmsVisible

meanRmsVisible: boolean

minX

minX: number

minY

minY: number

momentMask

momentMask: MomentMask

momentRegionId

momentRegionId: number

plotType

plotType: PlotType

primaryLineColor

primaryLineColor: string

readonlyprofileSelectionStore

profileSelectionStore: SpectralProfileSelectionStore

regionIdMap

regionIdMap: Map<number, number>

secondaryAxisCursorInfoVisible

secondaryAxisCursorInfoVisible: boolean

selectedMoments

selectedMoments: Moment[]

selectingMode

selectingMode: MomentSelectingMode

settingsTabId

readonlysmoothingStore

smoothingStore: ProfileSmoothingStore

type

publicstaticreadonlyPRIMARY_LINE_KEY

PRIMARY_LINE_KEY: Primary = "Primary"

Accessors

effectiveFrame

  • Returns FrameStore

effectiveRegion

  • Returns RegionStore

effectiveRegionId

  • get effectiveRegionId(): number
  • Returns number

effectiveRegionInfo

  • get effectiveRegionInfo(): string
  • Returns string

frameOptions

  • get frameOptions(): OptionProps[]
  • Returns OptionProps[]

intensityOptions

  • get intensityOptions(): string[]
  • Returns string[]

isAutoScaledX

  • get isAutoScaledX(): boolean
  • Returns boolean

isAutoScaledY

  • get isAutoScaledY(): boolean
  • Returns boolean

isEffectiveFrameEqualToActiveFrame

  • get isEffectiveFrameEqualToActiveFrame(): boolean
  • Returns boolean

isIntensityConvertible

  • get isIntensityConvertible(): boolean
  • Returns boolean

isMomentRegionValid

  • get isMomentRegionValid(): boolean
  • Returns boolean

isSelectingMomentChannelRange

  • get isSelectingMomentChannelRange(): boolean
  • Returns boolean

isSelectingMomentMaskRange

  • get isSelectingMomentMaskRange(): boolean
  • Returns boolean

matchesSelectedRegion

  • get matchesSelectedRegion(): boolean
  • Returns boolean

momentRegionInfo

  • get momentRegionInfo(): string
  • Returns string

momentRegionOptions

  • get momentRegionOptions(): OptionProps[]
  • Returns OptionProps[]

plotData

profileNum

  • get profileNum(): number
  • Returns number

selectedRange

  • get selectedRange(): { center: number; isHorizontal: boolean; width: number }
  • Returns { center: number; isHorizontal: boolean; width: number }

    • center: number
    • isHorizontal: boolean
    • width: number

transformedSpectralLines

yUnit

  • get yUnit(): string
  • Returns string

Methods

addSpectralLines

clearFrameEntry

  • clearFrameEntry(fileId: number): void
  • Parameters

    • fileId: number

    Returns void

clearMomentRangeSelectingMode

  • clearMomentRangeSelectingMode(): void
  • Returns void

clearProfileColors

  • clearProfileColors(): void
  • Returns void

clearRegionMap

  • clearRegionMap(): void
  • Returns void

clearSelectedMoments

  • clearSelectedMoments(): void
  • Returns void

clearSpectralLines

  • clearSpectralLines(): void
  • Returns void

clearXBounds

  • clearXBounds(): void
  • Returns void

clearXYBounds

  • clearXYBounds(): void
  • Returns void

clearYBounds

  • clearYBounds(): void
  • Returns void

deselectMoment

  • deselectMoment(deselected: Moment): void
  • Delete moments to generate maps.


    Parameters

    • deselected: Moment

      Moment in CARTA.Moment.

    Returns void

getProfileColor

  • getProfileColor(lineKey: LineKey): string
  • Parameters

    Returns string

publicinit

  • init(widgetSettings: any): void
  • Parameters

    • widgetSettings: any

    Returns void

initXYBoundaries

  • initXYBoundaries(minXVal: number, maxXVal: number, minYVal: number, maxYVal: number): void
  • Parameters

    • minXVal: number
    • maxXVal: number
    • minYVal: number
    • maxYVal: number

    Returns void

isMomentSelected

  • isMomentSelected(momentType: Moment): boolean
  • Parameters

    • momentType: Moment

    Returns boolean

removeMomentByIndex

  • removeMomentByIndex(removeIndex: number): void
  • Parameters

    • removeIndex: number

    Returns void

removeProfileColor

  • removeProfileColor(lineKey: LineKey): void
  • Parameters

    Returns void

requestMoment

  • requestMoment(): void
  • Request the moment maps.


    Returns void

requestingMomentCancelled

  • requestingMomentCancelled(): void
  • Cancel the moment maps request.


    Returns void

publicselectFrame

  • selectFrame(fileId: number): void
  • Parameters

    • fileId: number

    Returns void

selectMoment

  • selectMoment(selected: Moment): void
  • Add moments to generate maps.


    Parameters

    • selected: Moment

      Moment in CARTA.Moment.

    Returns void

selectMomentRegion

  • selectMomentRegion(regionId: number): void
  • Select region for generating moment maps.


    Parameters

    • regionId: number

      Region ID number.

    Returns void

setChannel

  • setChannel(channel: number): void
  • Parameters

    • channel: number

    Returns void

setCursor

  • setCursor(cursorVal: number): void
  • Parameters

    • cursorVal: number

    Returns void

setFileId

  • setFileId(fileId: number): void
  • Parameters

    • fileId: number

    Returns void

setHighlighted

  • setHighlighted(isHighlighted: boolean): void
  • Parameters

    • isHighlighted: boolean

    Returns void

setKeep

  • setKeep(bool: boolean): void
  • Keep previous moment maps.


    Parameters

    • bool: boolean

      A boolean. Set true to keep previous moment maps.

    Returns void

setLinePlotPointSize

  • setLinePlotPointSize(val: number): void
  • Parameters

    • val: number

    Returns void

setLineWidth

  • setLineWidth(val: number): void
  • Parameters

    • val: number

    Returns void

setMarkerTextVisible

  • setMarkerTextVisible(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

setMeanRmsVisible

  • setMeanRmsVisible(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

setMomentMask

  • setMomentMask(momentMask: MomentMask): void
  • Mask for generating moment maps.


    Parameters

    • momentMask: MomentMask

      enum CARTA.MomentMask.

    Returns void

setMomentRangeSelectingMode

setMouseMoveIntoLinePlots

  • setMouseMoveIntoLinePlots(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

setMultiProfileIntensityUnit

  • setMultiProfileIntensityUnit(intensityUnitStr: string): void
  • Parameters

    • intensityUnitStr: string

    Returns void

setPlotType

setProfileColor

  • setProfileColor(lineKey: LineKey, color: string): void
  • Parameters

    Returns void

setRegionId

  • setRegionId(fileId: number, regionId: number): void
  • Set region for the spectral profiler.


    Parameters

    • fileId: number

      File ID number.

    • regionId: number

      Region ID number.

    Returns void

setSecondaryAxisCursorInfoVisible

  • setSecondaryAxisCursorInfoVisible(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

setSelectedChannelRange

  • setSelectedChannelRange(min: number, max: number): void
  • Set the channel range for generating moment maps.


    Parameters

    • min: number

      Number of first channel.

    • max: number

      Number of last channel.

    Returns void

setSelectedMaskRange

  • setSelectedMaskRange(min: number, max: number): void
  • Parameters

    • min: number
    • max: number

    Returns void

setSettingsTabId

setSpectralCoordinate

  • setSpectralCoordinate(coordStr: string): void
  • Set spectral coordinates.


    Parameters

    • coordStr: string

      A string of

      <i>
      Spectral type (unit)
      </i>
      like Frequency (GHz).

    Returns void

setSpectralCoordinateSecondary

  • setSpectralCoordinateSecondary(coordStr: string): void
  • Parameters

    • coordStr: string

    Returns void

setSpectralSystem

setXBounds

  • setXBounds(minVal: number, maxVal: number): void
  • Parameters

    • minVal: number
    • maxVal: number

    Returns void

setXYBounds

  • setXYBounds(minX: number, maxX: number, minY: number, maxY: number): void
  • Parameters

    • minX: number
    • maxX: number
    • minY: number
    • maxY: number

    Returns void

setYBounds

  • setYBounds(minVal: number, maxVal: number): void
  • Parameters

    • minVal: number
    • maxVal: number

    Returns void

publictoConfig

  • toConfig(): { linePlotPointSize: number; lineWidth: number; maxXVal: number; maxYVal: number; meanRmsVisible: boolean; minXVal: number; minYVal: number; plotType: PlotType; primaryLineColor: string }
  • Returns { linePlotPointSize: number; lineWidth: number; maxXVal: number; maxYVal: number; meanRmsVisible: boolean; minXVal: number; minYVal: number; plotType: PlotType; primaryLineColor: string }

    • linePlotPointSize: number
    • lineWidth: number
    • maxXVal: number
    • maxYVal: number
    • meanRmsVisible: boolean
    • minXVal: number
    • minYVal: number
    • plotType: PlotType
    • primaryLineColor: string

updateStreamingDataStatus

  • updateStreamingDataStatus(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

publicstaticCalculateRequirementsArray

  • CalculateRequirementsArray(widgetsMap: Map<string, RegionWidgetStore>): Map<number, number[]>
  • Parameters

    Returns Map<number, number[]>

publicstaticCalculateRequirementsMap

publicstaticDiffSpectralRequirements

  • DiffSpectralRequirements(originalRequirements: Map<number, Map<number, SetSpectralRequirements>>, updatedRequirements: Map<number, Map<number, SetSpectralRequirements>>): SetSpectralRequirements[]
  • Parameters

    • originalRequirements: Map<number, Map<number, SetSpectralRequirements>>
    • updatedRequirements: Map<number, Map<number, SetSpectralRequirements>>

    Returns SetSpectralRequirements[]