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, wait
map
public 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()
VolatileProjector
VolatileProjector.map()
if it is currently running.cancel
in interface VolatileProjector
public long getLastFrameRenderNanoTime()
VolatileProjector
VolatileProjector.map()
take.getLastFrameRenderNanoTime
in interface VolatileProjector
public long getLastFrameIoNanoTime()
public boolean isValid()
isValid
in interface VolatileProjector
public void clearMask()
public boolean map(boolean clearUntouchedTargetPixels)
VolatileProjector
map
in interface VolatileProjector
Copyright © 2015–2021 Fiji. All rights reserved.