public class SkySurfaceTiler extends Object
Note: this class is intended for use when the number of tiles is moderately small. Use of resources (memory, runtime?) is likely to be linear in the number of pixels at the required order appearing within the given surface.
Note: instances of this class are not safe for concurrent use from multiple threads.
Constructor and Description |
---|
SkySurfaceTiler(SkySurface surf,
Rotation rotation,
int hpxOrder)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Polygon |
getTileShape(long hpxIndex)
Returns the shape of the given tile on the sky surface.
|
boolean |
isVisible(long hpxIndex)
Indicates whether a given tile is considered to be visible on this
tiler's plot surface.
|
Set<Long> |
visiblePixels()
Returns a collection of pixels that are, or may be, visible on the
surface.
|
public SkySurfaceTiler(SkySurface surf, Rotation rotation, int hpxOrder)
surf
- sky surfacerotation
- additional rotation to apply to sky positions, not nullhpxOrder
- healpix order (0, 1, 2, ..)public Set<Long> visiblePixels()
public boolean isVisible(long hpxIndex)
getTileShape(long)
.hpxIndex
- HEALPix indexpublic Polygon getTileShape(long hpxIndex)
Calling this method is not an efficient way to determine whether
a given pixel is visible; use isVisible
instead.
hpxIndex
- HEALPix indexCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.