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 AbstractRealLocalizable
positionFields inherited from class AbstractEuclideanSpace
n -
Constructor Summary
ConstructorsConstructorDescriptionRealLocationRealRandomAccess(int n) RealLocationRealRandomAccess(RealLocalizable initialPosition) -
Method Summary
Methods inherited from class 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, wrapMethods inherited from class AbstractRealLocalizable
getDoublePosition, getFloatPosition, localize, localizeMethods inherited from class AbstractEuclideanSpace
numDimensionsMethods inherited from interface EuclideanSpace
numDimensionsMethods inherited from interface Positionable
bck, fwd, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPositionMethods inherited from interface RealLocalizable
getDoublePosition, getFloatPosition, localize, localize, localize, positionAsDoubleArray, positionAsRealPointMethods inherited from interface RealPositionable
move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPositionMethods inherited from interface RealRandomAccess
copyRealRandomAccess, setPositionAndGet, setPositionAndGet, setPositionAndGet
-
Constructor Details
-
RealLocationRealRandomAccess
public RealLocationRealRandomAccess(int n) -
RealLocationRealRandomAccess
-
-
Method Details
-
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
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
- 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)
-