Interface RenderResult

  • All Known Implementing Classes:
    BufferedImageRenderResult

    public interface RenderResult
    Provides the renderer with a target image (RandomAccessibleInterval<ARGBType>) to render to. Provides the RenderTarget with the rendered image and transform etc necessary to display it.
    • Method Detail

      • init

        void init​(int width,
                  int height)
        Allocate storage such that getTargetImage() holds an image of width * height.

        (Called by the renderer.)

      • 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 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

        Note that only data in interval will be modified, although the scaled and shifted patch might fall partially outside.

      • setUpdated

        void setUpdated()
        Notify that the target image data was changed.

        (Called by the renderer.)