|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.cone.MocCoverage
public abstract class MocCoverage
Abstract superclass for Coverage implementations based on MOC (HEALPix Multi-Order Coverage) objects.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface uk.ac.starlink.ttools.cone.Coverage |
---|
Coverage.Amount |
Constructor Summary | |
---|---|
protected |
MocCoverage(cds.moc.HealpixImpl hpi)
Constructor. |
Method Summary | |
---|---|
protected abstract cds.moc.HealpixMoc |
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.HealpixMoc |
getMoc()
Returns the MOC object associated with this footprint. |
void |
initCoverage()
Must be called before any of the query methods are used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MocCoverage(cds.moc.HealpixImpl hpi)
hpi
- HEALPix implementation to use for calculationsMethod Detail |
---|
protected abstract cds.moc.HealpixMoc 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.
getAmount
in interface Coverage
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 degrees
public cds.moc.HealpixMoc getMoc()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |