Package gov.nih.mipav.model.algorithms
Class ContourPlot.LinesRenderer
java.lang.Object
gov.nih.mipav.model.algorithms.ContourPlot.GenericRenderer<ContourPlot.Lines>
gov.nih.mipav.model.algorithms.ContourPlot.LinesRenderer
- All Implemented Interfaces:
ContourPlot.AdaptableView,ContourPlot.PDFRenderer,ContourPlot.Renderer
- Enclosing class:
ContourPlot
The LinesRenderer 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.Lines.
This renderer uses a geometry shader that extends a line primitive
into a quad of width that corresponds to the line width of the Lines
object.
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 TypeMethodDescriptionprotected double[]findStrokeInterval(double current, double strokeLen, short pattern) voidrenderFallback(Graphics2D g, Graphics2D p, int w, int h) Renders thisContourPlot.Renderer's 'scene'.private voidrenderFallbackLinesCT(Graphics2D g, Graphics2D p, ContourPlot.Lines lines, double translateX, double translateY, double scaleX, double scaleY, Rectangle2D viewportRect, float thickness) private voidrenderFallbackLinesVT(Graphics2D g, Graphics2D p, ContourPlot.Lines lines, double translateX, double translateY, double scaleX, double scaleY, Rectangle2D viewportRect, float[][] polygonCoords) protected float[]strokePattern2dashPattern(short pattern, float strokeLen) protected int[]transferBits(short bits, int[] target) 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
-
LinesRenderer
public LinesRenderer()
-
-
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
-
renderFallbackLinesCT
private void renderFallbackLinesCT(Graphics2D g, Graphics2D p, ContourPlot.Lines lines, double translateX, double translateY, double scaleX, double scaleY, Rectangle2D viewportRect, float thickness) -
renderFallbackLinesVT
private void renderFallbackLinesVT(Graphics2D g, Graphics2D p, ContourPlot.Lines lines, double translateX, double translateY, double scaleX, double scaleY, Rectangle2D viewportRect, float[][] polygonCoords) -
findStrokeInterval
protected double[] findStrokeInterval(double current, double strokeLen, short pattern) -
transferBits
protected int[] transferBits(short bits, int[] target) -
strokePattern2dashPattern
protected float[] strokePattern2dashPattern(short pattern, float strokeLen)
-