Class ConvertedRealCursor<A,B>
java.lang.Object
net.imglib2.converter.AbstractConvertedRealCursor<A,B>
net.imglib2.converter.read.ConvertedRealCursor<A,B>
- All Implemented Interfaces:
Iterator<B>, EuclideanSpace, Iterator, RealCursor<B>, RealLocalizable, Sampler<B>, Typed<B>
TODO
-
Field Summary
FieldsFields inherited from class AbstractConvertedRealCursor
source -
Constructor Summary
ConstructorsConstructorDescriptionConvertedRealCursor(RealCursor<A> source, Supplier<Converter<? super A, ? super B>> converterSupplier, Supplier<? extends B> convertedSupplier) Creates a copy of b for conversion that can be accessed throughget().ConvertedRealCursor(RealCursor<A> source, Converter<? super A, ? super B> converter, Supplier<? extends B> convertedSupplier) Creates a copy of b for conversion that can be accessed throughget(). -
Method Summary
Methods inherited from class AbstractConvertedRealCursor
fwd, getDoublePosition, getFloatPosition, hasNext, jumpFwd, localize, localize, numDimensions, remove, resetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemainingMethods inherited from interface RealCursor
copyCursor, nextMethods inherited from interface RealLocalizable
localize, positionAsDoubleArray, positionAsRealPoint
-
Field Details
-
converterSupplier
-
converter
-
convertedSupplier
-
converted
-
-
Constructor Details
-
ConvertedRealCursor
-
ConvertedRealCursor
-
-
Method Details
-
get
-
getType
-
copy
- Specified by:
copyin interfaceRealCursor<A>- Specified by:
copyin interfaceSampler<A>- Specified by:
copyin classAbstractConvertedRealCursor<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)
-