Projection
public class SinProjection extends SkyviewProjection
INSTANCE
.Modifier and Type | Field | Description |
---|---|---|
static SinProjection |
INSTANCE |
Singleton instance.
|
AIT, CAR1, TAN
Modifier and Type | Method | Description |
---|---|---|
SkyAspect |
createAspect(boolean reflect,
double[] r3,
double radiusRad,
Range[] vxyzRanges) |
Creates a SkyAspect from configuration information.
|
double[] |
cursorRotate(double[] rot0,
java.awt.geom.Point2D.Double pos0,
java.awt.geom.Point2D.Double pos1) |
Returns null - rotation not implemented.
|
SkyFov |
getFov(SkySurface surf) |
Returns the field of view represented by this aspect.
|
java.lang.String |
getProjectionDescription() |
Returns a short description of the projection.
|
java.lang.String |
getProjectionName() |
Returns the projection name.
|
boolean |
project(double rx,
double ry,
double rz,
java.awt.geom.Point2D.Double pos) |
Overridden for slight efficiency gain.
|
double[] |
projRotate(double[] rot0,
java.awt.geom.Point2D.Double pos0,
java.awt.geom.Point2D.Double pos1) |
Returns null - rotation not implemented.
|
boolean |
useRanges(boolean reflect,
double[] r3,
double radiusRad) |
Returns false - ranging not used.
|
static double[] |
verticalRotate(double delta,
double alpha,
boolean reflect) |
Rotation matrix which results in an orientation with the
viewing plane X coordinate of the north pole equal to zero.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createProjection, getProjectionShape, getSkyviewProjecter, isContinuous, unproject
public static SinProjection INSTANCE
public java.lang.String getProjectionName()
Projection
getProjectionName
in interface Projection
getProjectionName
in class SkyviewProjection
public java.lang.String getProjectionDescription()
Projection
getProjectionDescription
in interface Projection
getProjectionDescription
in class SkyviewProjection
public boolean project(double rx, double ry, double rz, java.awt.geom.Point2D.Double pos)
project
in interface Projection
project
in class SkyviewProjection
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 successpublic double[] cursorRotate(double[] rot0, java.awt.geom.Point2D.Double pos0, java.awt.geom.Point2D.Double pos1)
SkyviewProjection
cursorRotate
in interface Projection
cursorRotate
in class SkyviewProjection
rot0
- initial rotation matrixpos0
- initial cursor positionpos1
- destination cursor positionpublic double[] projRotate(double[] rot0, java.awt.geom.Point2D.Double pos0, java.awt.geom.Point2D.Double pos1)
SkyviewProjection
projRotate
in interface Projection
projRotate
in class SkyviewProjection
rot0
- initial rotation matrixpos0
- initial projected positionpos1
- destination projected positionpublic boolean useRanges(boolean reflect, double[] r3, double radiusRad)
SkyviewProjection
useRanges
in interface Projection
useRanges
in class SkyviewProjection
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[] vxyzRanges)
Projection
createAspect
in interface Projection
createAspect
in class SkyviewProjection
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)vxyzRanges
- definite ranges for normalised X,Y,Z coordinates
acquired from dataSurfaceFactory.createAspect(P, uk.ac.starlink.ttools.plot2.config.ConfigMap, uk.ac.starlink.ttools.plot.Range[])
public SkyFov getFov(SkySurface surf)
Projection
getFov
in interface Projection
getFov
in class SkyviewProjection
surf
- sky surface, which must be set up using this projectionpublic static double[] verticalRotate(double delta, double alpha, boolean reflect)
delta
- rotation of pole from vertical (0..pi)alpha
- rotation around pole (0..2pi)reflect
- if true, alpha increases right to leftCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.