|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.geom.SkyviewProjection
public class SkyviewProjection
Projection implementation based on classes from the Skyview package.
Field Summary | |
---|---|
static SkyviewProjection |
AIT
Aitoff projection. |
static SkyviewProjection |
CAR1
Cartesian projection. |
static SkyviewProjection |
TAN
Gnomonic projection. |
Constructor Summary | |
---|---|
SkyviewProjection(skyview.geometry.Projecter projecter,
Shape shape)
Constructor. |
Method Summary | |
---|---|
SkyAspect |
createAspect(boolean reflect,
double[] r3,
double radiusRad,
Range[] ranges)
Creates a SkyAspect from configuration information. |
static SkyviewProjection |
createProjection(skyview.geometry.Projecter projecter)
Factory method that knows shapes for some projections. |
double[] |
cursorRotate(double[] rotmat,
Point2D.Double pos0,
Point2D.Double pos1)
Returns null - rotation not implemented. |
String |
getProjectionDescription()
Returns a short description of the projection. |
String |
getProjectionName()
Returns the projection name. |
Shape |
getProjectionShape()
Returns the shape which encloses all the plane positions to which legal sky coordinates can be projected. |
skyview.geometry.Projecter |
getSkyviewProjecter()
Returns the projecter object used by this SkyviewProjection. |
boolean |
project(double rx,
double ry,
double rz,
Point2D.Double pos)
Transforms a sky position to a plane position. |
double[] |
projRotate(double[] rotmat,
Point2D.Double pos0,
Point2D.Double pos1)
Returns null - rotation not implemented. |
boolean |
unproject(Point2D.Double pos,
double[] r3)
Transforms a plane position to a sky position. |
boolean |
useRanges(boolean reflect,
double[] r3,
double radiusRad)
Returns false - ranging not used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SkyviewProjection AIT
public static final SkyviewProjection CAR1
public static final SkyviewProjection TAN
Constructor Detail |
---|
public SkyviewProjection(skyview.geometry.Projecter projecter, Shape shape)
projecter
- projecter objectshape
- shape of the sky in this projectionMethod Detail |
---|
public String getProjectionName()
Projection
getProjectionName
in interface Projection
public String getProjectionDescription()
Projection
getProjectionDescription
in interface Projection
public Shape getProjectionShape()
Projection
getProjectionShape
in interface Projection
public boolean project(double rx, double ry, double rz, Point2D.Double pos)
Projection
project
in interface Projection
rx
- normalised 3D X coordinatery
- normalised 3D Y coordinaterz
- normalised 3D Z coordinatepos
- point object into which projected dimensionless X,Y
coordinates will be written on success
public boolean unproject(Point2D.Double pos, double[] r3)
Projection
unproject
in interface Projection
pos
- contains dimensionless X,Y coordinates of plane positionr3
- 3-element array into which normalised X,Y,Z sky coordinates
will be written on success
public double[] cursorRotate(double[] rotmat, Point2D.Double pos0, Point2D.Double pos1)
cursorRotate
in interface Projection
rotmat
- initial rotation matrixpos0
- initial cursor positionpos1
- destination cursor position
public double[] projRotate(double[] rotmat, Point2D.Double pos0, Point2D.Double pos1)
projRotate
in interface Projection
rotmat
- initial rotation matrixpos0
- initial projected positionpos1
- destination projected position
public boolean useRanges(boolean reflect, double[] r3, double radiusRad)
useRanges
in interface Projection
reflect
- whether requested aspect will be reflectedr3
- central position of field of view (may be null)radiusRad
- radius of field of view (may be NaN)
SurfaceFactory.readRanges(P, uk.ac.starlink.ttools.plot2.PlotLayer[], uk.ac.starlink.ttools.plot2.data.DataStore)
public SkyAspect createAspect(boolean reflect, double[] r3, double radiusRad, Range[] ranges)
Projection
createAspect
in interface Projection
reflect
- whether requested aspect will be reflectedr3
- central position of field of view (may be null)radiusRad
- radius of field of view (may be NaN)ranges
- definite ranges for normalised X,Y,Z coordinates
acquired from data
SurfaceFactory.createAspect(P, uk.ac.starlink.ttools.plot2.config.ConfigMap, uk.ac.starlink.ttools.plot.Range[])
public skyview.geometry.Projecter getSkyviewProjecter()
public static SkyviewProjection createProjection(skyview.geometry.Projecter projecter)
projecter
- skyview projecter
IllegalArgumentException
- if the shape is not known
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |