public abstract class MultiDimensionImpl extends java.lang.Object implements MultiDimension
Modifier and Type | Field and Description |
---|---|
protected int |
numCells |
protected int[] |
sizes |
Modifier | Constructor and Description |
---|---|
protected |
MultiDimensionImpl(int[] sizes,
long[] lValues,
double[] dValues,
int stride,
int origin,
long defaultLongValue,
double defaultDoubleValue)
Build a MultiDimension.
|
Modifier and Type | Method and Description |
---|---|
double |
getDoubleValue(java.lang.Integer... cell) |
long |
getLongValue(java.lang.Integer... cell) |
java.util.Iterator<MultiDimensionValue> |
iterator() |
protected abstract long |
nextValid(int offset,
long previousCellId)
Return the cellId of the cell at offset @offset, knowing that
the cellId at offset (@offset-1) is @cellId.
|
protected abstract int |
offsetOf(long cellId) |
protected MultiDimensionImpl(int[] sizes, long[] lValues, double[] dValues, int stride, int origin, long defaultLongValue, double defaultDoubleValue)
sizes:
- the size of the hypercubelValues:
- long values, in scanline order.dValues:
- double values, in scanline order.stride:
- (Similar to OpenGL stride) is the interval between two values in {l,d}Values for this hypercube. 1 means packedpublic long getLongValue(java.lang.Integer... cell) throws MultiDimensionCellOutOfBoundsException, IncorrectDimensionException
getLongValue
in interface MultiDimension
MultiDimensionCellOutOfBoundsException
IncorrectDimensionException
public double getDoubleValue(java.lang.Integer... cell) throws MultiDimensionCellOutOfBoundsException, IncorrectDimensionException
getDoubleValue
in interface MultiDimension
MultiDimensionCellOutOfBoundsException
IncorrectDimensionException
public java.util.Iterator<MultiDimensionValue> iterator()
iterator
in interface java.lang.Iterable<MultiDimensionValue>
protected abstract long nextValid(int offset, long previousCellId)
protected abstract int offsetOf(long cellId)
Copyright © 2021 Dassault Systèmes, All Rights Reserved.