Modifier and Type | Field and Description |
---|---|
static CubeDataGeom |
INSTANCE
Singleton instance.
|
static FloatingCoord |
X_COORD
X coordinate.
|
static FloatingCoord |
Y_COORD
Y coordinate.
|
static FloatingCoord |
Z_COORD
Z coordinate.
|
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
hasPosition()
Indicates whether the values read by the
readDataPos
method correspond to a point position in the data space. |
boolean |
readDataPos(TupleSequence tseq,
int ic,
double[] dpos)
Determines the positional coordinates in data space
for the current row of a supplied tuple sequence.
|
public static final FloatingCoord X_COORD
public static final FloatingCoord Y_COORD
public static final FloatingCoord Z_COORD
public static CubeDataGeom INSTANCE
public int getDataDimCount()
getDataDimCount
in interface DataGeom
public boolean hasPosition()
DataGeom
readDataPos
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 DataGeom
public java.lang.String getVariantName()
DataGeom
getVariantName
in interface DataGeom
public Coord[] getPosCoords()
DataGeom
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 writtenCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.