-
- All Known Implementing Classes:
BufferedImageRenderResult
public interface RenderResultProvides therendererwith a target image (RandomAccessibleInterval<ARGBType>) to render to. Provides theRenderTargetwith the rendered image and transform etc necessary to display it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetScaleFactor()Get the scale factor from target coordinates to screen resolution.net.imglib2.RandomAccessibleInterval<net.imglib2.type.numeric.ARGBType>getTargetImage()Get the image to render to.net.imglib2.realtransform.AffineTransform3DgetViewerTransform()Get the viewer transform used to render image.voidinit(int width, int height)Allocate storage such thatgetTargetImage()holds an image ofwidth * height.voidpatch(RenderResult patch, net.imglib2.Interval interval, double ox, double oy)Fill inintervalwith data frompatch, scaled by the relative scale between thisRenderResultandpatch, and shifted such that(0,0)of thepatchis placed at(ox,oy)of thisRenderResultvoidsetScaleFactor(double scaleFactor)Set the scale factor from target coordinates to screen resolution.voidsetUpdated()Notify that thetarget imagedata was changed.
-
-
-
Method Detail
-
init
void init(int width, int height)Allocate storage such thatgetTargetImage()holds an image ofwidth * height.(Called by the
renderer.)
-
getTargetImage
net.imglib2.RandomAccessibleInterval<net.imglib2.type.numeric.ARGBType> getTargetImage()
Get the image to render to.(Called by the
renderer.)- Returns:
- the image to render to
-
getViewerTransform
net.imglib2.realtransform.AffineTransform3D getViewerTransform()
Get the viewer transform used to render image. This is with respect to the screen resolution (doesn't include scaling).(Called by the
rendererto set the transform.)
-
getScaleFactor
double getScaleFactor()
Get the scale factor from target coordinates to screen resolution.
-
setScaleFactor
void setScaleFactor(double scaleFactor)
Set the scale factor from target coordinates to screen resolution.
-
patch
void patch(RenderResult patch, net.imglib2.Interval interval, double ox, double oy)
Fill inintervalwith data frompatch, scaled by the relative scale between thisRenderResultandpatch, and shifted such that(0,0)of thepatchis placed at(ox,oy)of thisRenderResultNote that only data in
intervalwill be modified, although the scaled and shiftedpatchmight fall partially outside.
-
setUpdated
void setUpdated()
Notify that thetarget imagedata was changed.(Called by the
renderer.)
-
-