Class ncsa.horizon.util.arrayND.ArbitraryVolumeArrayND
java.lang.Object
|
+--ncsa.horizon.arrayND.ArrayND
|
+--ncsa.horizon.arrayND.ChunkableArrayND
|
+--ncsa.horizon.arrayND.VirtualIntersectingArrayND
|
+--ncsa.horizon.util.arrayND.ArbitraryVolumeArrayND
- public class ArbitraryVolumeArrayND
- extends VirtualIntersectingArrayND
a VirtualIntersectingArrayND that defined by a Volume object.
This class encapsulates the procedure of creating an ArrayND that
contains data from the intersection of a Volume with the domain
of another ArrayND. The resulting array can have bounds that extends
beyond that of the source array whose values are set to a given
default value. Fractional sampling values are rounded to the nearest
round number.
- See Also:
- Serialized Form
| Methods inherited from class ncsa.horizon.arrayND.VirtualIntersectingArrayND |
| canChunk, checkDefaultType, getArrayND, getArrayND, getBestChunkAxis, getChunk, getChunk, getElement, getStorage, getSupersetIndex, getSupersetStride, getSuperset, setElement |
| Methods inherited from class ncsa.horizon.arrayND.ArrayND |
| checkBounds, checkBounds, checkBounds, checkBounds, checkBounds, clone, copy, copyInto1DArray, copyInto1DArray, copyInto2DArray, copyInto2DArray, copyIntoArray, copyIntoArray, getArray, getArray, getArray, get, getArrayND, getArrayND, getArraySize, getDimensionality, getDimensionality, getDimensionality, getElement, getElementType, getLength, getNameByPrimitiveClass, getPrimitiveClassByName, getSize, getTotalSize, getType, initialize, initialize, set, setElement |
| Methods inherited from class java.lang.Object |
| clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
ArbitraryVolumeArrayND
public ArbitraryVolumeArrayND(ChunkableArrayND array,
java.lang.Object defval,
Volume vol)
throws java.lang.IllegalArgumentException
- wrap an ArrayND for access to the intersecting array described by a
given object. This assumes a zero-based origin.
- Parameters:
array
- the larger array to subset
defval
- the default value for values outside the bounds of array
vol
- the requested subregion of the array- Throws:
- java.lang.IllegalArgumentException - if the deftype cannot be used
as a default value for an array element. If the array type is a
primitive, the default value should be of the corresponding
wrapper type.
ArbitraryVolumeArrayND
public ArbitraryVolumeArrayND(ChunkableArrayND array,
java.lang.Object defval,
Volume vol,
int[] base)
- wrap an ArrayND for access to the intersecting array described by a
given object.
- Parameters:
array
- the larger array to subset
defval
- the default value for values outside the bounds of array
vol
- the requested subregion of the array
base
- the position in volume space corresponding to
the first (0, 0, ...) element in array- Throws:
- java.lang.IllegalArgumentException - if the deftype cannot be used
as a default value for an array element. If the array type is a
primitive, the default value should be of the corresponding
wrapper type.
ArbitraryVolumeArrayND
public ArbitraryVolumeArrayND(ChunkableArrayND array,
java.lang.Object defval,
Volume vol,
double[] base)
- wrap an ArrayND for access to the intersecting array described by a
given object.
- Parameters:
array
- the larger array to subset
defval
- the default value for values outside the bounds of array
vol
- the requested subregion of the array
base
- the position in volume space corresponding to
the first (0, 0, ...) element in array- Throws:
- java.lang.IllegalArgumentException - if the deftype cannot be used
as a default value for an array element. If the array type is a
primitive, the default value should be of the corresponding
wrapper type.