Class PanamaGLDepthPeeling

java.lang.Object
org.jzy3d.plot3d.rendering.ddp.PanamaGLDepthPeeling

public class PanamaGLDepthPeeling extends Object
Render the charts of any PanamaGL chart factory with depth peeling, whatever its toolkit (Swing, JavaFX, SWT) or offscreen.

ChartFactory factory = PanamaGLDepthPeeling.enable(new PanamaGLJavaFXChartFactory(), PeelingMethod.DUAL_PEELING_MODE);
Chart chart = factory.newChart();

PanamaGLDepthPeelingChartFactory does the same for Swing.
  • Constructor Details

    • PanamaGLDepthPeeling

      public PanamaGLDepthPeeling()
  • Method Details

    • enable

      public static <T extends IChartFactory> T enable(T factory, PeelingMethod method)
      Make the charts created afterward by this factory render with depth peeling.
      Throws:
      IllegalArgumentException - if the factory does not render with PanamaGL.
    • disable

      public static <T extends IChartFactory> T disable(T factory)
      Make the charts created afterward by this factory render without depth peeling.