|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.geom.SliceDataGeom
public class SliceDataGeom
DataGeom implementation that reads positions corresponding to some, but not all, orthogonal data position coordinates.
Constructor Summary | |
---|---|
SliceDataGeom(FloatingCoord[] sliceCoords,
String variantName)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
int |
getDataDimCount()
Returns the dimensionality of the plot surface's plot space. |
Coord[] |
getPosCoords()
Returns an array of the non-null coords. |
String |
getVariantName()
Returns a label for this DataGeom. |
int |
hashCode()
|
boolean |
hasPosition()
Returns false. |
boolean |
readDataPos(TupleSequence tseq,
int ic,
double[] dpos)
Determines the positional coordinates in data space for the current row of a supplied tuple sequence. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SliceDataGeom(FloatingCoord[] sliceCoords, String variantName)
sliceCoords
- per-data dimension array of coords,
some elements may be nullvariantName
- variant nameMethod Detail |
---|
public int getDataDimCount()
DataGeom
getDataDimCount
in interface DataGeom
public boolean hasPosition()
hasPosition
in interface DataGeom
public String getVariantName()
DataGeom
getVariantName
in interface DataGeom
public Coord[] getPosCoords()
getPosCoords
in interface DataGeom
public boolean readDataPos(TupleSequence tseq, int ic, double[] dpos)
DataGeom
A parameter supplies the index of the column 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 of the
row of interest is written into it.
readDataPos
in interface DataGeom
tseq
- coordinate row sequence,
positioned at the row of interestic
- column index in tseq
at which the
positional information startsdpos
- array into which data space coordinates are written
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |