Class ContourPlot.TrianglesRenderer

java.lang.Object
gov.nih.mipav.model.algorithms.ContourPlot.GenericRenderer<ContourPlot.Triangles>
gov.nih.mipav.model.algorithms.ContourPlot.TrianglesRenderer
All Implemented Interfaces:
ContourPlot.AdaptableView, ContourPlot.PDFRenderer, ContourPlot.Renderer
Enclosing class:
ContourPlot

public class ContourPlot.TrianglesRenderer extends ContourPlot.GenericRenderer<ContourPlot.Triangles>
The TrianglesRenderer is an implementation of the ContourPlot.GenericRenderer for ContourPlot.Triangles.
Its fragment shader draws the picking color into the second render buffer alongside the 'visible' color that is drawn into the first render buffer.
Author:
hageldave
  • Constructor Details

    • TrianglesRenderer

      public TrianglesRenderer()
  • Method Details

    • renderFallback

      public void renderFallback(Graphics2D g, Graphics2D p, int w, int h)
      Description copied from interface: ContourPlot.Renderer
      Renders this ContourPlot.Renderer's 'scene'. This is the fallback path in case OpenGL based rendering through
      invalid reference
      #render(int, int, int, int)
      is not available.
      Parameters:
      g - main graphics object for drawing onto the framebuffer
      p - graphics object for drawing onto the picking framebuffer (invisible but used for picking)
      w - width of the current viewport in pixels
      h - height of the current viewport in pixels