public abstract class Hips2fitsConfigurator extends SkyPosConfigurator
SkyPosConfigurator.SkyPosActivator
Modifier | Constructor and Description |
---|---|
protected |
Hips2fitsConfigurator(TopcatModelInfo tinfo,
java.util.function.Predicate<HipsSurvey> filter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Activator |
createActivator(uk.ac.starlink.table.ColumnData raData,
uk.ac.starlink.table.ColumnData decData)
Constructs an Activator based on selected RA and Dec column values.
|
Safety |
getSafety()
Indicates whether an activator created by the current state
of this configurator is known to be harmless.
|
String |
getSkyConfigMessage()
Returns a config message given that non-blank sky position columns
have been supplied.
|
ConfigState |
getState()
Returns an object that contains the current state of this configurator.
|
void |
setState(ConfigState state)
Restores the state of this object from a given state object.
|
protected abstract Outcome |
useHips(String hipsId,
double raDeg,
double decDeg,
double fovDeg,
int npix)
Invoked on activation with the configured HiPS details.
|
getActivator, getConfigMessage, getSkyPosState, getStack, setSkyPosState
addActionListener, createDisplayField, createDisplayLabel, getActionForwarder, getPanel, removeActionListener
protected Hips2fitsConfigurator(TopcatModelInfo tinfo, java.util.function.Predicate<HipsSurvey> filter)
tinfo
- topcat model informationfilter
- indicates which Hips image surveys are suitableprotected abstract Outcome useHips(String hipsId, double raDeg, double decDeg, double fovDeg, int npix)
hipsId
- hips survey ID or match stringraDeg
- RA position in degreesdecDeg
- Dec position in degreesfovDeg
- field of view in degreesnpix
- linear dimension of cutout in pixelspublic Safety getSafety()
ActivatorConfigurator
Implementations should be cautious; if some slightly adjusted state might be dangerous, false could be returned as well (that's why this method is on ActivatorConfigurator and not Activator itself).
public ConfigState getState()
ActivatorConfigurator
public void setState(ConfigState state)
ActivatorConfigurator
state
- stored statepublic Activator createActivator(uk.ac.starlink.table.ColumnData raData, uk.ac.starlink.table.ColumnData decData)
SkyPosConfigurator
createActivator
in class SkyPosConfigurator
raData
- right ascension in radiansdecData
- declination in radianspublic String getSkyConfigMessage()
SkyPosConfigurator
getSkyConfigMessage
in class SkyPosConfigurator
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.