Class CameraDistanceAnnotation

java.lang.Object
org.jzy3d.plot3d.primitives.Drawable
org.jzy3d.plot3d.primitives.Point
org.jzy3d.plot3d.rendering.view.annotation.CameraDistanceAnnotation
All Implemented Interfaces:
ISingleColorable, IGLRenderer, ISortableDraw

public class CameraDistanceAnnotation extends Point
Draws the distance of every scene graph drawable object to camera eye. The distance label is plotted at the barycenter of the object. The camera is represented as a red point.
Author:
Martin
  • Field Details

  • Constructor Details

    • CameraDistanceAnnotation

      public CameraDistanceAnnotation(View view, Color color)
  • Method Details

    • draw

      public void draw(IPainter painter)
      Description copied from class: Drawable
      Call OpenGL2 routines for rendering the object.
      Specified by:
      draw in interface IGLRenderer
      Overrides:
      draw in class Point
    • computeCameraPosition

      public void computeCameraPosition()
    • doDrawCamera

      public void doDrawCamera(IPainter painter, Camera cam)