Package gov.nih.mipav.model.algorithms
Interface ContourPlot.Renderer
- All Superinterfaces:
ContourPlot.PDFRenderer
- All Known Implementing Classes:
ContourPlot.CompleteRenderer,ContourPlot.CoordSysRenderer,ContourPlot.GenericRenderer,ContourPlot.Legend,ContourPlot.LinesRenderer,ContourPlot.TextRenderer,ContourPlot.TrianglesRenderer
- Enclosing class:
ContourPlot
The Renderer interface defines methods to
initialize the renderer,
execute a rendering pass,
close the renderer.
Implementation Notice:
If this renderer directly uses a shader,
its fragment shader is obliged to output color for two
buffers, which are the two color attachments of an
.
These have to be written to invalid reference
FBO
layout(location=0) out vec4 c1; and
layout(location=1) out vec4 c2;.
When the renderer has no use for the picking attachment, vec4(0,0,0,0)
can be written as default.
- Author:
- hageldave
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this renderer is enabled or not.default voidrenderFallback(Graphics2D g, Graphics2D p, int w, int h) Renders thisContourPlot.Renderer's 'scene'.Methods inherited from interface gov.nih.mipav.model.algorithms.ContourPlot.PDFRenderer
renderPDF
-
Method Details
-
renderFallback
Renders 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
-
isEnabled
boolean isEnabled()Whether this renderer is enabled or not. By default a renderer is enabled and will render uponorinvalid reference
#render(int, int, int, int). When disabled those methods return right away and will not render anything.invalid reference
#renderSVG(org.w3c.dom.Document, org.w3c.dom.Element, int, int)- Returns:
- true when active
-