Skip to main content
Version: 4.1.0

ImageFittingStore

Index

Constructors

constructor

  • new ImageFittingStore(): ImageFittingStore
  • Returns ImageFittingStore

Properties

backgroundOffset

backgroundOffset: number = 0

backgroundOffsetFixed

backgroundOffsetFixed: boolean = true

components

components: ImageFittingIndividualStore[]

createModelImage

createModelImage: boolean = true

createResidualImage

createResidualImage: boolean = true

isCancelling

isCancelling: boolean = false

isFitting

isFitting: boolean = false

progress

progress: number = 0

selectedComponentIndex

selectedComponentIndex: number

selectedFileId

selectedFileId: number = ACTIVE_FILE_ID

selectedRegionId

selectedRegionId: number = FOV_REGION_ID

solverType

solverType: FittingSolverType = CARTA.FittingSolverType.Cholesky

Accessors

effectiveFrame

  • get effectiveFrame(): FrameStore
  • Returns FrameStore

fitDisabled

  • get fitDisabled(): boolean
  • Returns boolean

frameOptions

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

regionOptions

  • get regionOptions(): { label: string; value: number }[]
  • Returns { label: string; value: number }[]

solverOptions

  • get solverOptions(): { label: string; value: any }[]
  • Returns { label: string; value: any }[]

staticInstance

  • get Instance(): ImageFittingStore
  • Returns ImageFittingStore

Methods

cancelFitting

  • cancelFitting(): void
  • Returns void

clearComponents

  • clearComponents(): void
  • Returns void

createRegions

  • createRegions(): Promise<void>
  • Returns Promise<void>

deleteSelectedComponent

  • deleteSelectedComponent(): void
  • Returns void

fitImage

  • fitImage(): void
  • Returns void

resetBackgroundOffset

  • resetBackgroundOffset(): void
  • Returns void

resetFittingState

  • resetFittingState(): void
  • Returns void

setBackgroundOffset

  • setBackgroundOffset(offset: number): void
  • Parameters

    • offset: number

    Returns void

setComponents

  • setComponents(num: number): void
  • Parameters

    • num: number

    Returns void

setIsCancelling

  • setIsCancelling(isCancelling: boolean): void
  • Parameters

    • isCancelling: boolean

    Returns void

setIsFitting

  • setIsFitting(isFitting: boolean): void
  • Parameters

    • isFitting: boolean

    Returns void

setProgress

  • setProgress(progress: number): void
  • Parameters

    • progress: number

    Returns void

setResultString

  • setResultString(regionId: number, fovInfo: IRegionInfo, fixedParams: boolean[], values: IGaussianComponent[], errors: IGaussianComponent[], offsetValue: number, offsetError: number, integratedFluxValues: number[], integratedFluxErrors: number[], fittingLog: string): void
  • Parameters

    • regionId: number
    • fovInfo: IRegionInfo
    • fixedParams: boolean[]
    • values: IGaussianComponent[]
    • errors: IGaussianComponent[]
    • offsetValue: number
    • offsetError: number
    • integratedFluxValues: number[]
    • integratedFluxErrors: number[]
    • fittingLog: string

    Returns void

setSelectedComponentIndex

  • setSelectedComponentIndex(index: number): void
  • Parameters

    • index: number

    Returns void

setSelectedFileId

  • setSelectedFileId(id: number): void
  • Parameters

    • id: number

    Returns void

setSelectedRegionId

  • setSelectedRegionId(id: number): void
  • Parameters

    • id: number

    Returns void

setSolverType

  • setSolverType(type: FittingSolverType): void
  • Parameters

    • type: FittingSolverType

    Returns void

toggleBackgroundOffsetFixed

  • toggleBackgroundOffsetFixed(): void
  • Returns void

toggleCreateModelImage

  • toggleCreateModelImage(): void
  • Returns void

toggleCreateResidualImage

  • toggleCreateResidualImage(): void
  • Returns void