-
- All Known Implementing Classes:
AccumulateProjector,EmptyProjector,SimpleVolatileProjector,VolatileHierarchyProjector
public interface VolatileProjectorRender a 2D target copying pixels from a nD source.Rendering can be interrupted, in which case
map(boolean)will return false. Also, the rendering time for the lastmap(boolean)can be queried.- Author:
- Tobias Pietzsch, Stephan Saalfeld
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidcancel()Abortmap()if it is currently running.longgetLastFrameRenderNanoTime()How many nano-seconds did the lastmap()take.booleanisValid()default booleanmap()booleanmap(boolean clearUntouchedTargetPixels)Render the target image.
-
-
-
Method Detail
-
map
boolean map(boolean clearUntouchedTargetPixels)
Render the target image.- Parameters:
clearUntouchedTargetPixels-- Returns:
- true if rendering was completed (all target pixels written). false if rendering was interrupted.
-
map
default boolean map()
-
cancel
void cancel()
Abortmap()if it is currently running.
-
getLastFrameRenderNanoTime
long getLastFrameRenderNanoTime()
How many nano-seconds did the lastmap()take.- Returns:
- time needed for rendering the last frame, in nano-seconds.
-
isValid
boolean isValid()
- Returns:
- true if all mapped pixels were valid.
-
-