Module org.bigdataviewer.core
Package bdv.viewer.render
Class VolatileHierarchyProjector<A extends net.imglib2.Volatile<?>,B extends net.imglib2.type.operators.SetZero>
- java.lang.Object
-
- bdv.viewer.render.VolatileHierarchyProjector<A,B>
-
- All Implemented Interfaces:
VolatileProjector
public class VolatileHierarchyProjector<A extends net.imglib2.Volatile<?>,B extends net.imglib2.type.operators.SetZero> extends Object
VolatileProjectorfor a hierarchy ofVolatileinputs. After eachVolatileProjector.map()call, the projector has astatethat signalizes whether all projected pixels were perfect.- Author:
- Stephan Saalfeld, Tobias Pietzsch
-
-
Constructor Summary
Constructors Constructor Description VolatileHierarchyProjector(List<? extends net.imglib2.RandomAccessible<A>> sources, net.imglib2.converter.Converter<? super A,B> converter, net.imglib2.RandomAccessibleInterval<B> target)VolatileHierarchyProjector(List<? extends net.imglib2.RandomAccessible<A>> sources, net.imglib2.converter.Converter<? super A,B> converter, net.imglib2.RandomAccessibleInterval<B> target, byte[] maskArray)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()AbortVolatileProjector.map()if it is currently running.voidclearMask()Set all pixels in target to 100% transparent zero, and mask to all Integer.MAX_VALUE.longgetLastFrameIoNanoTime()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
-
VolatileHierarchyProjector
public VolatileHierarchyProjector(List<? extends net.imglib2.RandomAccessible<A>> sources, net.imglib2.converter.Converter<? super A,B> converter, net.imglib2.RandomAccessibleInterval<B> target)
-
VolatileHierarchyProjector
public VolatileHierarchyProjector(List<? extends net.imglib2.RandomAccessible<A>> sources, net.imglib2.converter.Converter<? super A,B> converter, net.imglib2.RandomAccessibleInterval<B> target, byte[] maskArray)
-
-
Method Detail
-
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.
-
getLastFrameIoNanoTime
public long getLastFrameIoNanoTime()
-
isValid
public boolean isValid()
- Specified by:
isValidin interfaceVolatileProjector- Returns:
- true if all mapped pixels were valid.
-
clearMask
public void clearMask()
Set all pixels in target to 100% transparent zero, and mask to all Integer.MAX_VALUE.
-
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.
-
-