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
The TrianglesRenderer is an implementation of the
Its fragment shader draws the picking color into the second render buffer alongside the 'visible' color that is drawn into the first render buffer.
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 Summary
FieldsFields inherited from class gov.nih.mipav.model.algorithms.ContourPlot.GenericRenderer
isEnabled, itemsToRender, view -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrenderFallback(Graphics2D g, 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, setViewMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gov.nih.mipav.model.algorithms.ContourPlot.PDFRenderer
renderPDF
-
Field Details
-
NL
protected static final char NL- See Also:
-
-
Constructor Details
-
TextRenderer
public TextRenderer()
-
-
Method Details
-
renderFallback
Description copied from interface:ContourPlot.RendererRenders thisContourPlot.Renderer's 'scene'. This is the fallback path in case OpenGL based rendering throughis not available.invalid reference
#render(int, int, int, int)- 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
-