org.jzy3d.plot3d.rendering.view.annotation
Class CameraDistanceAnnotation

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

public class CameraDistanceAnnotation
extends Point

Draws all point distance to camera eye. The camera is represented as a red point.

Author:
Martin

Field Summary
protected  ITextRenderer txt
           
protected  View view
           
 
Fields inherited from class org.jzy3d.plot3d.primitives.Point
rgb, width, xyz
 
Fields inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, transform, transformBefore
 
Constructor Summary
CameraDistanceAnnotation(View view, Color color)
           
 
Method Summary
 void computeCameraPosition()
           
 void doDrawCamera(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera cam)
           
 void draw(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera cam)
          Call OpenGL2 routines for rendering the object.
 
Methods inherited from class org.jzy3d.plot3d.primitives.Point
applyGeometryTransform, clone, getColor, getCoord, getDistance, getLongestDistance, getShortestDistance, setColor, setCoord, setData, setWidth, toString, updateBounds
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
addDrawableListener, call, call, callWithAlphaFactor, dispose, doDrawBounds, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getLegend, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setTransform, setTransformBefore, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

view

protected View view

txt

protected ITextRenderer txt
Constructor Detail

CameraDistanceAnnotation

public CameraDistanceAnnotation(View view,
                                Color color)
Method Detail

draw

public void draw(javax.media.opengl.GL gl,
                 javax.media.opengl.glu.GLU glu,
                 Camera cam)
Description copied from class: AbstractDrawable
Call OpenGL2 routines for rendering the object.

Specified by:
draw in interface IGLRenderer
Overrides:
draw in class Point
Parameters:
gl - GL2 context
glu - GLU context
cam - a reference to a shooting Camera.

computeCameraPosition

public void computeCameraPosition()

doDrawCamera

public void doDrawCamera(javax.media.opengl.GL gl,
                         javax.media.opengl.glu.GLU glu,
                         Camera cam)


Copyright © 2013. All rights reserved.