Class CoplanarityManager

java.lang.Object
org.jzy3d.plot3d.primitives.Drawable
org.jzy3d.plot3d.primitives.CoplanarityManager
All Implemented Interfaces:
IGLBindedResource, IGLRenderer, ISortableDraw

public class CoplanarityManager extends Drawable implements IGLBindedResource
This pseudo-drawable will handle drawing outlines (such as polygon border), contour line (lying exactly ON a polygon), or text which position is ON a polygon) that may be coplanar or partially hidden by a collection of polygons. This allows rendering outlines properly and hence deals with Z-fighting artifacts, 2d text crossing 3D contents, etc.
Author:
Martin Pernollet
  • Field Details

  • Constructor Details

    • CoplanarityManager

      public CoplanarityManager(Drawable outline, Drawable plane)
    • CoplanarityManager

      public CoplanarityManager(List<? extends Drawable> outlines, Drawable plane)
  • Method Details

    • computeBounds

      protected void computeBounds(List<? extends Drawable> outlines, Drawable plane)
      Will try to compute bounds if they are available. This should be invoked
      • While building the object
      • While mounting the object, has it may contain resource that have their bounds known after mounting.
      Parameters:
      outlines -
      plane -
    • draw

      public void draw(IPainter painter)
      Implements recipe given by
      Specified by:
      draw in interface IGLRenderer
      Specified by:
      draw in class Drawable
    • applyGeometryTransform

      public void applyGeometryTransform(Transform transform)
      Specified by:
      applyGeometryTransform in class Drawable
    • updateBounds

      public void updateBounds()
      Specified by:
      updateBounds in class Drawable
    • mount

      public void mount(IPainter painter)
      Description copied from interface: IGLBindedResource
      Mount resources to gl context
      Specified by:
      mount in interface IGLBindedResource
    • mount

      protected void mount(IPainter painter, Drawable d)
    • hasMountedOnce

      public boolean hasMountedOnce()
      Description copied from interface: IGLBindedResource
      Return true if mount(...) has been called at least one time
      Specified by:
      hasMountedOnce in interface IGLBindedResource