Class FixedLengthVectorCoord
java.lang.Object
uk.ac.starlink.ttools.plot2.data.SingleCoord
uk.ac.starlink.ttools.plot2.data.FixedLengthVectorCoord
- All Implemented Interfaces:
Coord
Coord implementation for a fixed-length array of values.
- Since:
- 25 Jan 2025
- Author:
- Mark Taylor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDomain for use with FixedLengthVectorCoord. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FixedLengthVectorCoord.VectorDomainDomain for 3-vector.static final FixedLengthVectorCoord3-vector coordinate. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFixedLengthVectorCoord(InputMeta meta, boolean isRequired, FixedLengthVectorCoord.VectorDomain domain, StorageType storage) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidreadElements(Tuple tuple, int icol, double[] vec) Reads vector elements from a specified column in a given tuple into a supplied array.Methods inherited from class SingleCoord
getInput, getInputs, getStorageType, isRequired, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Coord
inputStorage
-
Field Details
-
FLOATING_VECTOR3_DOMAIN
Domain for 3-vector. -
XYZ_COORD
3-vector coordinate.
-
-
Constructor Details
-
FixedLengthVectorCoord
protected FixedLengthVectorCoord(InputMeta meta, boolean isRequired, FixedLengthVectorCoord.VectorDomain domain, StorageType storage) Constructor.- Parameters:
meta- metadata for single inputisRequired- true if this coordinate is required for plottingdomain- domainstorage- storage type
-
-
Method Details
-
readElements
Reads vector elements from a specified column in a given tuple into a supplied array.- Parameters:
tuple- tupleicol- index of field in tuple corresponding to this Coordvec- array of at least nel elements to receive the result
-