Package gov.nih.mipav.model.algorithms
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 theContourPlot.GenericRenderer
forContourPlot.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
-
-
Field Summary
-
Fields inherited from class gov.nih.mipav.model.algorithms.ContourPlot.GenericRenderer
isEnabled, itemsToRender, view
-
-
Constructor Summary
Constructors Constructor Description TrianglesRenderer()
-
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
-
-
-
-
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
-
-