public abstract class MocCoverage extends Object implements Coverage
Coverage.Amount
Modifier and Type | Field and Description |
---|---|
static cds.moc.HealpixImpl |
DFLT_HPI
Default Healpix implementation.
|
Modifier | Constructor and Description |
---|---|
protected |
MocCoverage()
Constructs a MocCoverage with default HEALPix implementation.
|
protected |
MocCoverage(cds.moc.HealpixImpl hpi)
Constructs a MocCoverage with specified HEALPix implementation.
|
Modifier and Type | Method and Description |
---|---|
protected abstract cds.moc.SMoc |
createMoc()
Constructs the MOC which will define this object's coverage.
|
boolean |
discOverlaps(double alphaDeg,
double deltaDeg,
double radiusDeg)
Indicates whether a given disc on the sphere overlaps, or may overlap
with this coverage.
|
Coverage.Amount |
getAmount()
Returns the amount category for coverage.
|
cds.moc.SMoc |
getMoc()
Returns the MOC object associated with this footprint.
|
void |
initCoverage()
Must be called before any of the query methods are used.
|
public static final cds.moc.HealpixImpl DFLT_HPI
protected MocCoverage()
protected MocCoverage(cds.moc.HealpixImpl hpi)
hpi
- HEALPix implementation to use for calculationsprotected abstract cds.moc.SMoc createMoc() throws IOException
initCoverage()
method of
MocCoverage
, and should not be called by anyone else.IOException
public void initCoverage() throws IOException
Coverage
Coverage.getAmount()
returns non-null,
this method will return directly.
Following a successful or error return of this method,
Coverage.getAmount()
will return non-null.initCoverage
in interface Coverage
IOException
public Coverage.Amount getAmount()
Coverage
Coverage.initCoverage()
must be called before use.public boolean discOverlaps(double alphaDeg, double deltaDeg, double radiusDeg)
Coverage
discOverlaps
in interface Coverage
alphaDeg
- central longitude in degreesdeltaDeg
- central latitude in degreesradiusDeg
- radius in degreespublic cds.moc.SMoc getMoc()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.