abstractAbstractCatalogProfileStore
Hierarchy
- AbstractCatalogProfileStore
Index
Constructors
Properties
Accessors
Methods
- clearData
- get1DPlotData
- get2DCoordinateData
- get2DPlotData
- getColumnHeader
- getCoordinateEligibility
- getOriginIndices
- getSortedIndices
- getUserFilters
- isNumericColumn
- resetCatalogFilterRequest
- resetFilterRequest
- resetUserFilters
- setCatalogCoordinateSystem
- setColumnFilter
- setHeaderDisplay
- setIsUpdateColumn
- setLoadingDataStatus
- setMaxRows
- setProgress
- setSelectedPointIndices
- setSortingInfo
- setTableColumnWidth
- setUpdateMode
- setUpdatingDataStream
- updateTableStatus
- getCatalogCoordinateDefaults
- getCatalogSystem
Constructors
constructor
Parameters
catalogType: CatalogType
catalogData: Map<number, ProcessedColumnData>
Returns AbstractCatalogProfileStore
Properties
abstractcatalogControlHeader
catalogCoordinateSystem
catalogFilterRequest
abstractcatalogHeader
abstractcatalogInfo
catalogType
filterDataSize
filterIndexMap
isLoadingData
isUpdateColumnMode
isUpdatingDataStream
abstractnumVisibleRows
progress
selectedPointIndices
shouldUpdateTableView
sortedIndexMap
sortingInfo
Type declaration
columnName: string | null
sortingType: any
updateMode
publicstaticreadonlyCOORDINATE_SYSTEM_NAME
Accessors
activedSystem
Returns { x: CatalogOverlay; y: CatalogOverlay } | undefined
autoScrollRowNumber
Returns Region
catalogData
Returns Map<number, ProcessedColumnData>
catalogFileId
Returns number
catalogOriginalData
Returns Map<number, ProcessedColumnData>
displayedColumnHeaders
Returns CatalogHeader[]
displayedNumericColumnNames
Returns string[]
hasFilter
Returns boolean
abstractinitCatalogControlHeader
Returns Map<string, ControlHeader>
isFileBasedCatalog
Returns boolean
abstractisLoadingOntoImage
Returns boolean
regionSelected
Returns number
selectedData
Returns Map<number, ProcessedColumnData>
abstractshouldUpdateData
Returns boolean
systemCoordinateMap
Returns Map<CatalogSystemType, { x: CatalogOverlay; y: CatalogOverlay }>
tableColumnWidths
Returns (number | null | undefined)[]
abstractupdateRequestDataSize
Returns any
Methods
clearData
Returns void
publicget1DPlotData
Parameters
column: string
Returns { headerInfo: $Properties; wcsData?: TypedArray }
headerInfo: $Properties
optionalwcsData?: TypedArray
publicget2DCoordinateData
Values for the image overlay, read as coordinates of the active system: string formats are parsed, and a latitude beyond a pole is dropped. Only here, where the columns are known to be feeding a sky transform, is that interpretation warranted.
Parameters
xColumnName: string
yColumnName: string
columnsData: Map<number, ProcessedColumnData>
optionalrowCount: number
Returns { wcsX?: number[]; wcsY?: number[]; xHeaderInfo: $Properties; yHeaderInfo: $Properties }
optionalwcsX?: number[]
optionalwcsY?: number[]
xHeaderInfo: $Properties
yHeaderInfo: $Properties
publicget2DPlotData
Values for a scatter plot of any two columns. The axes carry no coordinate meaning here -- a flux against a velocity is as valid a pair as a longitude against a latitude -- so the values are read as plain numbers, with none of the parsing or range checks that get2DCoordinateData applies.
Parameters
xColumnName: string
yColumnName: string
columnsData: Map<number, ProcessedColumnData>
Returns { wcsX?: number[]; wcsY?: number[]; xHeaderInfo: $Properties; yHeaderInfo: $Properties }
optionalwcsX?: number[]
optionalwcsY?: number[]
xHeaderInfo: $Properties
yHeaderInfo: $Properties
publicgetColumnHeader
The header of one column, or undefined when this catalog does not have that column.
Parameters
columnName: string
Returns any
publicgetCoordinateEligibility
Whether a column can be read as a coordinate, and how. Settled once and then reused for the life of the store.
A filter response carries only its own chunk of rows, so deciding this afresh on every call lets a chunk of blanks -- or one stray unparseable value -- declare the whole column unreadable. That is not just a chunk of missing sources: the overlay is written at absolute row offsets, so a skipped chunk leaves its slots at the image origin and counts every later chunk short. A column's format is a property of the column, not of the rows that happen to have arrived, so once it is known the rows that do not fit it are read as NaN and dropped individually.
The evidence is the store's current data view rather than the rows passed in. For a file stream that is the accumulated prefix; for an online catalog it is the filtered view used by the overlay, so eligibility cannot disagree with the UI's sample.
Parameters
columnName: string
Returns CatalogAxisEligibilityResult
getOriginIndices
Parameters
selectedPointIndices: number[]
Returns number[]
getSortedIndices
Parameters
selectedPointIndices: number[]
Returns number[]
publicgetUserFilters
Returns FilterConfig[]
publicisNumericColumn
Whether a column's declared type is already numeric, so plotting it needs no parsing.
Parameters
columnName: string
the column's name, as it appears in the catalog header
Returns boolean
true when the column's values can be read as numbers directly
abstractresetCatalogFilterRequest
Returns void
abstractresetFilterRequest
Parameters
optionalfilterConfigs: FilterConfig[]
Returns void
resetUserFilters
Returns void
setCatalogCoordinateSystem
Parameters
catalogSystem: CatalogSystemType
Returns void
setColumnFilter
Parameters
filter: string
columnName: string
Returns void
setHeaderDisplay
Parameters
isVisible: boolean
columnName: string
Returns void
setIsUpdateColumn
Parameters
isUpdateColumn: boolean
Returns void
setLoadingDataStatus
Parameters
isLoading: boolean
Returns void
abstractsetMaxRows
Parameters
maxRows: number
Returns void
setProgress
Parameters
val: number
Returns void
setSelectedPointIndices
Parameters
pointIndices: number[]
shouldAutoPanZoom: boolean
Returns void
abstractsetSortingInfo
Parameters
columnName: string
sortingType: SortingType
optionalcolumnIndex: number
Returns void
setTableColumnWidth
Parameters
width: number
columnName: string
Returns void
setUpdateMode
Parameters
mode: CatalogUpdateMode
Returns void
setUpdatingDataStream
Parameters
isUpdating: boolean
Returns void
updateTableStatus
Parameters
isEnabled: boolean
Returns void
publicstaticgetCatalogCoordinateDefaults
The equinox and epoch a coordinate system implies, used when the file declares neither.
Takes the declared string rather than a CatalogSystemType, because
ecl_FK4implies B1950 and is indistinguishable fromecl_FK5once both have been mapped toEcliptic.Parameters
system: string | null | undefined
the
COOSYS/@systemvalue as declared by the file
Returns { epoch: string | null; equinox: string | null }
the equinox and epoch in the Besselian/Julian year form AST accepts, or nulls for a system that has neither
epoch: string | null
equinox: string | null
publicstaticgetCatalogSystem
Maps a catalog's declared coordinate system onto the system CARTA transforms with.
The VOTable enumeration is matched exactly before any looser spelling is tried, so the ecliptic values cannot fall through to the equatorial keywords they contain.
Parameters
system: string | null | undefined
the
COOSYS/@systemvalue as declared by the file
Returns CatalogSystemType
the matching system, or
CatalogSystemType.ICRSwhen nothing matches
The displayed columns a scatter plot or histogram can read directly, in table order.
Image overlays are not limited to these: a string column can be a coordinate too, which getCoordinateEligibility decides from its units or its values.