Package net.imglib2.converter.readwrite
Class WriteConvertedCursor<A,B>
- java.lang.Object
-
- net.imglib2.converter.AbstractConvertedCursor<A,B>
-
- net.imglib2.converter.readwrite.WriteConvertedCursor<A,B>
-
- All Implemented Interfaces:
java.util.Iterator<B>,Cursor<B>,EuclideanSpace,Iterator,Localizable,RealCursor<B>,RealLocalizable,Sampler<B>,Typed<B>
public class WriteConvertedCursor<A,B> extends AbstractConvertedCursor<A,B>
TODO
-
-
Field Summary
Fields Modifier and Type Field Description private Bconvertedprivate SamplerConverter<? super A,B>converterprivate java.util.function.Supplier<SamplerConverter<? super A,B>>converterSupplier-
Fields inherited from class net.imglib2.converter.AbstractConvertedCursor
source
-
-
Constructor Summary
Constructors Constructor Description WriteConvertedCursor(Cursor<A> source, java.util.function.Supplier<SamplerConverter<? super A,B>> converterSupplier)WriteConvertedCursor(Cursor<A> source, SamplerConverter<? super A,B> converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WriteConvertedCursor<A,B>copy()Bget()Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSamplerpoints at.BgetType()Get an instance ofT.-
Methods inherited from class net.imglib2.converter.AbstractConvertedCursor
fwd, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, hasNext, jumpFwd, localize, localize, localize, localize, numDimensions, remove, reset
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.imglib2.Cursor
copyCursor
-
Methods inherited from interface net.imglib2.Localizable
localize, localize, positionAsLongArray, positionAsPoint
-
Methods inherited from interface net.imglib2.RealCursor
next
-
Methods inherited from interface net.imglib2.RealLocalizable
positionAsDoubleArray, positionAsRealPoint
-
-
-
-
Field Detail
-
converterSupplier
private final java.util.function.Supplier<SamplerConverter<? super A,B>> converterSupplier
-
converter
private final SamplerConverter<? super A,B> converter
-
converted
private final B converted
-
-
Constructor Detail
-
WriteConvertedCursor
public WriteConvertedCursor(Cursor<A> source, java.util.function.Supplier<SamplerConverter<? super A,B>> converterSupplier)
-
WriteConvertedCursor
public WriteConvertedCursor(Cursor<A> source, SamplerConverter<? super A,B> converter)
-
-
Method Detail
-
get
public B get()
Description copied from interface:SamplerAccess the actual T instance providing access to a pixel, sub-pixel or integral region value theSamplerpoints at.
-
getType
public B 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.- Returns:
- an instance of
T
-
copy
public WriteConvertedCursor<A,B> copy()
- Specified by:
copyin interfaceCursor<A>- Specified by:
copyin interfaceRealCursor<A>- Specified by:
copyin interfaceSampler<A>- Specified by:
copyin classAbstractConvertedCursor<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)
-
-