Class APanamaGLPainterFactory
java.lang.Object
org.jzy3d.chart.factories.APanamaGLPainterFactory
- All Implemented Interfaces:
IPainterFactory
Toolkit-agnostic base for PanamaGL painter factories.
Concrete subclasses (Swing/JavaFX/SWT) must provide the toolkit-dependent
pieces: canvas, frame, mouse/keyboard controllers, screenshot controller,
and mouse picking controller.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IChartFactoryprotected booleanprotected intprotected booleanprotected panamagl.factory.PanamaGLFactoryprotected Function<View, Renderer3D> protected booleanprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpanamagl.factory.PanamaGLFactorybooleanIf true, painters throw an exception as soon as an OpenGL call raises an error.booleanbooleanIf true, painters print each OpenGL call and check errors.newAnimator(ICanvas canvas) protected ICanvasnewOffscreenCanvas(IChartFactory factory, Scene scene, Quality quality) A canvas rendering in an offscreen buffer without window, used instead of the toolkit canvas whensetOffscreen(int, int)was invoked.static Renderer3DnewRenderer3D(IChartFactory factory, View view) The renderer of a chart created by this chart factory.newRenderer3D(View view) The renderer drawing the view in a canvas.newSymbolHandler(IImageWrapper image) voidsetChartFactory(IChartFactory chartFactory) voidsetDebugGL(boolean debugGL) voidsetOffscreen(int width, int height) voidsetOffscreen(Rectangle rectangle) voidvoidsetPanamaGLFactory(panamagl.factory.PanamaGLFactory panamaGLFactory) voidsetRenderer3DFactory(Function<View, Renderer3D> renderer3DFactory) Build the renderers of the canvases of this factory with the given function instead of a defaultRenderer3D.voidsetTraceGL(boolean traceGL) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IPainterFactory
newCanvas, newFrame, newFrame, newKeyboardCameraController, newKeyboardScreenshotController, newMouseCameraController, newMousePickingController
-
Field Details
-
panamaGLFactory
protected panamagl.factory.PanamaGLFactory panamaGLFactory -
chartFactory
-
offscreen
protected boolean offscreen -
debugGL
protected boolean debugGL -
traceGL
protected boolean traceGL -
width
protected int width -
height
protected int height -
renderer3DFactory
-
-
Constructor Details
-
APanamaGLPainterFactory
public APanamaGLPainterFactory()
-
-
Method Details
-
getPanamaGLFactory
public panamagl.factory.PanamaGLFactory getPanamaGLFactory() -
setPanamaGLFactory
public void setPanamaGLFactory(panamagl.factory.PanamaGLFactory panamaGLFactory) -
newPainter
- Specified by:
newPainterin interfaceIPainterFactory
-
newOffscreenCanvas
A canvas rendering in an offscreen buffer without window, used instead of the toolkit canvas whensetOffscreen(int, int)was invoked. -
newRenderer3D
The renderer drawing the view in a canvas. Override or usesetRenderer3DFactory(Function)to customize rendering, e.g. to render with depth peeling. -
getRenderer3DFactory
-
setRenderer3DFactory
Build the renderers of the canvases of this factory with the given function instead of a defaultRenderer3D. This customizes the rendering of any toolkit (Swing, JavaFX, SWT, offscreen) without subclassing its painter factory. Set null to restore the default renderer. -
newRenderer3D
The renderer of a chart created by this chart factory. -
newViewOverlay
- Specified by:
newViewOverlayin interfaceIPainterFactory
-
newViewportLayout
- Specified by:
newViewportLayoutin interfaceIPainterFactory
-
newSymbolHandler
- Specified by:
newSymbolHandlerin interfaceIPainterFactory
-
newAnimator
- Specified by:
newAnimatorin interfaceIPainterFactory
-
getChartFactory
- Specified by:
getChartFactoryin interfaceIPainterFactory
-
setChartFactory
- Specified by:
setChartFactoryin interfaceIPainterFactory
-
isOffscreen
public boolean isOffscreen()- Specified by:
isOffscreenin interfaceIPainterFactory
-
setOffscreenDisabled
public void setOffscreenDisabled()- Specified by:
setOffscreenDisabledin interfaceIPainterFactory
-
setOffscreen
public void setOffscreen(int width, int height) - Specified by:
setOffscreenin interfaceIPainterFactory
-
setOffscreen
- Specified by:
setOffscreenin interfaceIPainterFactory
-
getOffscreenDimension
- Specified by:
getOffscreenDimensionin interfaceIPainterFactory
-
isDebugGL
public boolean isDebugGL()If true, painters throw an exception as soon as an OpenGL call raises an error. Must be set before creating a chart. Slows down rendering.- Specified by:
isDebugGLin interfaceIPainterFactory
-
setDebugGL
public void setDebugGL(boolean debugGL) - Specified by:
setDebugGLin interfaceIPainterFactory
-
isTraceGL
public boolean isTraceGL()If true, painters print each OpenGL call and check errors. Must be set before creating a chart. -
setTraceGL
public void setTraceGL(boolean traceGL)
-