ucar.unidata.view.sounding
Class IntermediateRings

java.lang.Object
  extended by ucar.visad.display.Displayable
      extended by ucar.visad.display.DisplayableData
          extended by ucar.unidata.view.sounding.IntermediateRings

public class IntermediateRings
extends DisplayableData

Provides support for intermediate-level rings in a 3D wind hodograph.

Version:
$Id: IntermediateRings.java,v 1.18 2005/05/13 18:33:31 jeffmc Exp $
Author:
Steven R. Emmerson

Field Summary
 
Fields inherited from class ucar.visad.display.DisplayableData
LINE_WIDTH, MANIPULABLE, VISIBLE
 
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
 
Constructor Summary
protected IntermediateRings(IntermediateRings that)
          Constructs from another instance.
  IntermediateRings(RealTupleType polarType)
          Constructs from a type for the vector space.
 
Method Summary
 Displayable cloneForDisplay()
          Returns a clone of this instance suitable for another VisAD display.
protected static Field computeRingField(Gridded1DSet altitudes, SampledSet ringSetTemplate)
          Computes the data object to be displayed from a set of altitudes and a ring template.
 void setAltitudes(Gridded1DSet altitudes)
          Sets the altitudes for the rings.
 void setRingSpeeds(Gridded1DSet speeds)
          Sets the speeds for the rings.
 
Methods inherited from class ucar.visad.display.DisplayableData
addAction, dataChange, destroy, getActive, getAnimationSet, getData, getDataRenderer, getLineWidth, getName, getPointSize, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setLineWidth, setManipulable, setPickable, setPointMode, setPointSize, setUseFastRendering, setVisible, toString
 
Methods inherited from class ucar.visad.display.Displayable
addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setAdjustFlow, setColor, setColorPalette, setColorPalette, setColorUnit, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setDisplayUnit, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setSelectedRange, setUseTimesInAnimation, toFront
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntermediateRings

public IntermediateRings(RealTupleType polarType)
                  throws VisADException,
                         RemoteException
Constructs from a type for the vector space.

Parameters:
polarType - The type for the vector space.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

IntermediateRings

protected IntermediateRings(IntermediateRings that)
                     throws RemoteException,
                            VisADException
Constructs from another instance.

Parameters:
that - The other instance.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.
Method Detail

setAltitudes

public void setAltitudes(Gridded1DSet altitudes)
                  throws VisADException,
                         RemoteException
Sets the altitudes for the rings.

Parameters:
altitudes - The altitudes for the rings.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

setRingSpeeds

public void setRingSpeeds(Gridded1DSet speeds)
                   throws VisADException,
                          RemoteException
Sets the speeds for the rings.

Parameters:
speeds - The speeds for the rings.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

cloneForDisplay

public Displayable cloneForDisplay()
                            throws RemoteException,
                                   VisADException
Returns a clone of this instance suitable for another VisAD display. Underlying data objects are not cloned.

Overrides:
cloneForDisplay in class DisplayableData
Returns:
A clone of this instance.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

computeRingField

protected static Field computeRingField(Gridded1DSet altitudes,
                                        SampledSet ringSetTemplate)
                                 throws VisADException,
                                        RemoteException
Computes the data object to be displayed from a set of altitudes and a ring template.

Parameters:
altitudes - The set of altitudes.
ringSetTemplate - The ring template.
Returns:
The Field of rings.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.