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

java.lang.Object
  extended by org.jzy3d.plot3d.primitives.AbstractDrawable
      extended by org.jzy3d.plot3d.primitives.AbstractWireframeable
          extended by org.jzy3d.plot3d.primitives.LineStrip
              extended by org.jzy3d.plot3d.rendering.view.annotation.CameraPathAnnotation
All Implemented Interfaces:
IGLRenderer, ISortableDraw

public class CameraPathAnnotation
extends LineStrip

Record the camera position at regular interval and draws the path based on these point accumulation.

Author:
Martin

Field Summary
protected  TicToc timer
           
protected  View view
           
 
Fields inherited from class org.jzy3d.plot3d.primitives.LineStrip
points, showPoints, width
 
Fields inherited from class org.jzy3d.plot3d.primitives.AbstractWireframeable
facestatus, wfcolor, wfstatus, wfwidth
 
Fields inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, transform, transformBefore
 
Constructor Summary
CameraPathAnnotation(View view, Color color)
           
 
Method Summary
 void draw(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera cam)
          Call OpenGL2 routines for rendering the object.
 void updateCameraPath()
           
 
Methods inherited from class org.jzy3d.plot3d.primitives.LineStrip
add, addAll, addAll, applyGeometryTransform, drawLine, drawPoints, get, getDistance, getLongestDistance, getPoints, getShortestDistance, isShowPoints, merge, setShowPoints, setWidth, size, toString, updateBounds
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractWireframeable
getFaceDisplayed, getWireframeColor, getWireframeDisplayed, getWireframeWidth, setFaceDisplayed, setWireframeColor, setWireframeDisplayed, setWireframeWidth
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

view

protected View view

timer

protected TicToc timer
Constructor Detail

CameraPathAnnotation

public CameraPathAnnotation(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 LineStrip
Parameters:
gl - GL2 context
glu - GLU context
cam - a reference to a shooting Camera.

updateCameraPath

public void updateCameraPath()


Copyright © 2013. All rights reserved.