Class 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
    • Constructor Detail

      • CameraDistanceAnnotation

        public CameraDistanceAnnotation​(View view,
                                        Color color)
    • Method Detail

      • 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)