| Modifier and Type | Field | Description |
|---|---|---|
static SkyDataGeom |
GENERIC |
Instance which converts between unspecified, but identical, systems.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
SkyDataGeom(java.lang.String variantName) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
static SkyDataGeom |
createGeom(SkySys userSys,
SkySys viewSys) |
Creates a data geom with input user data in one sky system and
output data coordinates in another sky system.
|
abstract boolean |
equals(java.lang.Object other) |
|
int |
getDataDimCount() |
Returns 3.
|
Coord[] |
getPosCoords() |
Returns the definitions for the user-supplied coordinates
that indicate plot positions.
|
java.lang.String |
getVariantName() |
Returns a label for this DataGeom.
|
abstract int |
hashCode() |
|
boolean |
hasPosition() |
Indicates whether the values read by the
readDataPos
method correspond to a point position in the data space. |
boolean |
readDataPos(Tuple tuple,
int ic,
double[] dpos) |
Determines the positional coordinates in data space for a supplied tuple.
|
abstract void |
rotate(double[] dpos) |
Rotates a 3-vector in place from this geom's data coordinate system
to its view coordinate system.
|
abstract void |
unrotate(double[] dpos) |
Rotates a 3-vector in place from this geom's view coordinate system
to its data coordinate system.
|
public static final SkyDataGeom GENERIC
protected SkyDataGeom(java.lang.String variantName)
variantName - name for this data geompublic int getDataDimCount()
getDataDimCount in interface DataGeompublic boolean hasPosition()
DataGeomreadDataPos
method correspond to a point position in the data space.
If true, a successful read will result in a position array
with a definite value for each coordinate. If false, some of
the coordinates may be NaN. A false return value would be
appropriate for instance if each tuple row for the plot layer
represented by this geom corresponds to a line rather than a
point in the data space.hasPosition in interface DataGeompublic java.lang.String getVariantName()
DataGeomgetVariantName in interface DataGeompublic Coord[] getPosCoords()
DataGeomgetPosCoords in interface DataGeompublic boolean readDataPos(Tuple tuple, int ic, double[] dpos)
DataGeomA parameter supplies the index of the field in the tuple
at which the positional coordinate(s) can be found.
Each position is represented by DataGeom.getPosCoords() columns of
the tuple.
By convention positions are at the start of the tuple,
so if there is one position in the tuple it will be at icol=0,
and there are multiple positions the N'th one will be at
icol=N*getPosCoords().
An array of (at least) DataGeom.getDataDimCount() elements is
supplied, and on success the data space coordinate values
are written into it.
readDataPos in interface DataGeomtuple - coordinate tupleic - column index in tuple at which the
positional information startsdpos - array into which data space coordinates are writtenpublic abstract void rotate(double[] dpos)
dpos - (x,y,z) vector to be rotated in placepublic abstract void unrotate(double[] dpos)
dpos - (x,y,z) vector to be rotated in placepublic abstract int hashCode()
hashCode in class java.lang.Objectpublic abstract boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic static SkyDataGeom createGeom(SkySys userSys, SkySys viewSys)
userSys - sky system in which user data is suppliedviewSys - sky system in which the plot is viewedCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.