public class VolatileHierarchyProjector<A extends Volatile<?>,B extends SetZero> extends Object implements VolatileProjector
VolatileProjector for a hierarchy of Volatile inputs. After each
VolatileProjector.map() call, the projector has a state that
signalizes whether all projected pixels were perfect.| Constructor and Description |
|---|
VolatileHierarchyProjector(List<? extends RandomAccessible<A>> sources,
Converter<? super A,B> converter,
RandomAccessibleInterval<B> target,
byte[] maskArray,
int numThreads,
ExecutorService executorService) |
VolatileHierarchyProjector(List<? extends RandomAccessible<A>> sources,
Converter<? super A,B> converter,
RandomAccessibleInterval<B> target,
int numThreads,
ExecutorService executorService) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Abort
VolatileProjector.map() if it is currently running. |
void |
clearMask()
Set all pixels in target to 100% transparent zero, and mask to all
Integer.MAX_VALUE.
|
long |
getLastFrameIoNanoTime() |
long |
getLastFrameRenderNanoTime()
How many nano-seconds did the last
VolatileProjector.map() take. |
boolean |
isValid() |
boolean |
map(boolean clearUntouchedTargetPixels)
Render the target image.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmappublic VolatileHierarchyProjector(List<? extends RandomAccessible<A>> sources, Converter<? super A,B> converter, RandomAccessibleInterval<B> target, int numThreads, ExecutorService executorService)
public VolatileHierarchyProjector(List<? extends RandomAccessible<A>> sources, Converter<? super A,B> converter, RandomAccessibleInterval<B> target, byte[] maskArray, int numThreads, ExecutorService executorService)
public void cancel()
VolatileProjectorVolatileProjector.map() if it is currently running.cancel in interface VolatileProjectorpublic long getLastFrameRenderNanoTime()
VolatileProjectorVolatileProjector.map() take.getLastFrameRenderNanoTime in interface VolatileProjectorpublic long getLastFrameIoNanoTime()
public boolean isValid()
isValid in interface VolatileProjectorpublic void clearMask()
public boolean map(boolean clearUntouchedTargetPixels)
VolatileProjectormap in interface VolatileProjectorCopyright © 2015–2021 Fiji. All rights reserved.