public static enum Area.Type extends Enum<Area.Type>
Enum Constant and Description |
---|
CIRCLE
Circle defined by central point and a radius (x, y, r).
|
MOC
Multi-Order Coverage map;
each array element contains 64-bit NUNIQ bit pattern equivalenced
to the double value.
|
MULTISHAPE
Collection of Area instances, to be considered as a union.
|
POINT
Point defined by two coordinates (x, y).
|
POLYGON
Polygon or sequence of polygons defined by a list of vertices
(x1, y1, x2, y2, ..., xN, yN).
|
Modifier and Type | Method and Description |
---|---|
static Area.Type |
fromInt(int itype)
Retrieves an instance of this enum from its numeric code.
|
abstract boolean |
isLegalArrayLength(int n)
Indicates whether a given data array length can represent
a shape of this type.
|
abstract long[] |
toMocUniqs(double[] data,
int level)
Returns an array of UNIQ values corresponding to this shape
for a given maximum HEALPix level.
|
static Area.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Area.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Area.Type POLYGON
public static final Area.Type CIRCLE
public static final Area.Type POINT
public static final Area.Type MOC
public static final Area.Type MULTISHAPE
[nshape, type0, ncoord0, type1, ncoord1, ..., coords]
.
Type values are ordinals of the Area.Type
enum.serializeMultishape
,
deserializeMultishape
public static Area.Type[] values()
for (Area.Type c : Area.Type.values()) System.out.println(c);
public static Area.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract boolean isLegalArrayLength(int n)
n
- length of candidate arraypublic abstract long[] toMocUniqs(double[] data, int level)
data
- data array containing shape detailslevel
- maximum HEALPix resolution levelpublic static Area.Type fromInt(int itype)
itype
- type ordinalCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.