Class ContourPlot.TextRenderer

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

public class ContourPlot.TextRenderer extends ContourPlot.GenericRenderer<ContourPlot.Text>
The TrianglesRenderer is an implementation of the ContourPlot.GenericRenderer for ContourPlot.Text. It draws the vertex arrays of its Text objects and uses the texture of the ContourPlot.CharacterAtlas corresponding to the Text's font to texture the drawn quads in order to display text.
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
  • Field Details

  • Constructor Details

    • TextRenderer

      public TextRenderer()
  • 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