Class PositionRandomAccessible.PositionRandomAccess

java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.AbstractLocalizable
net.imglib2.Point
net.imglib2.position.PositionRandomAccessible.PositionRandomAccess
All Implemented Interfaces:
EuclideanSpace, Localizable, Positionable, RandomAccess<LongType>, RealLocalizable, Sampler<LongType>, Typed<LongType>
Enclosing class:
PositionRandomAccessible

public class PositionRandomAccessible.PositionRandomAccess extends Point implements RandomAccess<LongType>
  • Field Details

  • Constructor Details

    • PositionRandomAccess

      public PositionRandomAccess()
  • Method Details

    • get

      public LongType 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.
      Specified by:
      get in interface Sampler<LongType>
    • getType

      public LongType 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.

      Specified by:
      getType in interface Sampler<LongType>
      Specified by:
      getType in interface Typed<LongType>
      Returns:
      an instance of T
    • copy

      Specified by:
      copy in interface RandomAccess<LongType>
      Specified by:
      copy in interface Sampler<LongType>
      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)