Class WriteConvertedRandomAccess<A,B>
java.lang.Object
net.imglib2.converter.AbstractConvertedRandomAccess<A,B>
net.imglib2.converter.readwrite.WriteConvertedRandomAccess<A,B>
- All Implemented Interfaces:
EuclideanSpace, Localizable, Positionable, RandomAccess<B>, RealLocalizable, Sampler<B>, Typed<B>
TODO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Bprivate final SamplerConverter<? super A, B> private final Supplier<SamplerConverter<? super A, B>> Fields inherited from class AbstractConvertedRandomAccess
source -
Constructor Summary
ConstructorsConstructorDescriptionWriteConvertedRandomAccess(RandomAccess<A> source, Supplier<SamplerConverter<? super A, B>> converterSupplier) WriteConvertedRandomAccess(RandomAccess<A> source, SamplerConverter<? super A, B> converter) -
Method Summary
Methods inherited from class AbstractConvertedRandomAccess
bck, fwd, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize, move, move, move, move, move, numDimensions, setPosition, setPosition, setPosition, setPosition, setPositionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Localizable
localize, localize, positionAsLongArray, positionAsPointMethods inherited from interface RandomAccess
copyRandomAccess, setPositionAndGet, setPositionAndGet, setPositionAndGetMethods inherited from interface RealLocalizable
positionAsDoubleArray, positionAsRealPoint
-
Field Details
-
converterSupplier
-
converter
-
converted
-
-
Constructor Details
-
WriteConvertedRandomAccess
public WriteConvertedRandomAccess(RandomAccess<A> source, Supplier<SamplerConverter<? super A, B>> converterSupplier) -
WriteConvertedRandomAccess
-
-
Method Details
-
get
-
getType
-
copy
- Specified by:
copyin interfaceRandomAccess<A>- Specified by:
copyin interfaceSampler<A>- Specified by:
copyin classAbstractConvertedRandomAccess<A,B> - 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)
-