Package net.imglib2.util
Class Localizables.RealLocationRealRandomAccess
- java.lang.Object
-
- net.imglib2.AbstractEuclideanSpace
-
- net.imglib2.AbstractRealLocalizable
-
- net.imglib2.RealPoint
-
- net.imglib2.util.Localizables.RealLocationRealRandomAccess
-
- All Implemented Interfaces:
EuclideanSpace,Positionable,RealLocalizable,RealPositionable,RealRandomAccess<RealLocalizable>,Sampler<RealLocalizable>,Typed<RealLocalizable>
- Enclosing class:
- Localizables
private static class Localizables.RealLocationRealRandomAccess extends RealPoint implements RealRandomAccess<RealLocalizable>
A RandomAccess that returns its current position as value.
-
-
Field Summary
-
Fields inherited from class net.imglib2.AbstractRealLocalizable
position
-
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
-
Constructor Summary
Constructors Constructor Description RealLocationRealRandomAccess(int n)RealLocationRealRandomAccess(RealLocalizable initialPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Localizables.RealLocationRealRandomAccesscopy()Localizables.RealLocationRealRandomAccessget()Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSamplerpoints at.RealLocalizablegetType()Get an instance ofT.-
Methods inherited from class net.imglib2.RealPoint
bck, equals, fwd, hashCode, move, move, move, move, move, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition, setPosition, setPosition, setPosition, setPosition, setPosition, toString, wrap
-
Methods inherited from class net.imglib2.AbstractRealLocalizable
getDoublePosition, getFloatPosition, localize, localize
-
Methods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensions
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Methods inherited from interface net.imglib2.Positionable
bck, fwd, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
-
Methods inherited from interface net.imglib2.RealLocalizable
getDoublePosition, getFloatPosition, localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
-
Methods inherited from interface net.imglib2.RealPositionable
move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
-
Methods inherited from interface net.imglib2.RealRandomAccess
copyRealRandomAccess, setPositionAndGet, setPositionAndGet, setPositionAndGet
-
-
-
-
Constructor Detail
-
RealLocationRealRandomAccess
public RealLocationRealRandomAccess(int n)
-
RealLocationRealRandomAccess
public RealLocationRealRandomAccess(RealLocalizable initialPosition)
-
-
Method Detail
-
get
public Localizables.RealLocationRealRandomAccess get()
Description copied from interface:SamplerAccess the actual T instance providing access to a pixel, sub-pixel or integral region value theSamplerpoints at.- Specified by:
getin interfaceSampler<RealLocalizable>
-
getType
public RealLocalizable getType()
Description copied from interface:TypedGet an instance ofT.It should not be assumed that the returned
Tinstance is an independent copy. In particular, repeated calls togetType()may return the same instance.- Specified by:
getTypein interfaceSampler<RealLocalizable>- Specified by:
getTypein interfaceTyped<RealLocalizable>- Returns:
- an instance of
T
-
copy
public Localizables.RealLocationRealRandomAccess copy()
- Specified by:
copyin interfaceRealRandomAccess<RealLocalizable>- Specified by:
copyin interfaceSampler<RealLocalizable>- Returns:
- - A new
Samplerin the same state accessing the same values. It does NOT copy T, just the state of theSampler. 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 anArrayCursorfor example)
-
-