Package gov.nih.mipav.model.algorithms
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 theContourPlot.GenericRenderer
forContourPlot.Text
. It draws the vertex arrays of its Text objects and uses the texture of theContourPlot.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 Summary
Fields Modifier and Type Field Description protected static char
NL
-
Fields inherited from class gov.nih.mipav.model.algorithms.ContourPlot.GenericRenderer
isEnabled, itemsToRender, view
-
-
Constructor Summary
Constructors Constructor Description TextRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
renderFallback(java.awt.Graphics2D g, java.awt.Graphics2D p, int w, int h)
Renders thisContourPlot.Renderer
's 'scene'.-
Methods inherited from class gov.nih.mipav.model.algorithms.ContourPlot.GenericRenderer
addItemToRender, getItemsToRender, isEnabled, removeItemToRender, setView
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nih.mipav.model.algorithms.ContourPlot.PDFRenderer
renderPDF
-
-
-
-
Field Detail
-
NL
protected static final char NL
- See Also:
- Constant Field Values
-
-
Method Detail
-
renderFallback
public void renderFallback(java.awt.Graphics2D g, java.awt.Graphics2D p, int w, int h)
Description copied from interface:ContourPlot.Renderer
Renders thisContourPlot.Renderer
's 'scene'. This is the fallback path in case OpenGL based rendering through#render(int, int, int, int)
is not available.- Parameters:
g
- main graphics object for drawing onto the framebufferp
- graphics object for drawing onto the picking framebuffer (invisible but used for picking)w
- width of the current viewport in pixelsh
- height of the current viewport in pixels
-
-