- java.lang.Object
-
- bdv.viewer.render.AccumulateProjector<A,B>
-
- All Implemented Interfaces:
VolatileProjector
public abstract class AccumulateProjector<A,B> extends Object implements VolatileProjector
-
-
Constructor Summary
Constructors Constructor Description AccumulateProjector(List<VolatileProjector> sourceProjectors, List<? extends net.imglib2.RandomAccessible<? extends A>> sources, net.imglib2.RandomAccessibleInterval<B> target)AccumulateProjector(List<VolatileProjector> sourceProjectors, List<? extends net.imglib2.RandomAccessible<? extends A>> sources, net.imglib2.RandomAccessibleInterval<B> target, int numThreads, ExecutorService executorService)Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidaccumulate(net.imglib2.Cursor<? extends A>[] accesses, B target)voidcancel()AbortVolatileProjector.map()if it is currently running.longgetLastFrameRenderNanoTime()How many nano-seconds did the lastVolatileProjector.map()take.booleanisValid()booleanmap(boolean clearUntouchedTargetPixels)Render the target image.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface bdv.viewer.render.VolatileProjector
map
-
-
-
-
Constructor Detail
-
AccumulateProjector
@Deprecated public AccumulateProjector(List<VolatileProjector> sourceProjectors, List<? extends net.imglib2.RandomAccessible<? extends A>> sources, net.imglib2.RandomAccessibleInterval<B> target, int numThreads, ExecutorService executorService)
Deprecated.UseAccumulateProjector(List, List, RandomAccessibleInterval). The numThreads and executorService arguments are ignored.
-
AccumulateProjector
public AccumulateProjector(List<VolatileProjector> sourceProjectors, List<? extends net.imglib2.RandomAccessible<? extends A>> sources, net.imglib2.RandomAccessibleInterval<B> target)
-
-
Method Detail
-
map
public boolean map(boolean clearUntouchedTargetPixels)
Description copied from interface:VolatileProjectorRender the target image.- Specified by:
mapin interfaceVolatileProjector- Returns:
- true if rendering was completed (all target pixels written). false if rendering was interrupted.
-
accumulate
protected abstract void accumulate(net.imglib2.Cursor<? extends A>[] accesses, B target)
-
cancel
public void cancel()
Description copied from interface:VolatileProjectorAbortVolatileProjector.map()if it is currently running.- Specified by:
cancelin interfaceVolatileProjector
-
getLastFrameRenderNanoTime
public long getLastFrameRenderNanoTime()
Description copied from interface:VolatileProjectorHow many nano-seconds did the lastVolatileProjector.map()take.- Specified by:
getLastFrameRenderNanoTimein interfaceVolatileProjector- Returns:
- time needed for rendering the last frame, in nano-seconds.
-
isValid
public boolean isValid()
- Specified by:
isValidin interfaceVolatileProjector- Returns:
- true if all mapped pixels were valid.
-
-