Class CartesianVectorCoordSet
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.CartesianVectorCoordSet
- All Implemented Interfaces:
CartesianMultiPointCoordSet,MultiPointCoordSet
MultiPointCoordSet for vectors in Cartesian data coordinates.
- Since:
- 18 Feb 2013
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCoord[]Returns the coordinate definitions.intReturns the number of (non-central) data positions defined by this coord set.booleanreadPoints(Tuple tuple, int icol, double[] xy0, double[][] xyExtras) Reads the non-central points from a appropriate span of columns in a supplied tuple.
-
Constructor Details
-
CartesianVectorCoordSet
Constructor.- Parameters:
axisNames- names of cartesian axes
-
-
Method Details
-
getCoords
Description copied from interface:MultiPointCoordSetReturns the coordinate definitions.- Specified by:
getCoordsin interfaceMultiPointCoordSet- Returns:
- coords
-
getPointCount
public int getPointCount()Description copied from interface:MultiPointCoordSetReturns the number of (non-central) data positions defined by this coord set.- Specified by:
getPointCountin interfaceMultiPointCoordSet- Returns:
- data position count
-
readPoints
Description copied from interface:CartesianMultiPointCoordSetReads the non-central points from a appropriate span of columns in a supplied tuple. The central data position must be supplied as input. TheicExtravalue gives the column corresponding to the first coord of this coordinate set in the sequence; the following few columns are assumed to correspond 1:1 to the coords in this coord set.- Specified by:
readPointsin interfaceCartesianMultiPointCoordSet- Parameters:
tuple- tupleicol- index of tuple field corresponding to the first of the coordinates in this setxy0- nDataDim-element array giving central data positionxyExtras- [nPointCount][nDataDim]-shaped array into which the non-central data positions will be written- Returns:
- true iff the conversion was successful
-