|
|||||||||
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
uk.ac.starlink.ttools.plot2.geom.SinProjection
public class SinProjection
Sine (orthographic) projection.
This is the one that gives you a rotatable sphere.
North always faces directly up (is aligned along the screen Y direction).
This is a singleton class, see INSTANCE
.
Field Summary | |
---|---|
static SinProjection |
INSTANCE
Singleton instance. |
Fields inherited from class uk.ac.starlink.ttools.plot2.geom.SkyviewProjection |
---|
AIT, CAR1, TAN |
Method Summary | |
---|---|
SkyAspect |
createAspect(boolean reflect,
double[] r3,
double radiusRad,
Range[] vxyzRanges)
Creates a SkyAspect from configuration information. |
double[] |
cursorRotate(double[] rot0,
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. |
boolean |
project(double rx,
double ry,
double rz,
Point2D.Double pos)
Overridden for slight efficiency gain. |
double[] |
projRotate(double[] rot0,
Point2D.Double pos0,
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. |
Methods inherited from class uk.ac.starlink.ttools.plot2.geom.SkyviewProjection |
---|
createProjection, getProjectionShape, getSkyviewProjecter, unproject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static SinProjection INSTANCE
Method Detail |
---|
public String getProjectionName()
Projection
getProjectionName
in interface Projection
getProjectionName
in class SkyviewProjection
public String getProjectionDescription()
Projection
getProjectionDescription
in interface Projection
getProjectionDescription
in class SkyviewProjection
public boolean project(double rx, double ry, double rz, 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 success
public double[] cursorRotate(double[] rot0, Point2D.Double pos0, Point2D.Double pos1)
SkyviewProjection
cursorRotate
in interface Projection
cursorRotate
in class SkyviewProjection
rot0
- initial rotation matrixpos0
- initial cursor positionpos1
- destination cursor position
public double[] projRotate(double[] rot0, Point2D.Double pos0, Point2D.Double pos1)
SkyviewProjection
projRotate
in interface Projection
projRotate
in class SkyviewProjection
rot0
- initial rotation matrixpos0
- initial projected positionpos1
- destination projected position
public 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 data
SurfaceFactory.createAspect(P, uk.ac.starlink.ttools.plot2.config.ConfigMap, uk.ac.starlink.ttools.plot.Range[])
public 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 left
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |