Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

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

Fields inherited from class ncsa.horizon.arrayND.VirtualIntersectingArrayND
defval, order, srcset, start, stride
 
Fields inherited from class ncsa.horizon.arrayND.ArrayND
elemClass, size
 
Constructor Summary
ArbitraryVolumeArrayND(ChunkableArrayND array, java.lang.Object defval, Volume vol)
          wrap an ArrayND for access to the intersecting array described by a given object.
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.
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.
 
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.ChunkableArrayND
copyInto1DArray, copyInto1DArray, copyInto2DArray, copyInto2DArray, copyIntoArray, copyIntoArray
 
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
 

Constructor Detail

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.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD