ucar.unidata.view.sounding
Class HodographDisplayRendererJ3D

java.lang.Object
  extended by visad.DisplayRenderer
      extended by visad.java3d.DisplayRendererJ3D
          extended by visad.java3d.DefaultDisplayRendererJ3D
              extended by ucar.unidata.view.sounding.HodographDisplayRendererJ3D
All Implemented Interfaces:
EventListener, WindProfileDisplayRenderer, ControlListener, RendererSourceListener

public class HodographDisplayRendererJ3D
extends DefaultDisplayRendererJ3D
implements WindProfileDisplayRenderer

Provides a VisAD DisplayRendererJ3D for a wind hodograph.

Version:
$Id: HodographDisplayRendererJ3D.java,v 1.13 2005/05/13 18:33:31 jeffmc Exp $
Author:
Don Murray, Unidata/UCAR, Steven R. Emmerson, Unidata/UCAR

Constructor Summary
HodographDisplayRendererJ3D()
          Constructs from nothing.
 
Method Summary
 void addCursorPositionListener(PropertyChangeListener listener)
          Adds a listener for changes to the cursor position.
protected  double[] getCursorInDisplayCoords()
          Returns the cursor position in (speed,direction,altitude) coordinates.
 double[] getCursorPosition()
          Gets the cursor position.
 void removeCursorPositionListener(PropertyChangeListener listener)
          Removes a listener for changes to the cursor position.
 void setCursorStringVector()
          Sets the cursor string vector.
 
Methods inherited from class visad.java3d.DefaultDisplayRendererJ3D
createSceneGraph, destroy, setBoxAspect, setLineWidth
 
Methods inherited from class visad.java3d.DisplayRendererJ3D
addDirectManipulationSceneGraphComponent, addKeyboardBehavior, addLockedSceneGraphComponent, addLockedSceneGraphComponent, addSceneGraphComponent, anyDirects, clearScale, clearScales, clearScene, controlChanged, createBasicSceneGraph, createBasicSceneGraph, depth_cursor, drag_cursor, drag_depth, drawCursorStringVector, findDirect, getBoxOnBranch, getCanvas, getCursor, getCursorOnBranch, getImage, getMouseBehavior, getRoot, getTextureHeightMax, getTextureWidthMax, getTrans, getView, getViewTrans, initControl, legalDataRenderer, makeControl, makeDefaultRenderer, render_trigger, rendererDeleted, setClip, setCursorLoc, setCursorOn, setDirectOn, setDisplay, setScale, setScale, setScale, setScaleOn, setTransform3D, setWaitFlag, updateLockedTrans
 
Methods inherited from class visad.DisplayRenderer
getAnimationString, getAnimationStringVisible, getBoxOn, getCursorColor, getCursorStringVector, getCursorStringVectorUnconditional, getDirectAxisValue, getDirectAxisValue, getDisplay, getMode2D, getPickThreshhold, getRendererControl, getWaitFlag, getWaitMessageVisible, legalDisplayScalar, prepareAction, setAnimationString, setAnimationStringVisible, setBackgroundColor, setBackgroundColor, setBoxColor, setBoxColor, setBoxOn, setCursorColor, setCursorColor, setCursorStringOn, setCursorStringVector, setForegroundColor, setForegroundColor, setPickThreshhold, setWaitMessageVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ucar.unidata.view.sounding.WindProfileDisplayRenderer
setBoxOn, setCursorStringOn
 

Constructor Detail

HodographDisplayRendererJ3D

public HodographDisplayRendererJ3D()
Constructs from nothing.

Method Detail

setCursorStringVector

public void setCursorStringVector()
Sets the cursor string vector.

Specified by:
setCursorStringVector in interface WindProfileDisplayRenderer
Overrides:
setCursorStringVector in class DisplayRenderer

getCursorPosition

public double[] getCursorPosition()
Gets the cursor position.

Specified by:
getCursorPosition in interface WindProfileDisplayRenderer
Returns:
The (speed,direction,altitude) cursor position.

addCursorPositionListener

public void addCursorPositionListener(PropertyChangeListener listener)
Adds a listener for changes to the cursor position.

Specified by:
addCursorPositionListener in interface WindProfileDisplayRenderer
Parameters:
listener - The change listener.

removeCursorPositionListener

public void removeCursorPositionListener(PropertyChangeListener listener)
Removes a listener for changes to the cursor position.

Specified by:
removeCursorPositionListener in interface WindProfileDisplayRenderer
Parameters:
listener - The change listener.

getCursorInDisplayCoords

protected double[] getCursorInDisplayCoords()
Returns the cursor position in (speed,direction,altitude) coordinates.

Returns:
The cursor position.