public interface RenderResult
renderer
with a target image
(RandomAccessibleInterval<ARGBType>
) to render to. Provides the
RenderTarget
with the rendered image and transform etc necessary to
display it.Modifier and Type | Method and Description |
---|---|
double |
getScaleFactor()
Get the scale factor from target coordinates to screen resolution.
|
RandomAccessibleInterval<ARGBType> |
getTargetImage()
Get the image to render to.
|
AffineTransform3D |
getViewerTransform()
Get the viewer transform used to render image.
|
void |
init(int width,
int height)
Allocate storage such that
getTargetImage() holds an image of
width * height . |
void |
patch(RenderResult patch,
Interval interval,
double ox,
double oy)
Fill in
interval with data from patch , scaled by the
relative scale between this RenderResult and patch , and
shifted such that (0,0) of the patch is placed at
(ox,oy) of this RenderResult |
void |
setScaleFactor(double scaleFactor)
Set the scale factor from target coordinates to screen resolution.
|
void |
setUpdated()
Notify that the
target image data was changed. |
void init(int width, int height)
getTargetImage()
holds an image of
width * height
.
(Called by the renderer
.)
RandomAccessibleInterval<ARGBType> getTargetImage()
(Called by the renderer
.)
AffineTransform3D getViewerTransform()
(Called by the renderer
to set the
transform.)
double getScaleFactor()
void setScaleFactor(double scaleFactor)
void patch(RenderResult patch, Interval interval, double ox, double oy)
interval
with data from patch
, scaled by the
relative scale between this RenderResult
and patch
, and
shifted such that (0,0)
of the patch
is placed at
(ox,oy)
of this RenderResult
Note that only data in interval
will be modified, although the
scaled and shifted patch
might fall partially outside.
void setUpdated()
target image
data was changed.
(Called by the renderer
.)
Copyright © 2015–2021 Fiji. All rights reserved.