Class BundleView.BundleRandomAccess

java.lang.Object
net.imglib2.converter.AbstractConvertedRandomAccess<T, RandomAccess<T>>
net.imglib2.view.BundleView.BundleRandomAccess
All Implemented Interfaces:
EuclideanSpace, Localizable, Positionable, RandomAccess<RandomAccess<T>>, RealLocalizable, Sampler<RandomAccess<T>>, Typed<RandomAccess<T>>
Enclosing class:
BundleView<T>

class BundleView.BundleRandomAccess extends AbstractConvertedRandomAccess<T, RandomAccess<T>>
  • Constructor Details

  • Method Details

    • get

      public RandomAccess<T> get()
      Description copied from interface: Sampler
      Access the actual T instance providing access to a pixel, sub-pixel or integral region value the Sampler points at.
    • getType

      public RandomAccess<T> getType()
      Description copied from interface: Typed
      Get an instance of T.

      It should not be assumed that the returned T instance is an independent copy. In particular, repeated calls to getType() may return the same instance.

      Returns:
      an instance of T
    • copy

      Specified by:
      copy in interface RandomAccess<RandomAccess<T>>
      Specified by:
      copy in interface Sampler<RandomAccess<T>>
      Specified by:
      copy in class AbstractConvertedRandomAccess<T, RandomAccess<T>>
      Returns:
      - A new Sampler in the same state accessing the same values. It does NOT copy T, just the state of the Sampler. Otherwise use T.copy() if available. Sampler.copy().get() == Sampler.get(), i.e. both hold the same value, not necessarily the same instance (this is the case for an ArrayCursor for example)