public class Hodograph3DDisplay extends WindProfileDisplay
ACTIVE_MEAN_WIND, ACTIVE_PROFILE, GEOPOTENTIAL_ALTITUDE, PROFILE_DIRECTION, PROFILE_SPEED
behavior, defaultMouseFunctions, log_, POINT_MODE
Constructor and Description |
---|
Hodograph3DDisplay()
Default constructor.
|
Hodograph3DDisplay(visad.Real minZ,
visad.Real maxZ,
visad.Real maxW)
Constructs with given altitude extent and maximum wind speed.
|
Modifier and Type | Method and Description |
---|---|
protected void |
displayAltitudeExtentChange()
Handles a change to the extent of the displayed altitude.
|
static visad.Real |
getDefaultMaxSpeed()
Returns the default, maximum displayed wind speed.
|
visad.Real |
getMaxDisplaySpeed()
Returns the maximum, displayed, wind speed.
|
visad.Real |
getMaxProfileSpeed()
Returns the maximum profile wind speed.
|
visad.Real |
getRingIncrement()
Returns the speed increment between rings.
|
visad.Linear1DSet |
getRingSpeeds()
Returns the set of ring speeds.
|
visad.Unit |
getSpeedUnit()
Returns the displayed, speed unit.
|
boolean |
isAutoscaleSpeed()
Get the state of automatic speed-scaling.
|
static void |
main(java.lang.String[] args)
Tests this class.
|
protected Displayable |
newMeanWind()
Returns the MeanWind Displayable with a missing mean-wind.
|
protected Displayable |
newMeanWind(visad.DataReference meanWindRef)
Returns a MeanWind Displayable corresponding to a data reference for a
mean-wind Tuple.
|
protected Displayable |
newMeanWind(visad.Tuple meanWind)
Returns a MeanWind Displayable corresponding to a mean-wind Tuple.
|
protected WindProfile |
newWindProfile()
Constructs the displayable WindProfile appropriate to this
WindProfileDisplay.
|
void |
setAutoscaleSpeed(boolean value)
Toggle automatic speed-scaling.
|
void |
setBackgroundVisible(boolean b)
Display or hide the background
|
protected void |
setCenterPoleExtent()
Sets the extent of the center pole
|
void |
setCenterPoleVisible(boolean visible)
Sets the visiblity of the center pole.
|
void |
setCompassLabelsVisible(boolean visible)
Sets the visiblity of the compass labels.
|
protected void |
setCrossHairs()
Sets the cross hairs.
|
void |
setCrossHairsVisible(boolean visible)
Sets the visiblity of the cross hairs.
|
protected void |
setCursorPosition(double[] position)
Sets the cursor position.
|
protected void |
setDisplayAltitudes()
Sets the displayed altitudes.
|
protected void |
setDisplayAltitudes(visad.Gridded1DSet altitudes)
Sets the displayed altitudes.
|
void |
setIntermediateRingsVisible(boolean visible)
Sets the visiblity of the intermediate-level rings.
|
protected void |
setMaxDisplaySpeed()
Sets the maximum, displayed, wind speed.
|
void |
setMaxDisplaySpeed(visad.Real speed)
Sets the maximum, displayed, wind speed from a Real.
|
void |
setOriginalProfile(int index)
Resets the original sounding in the specified sounding.
|
protected void |
setRingIncrement()
Sets the speed increment between rings.
|
void |
setRingIncrement(visad.Real increment)
Sets the speed increment between rings.
|
protected void |
setRingSpeeds()
Sets the ring speeds.
|
void |
setRingSpeeds(visad.Linear1DSet speeds)
Sets the ring speeds from a set of speeds.
|
void |
setRingsVisible(boolean visible)
Sets the visiblity of the upper and lower rings.
|
protected void |
setSpeedLabels()
Sets the speed labels.
|
void |
setSpeedLabelsVisible(boolean visible)
Sets the visiblity of the speed labels.
|
protected void |
setSpeedRings()
Sets the speed-rings for the background based on the maximum wind speed
for the display and the display speed unit.
|
void |
setSpeedUnit(visad.Unit unit)
Sets the displayed, speed unit.
|
protected void |
setWindScalarMapRanges()
Sets the extents of the wind ScalarMap-s.
|
addProfile, clear, computeIncrement, getAltitudeUnit, getCursorPosition, getDefaultMaxAltitude, getDefaultMinAltitude, getGeopotentialAltitude, getMaxDisplayAltitude, getMaxProfileAltitude, getMinDisplayAltitude, getMinProfileAltitude, getProfileDirection, getProfileSpeed, getWindProfile, getWindProfileSet, isAutoscaleAltitude, removeMeanWind, removeProfile, setActiveMeanWind, setActiveWindProfile, setAltitudeColorMapRange, setAltitudeMapRange, setAltitudeScaleVisible, setAltitudeUnit, setAutoscaleAltitude, setDisplayAltitudeExtent, setDisplayAltitudeExtent, setGeopotentialAltitude, setMeanWind, setMeanWind, setMeanWindVisible, setProfileVisible
addDisplayable, addDisplayListener, addKeyboardBehavior, addPropertyChangeListener, addPropertyChangeListener, addScalarMap, addScalarMaps, addVetoableChangeListener, addVetoableChangeListener, buildAnimationSet, dataChange, destroy, draw, ensureInactive, equals, finalize, firePropertyChange, firePropertyChange, getAnimationSetFromDisplayables, getAnimationStringVisible, getBackground, getComponent, getDestroyed, getDisplay, getDisplayableCount, getDisplayables, getDisplayables, getDisplayAspect, getDisplayComponent, getDisplayScale, getForeground, getImage, getMouseBehavior, getMouseFunctionMap, getOffscreenDimension, getProjectionMatrix, getRotation, getSavedProjectionMatrix, getScale, getScreenBounds, getStereoAvailable, getWaitMessageVisible, handleMouseWheelMoved, hashCode, indexOf, init, is3D, isActive, isPointMode, printMatrix, printMe, rebuild, rebuildDisplay, reDisplayAll, removeDisplayable, removeDisplayables, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, removeScalarMaps, removeVetoableChangeListener, removeVetoableChangeListener, replaceScalarMap, reScale, resetClipDistance, resetMouseFunctions, resetProjection, rotate, rotateX, rotateY, rotateZ, saveCurrentDisplay, saveCurrentDisplay, saveCurrentDisplay, saveProjection, setActive, setAnimation, setAnimationStringVisible, setBackground, setDefaultMouseFunctions, setDisplayables, setDisplayables, setDisplayActive, setDisplayAspect, setDisplayInactive, setEyePosition, setForeground, setKeyboardBehavior, setKeyboardEventMap, setKeyboardEventMap, setMouseFunctions, setOffscreenDimension, setPointMode, setProjectionMatrix, setRebuildNecessary, setWaitMessageVisible, setWheelEventMap, translate, zoom, zoom
public Hodograph3DDisplay() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public Hodograph3DDisplay(visad.Real minZ, visad.Real maxZ, visad.Real maxW) throws visad.VisADException, java.rmi.RemoteException
minZ
- The minimum displayed altitude.maxZ
- The maximum displayed altitude.maxW
- The maximum wind speed.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public static visad.Real getDefaultMaxSpeed() throws visad.VisADException
visad.VisADException
- VisAD failure.public void setAutoscaleSpeed(boolean value)
value
- Autoscale speed if true, otherwise keep speed scale
the same.public boolean isAutoscaleSpeed()
protected WindProfile newWindProfile() throws visad.VisADException, java.rmi.RemoteException
newWindProfile
in class WindProfileDisplay
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setBackgroundVisible(boolean b) throws visad.VisADException, java.rmi.RemoteException
setBackgroundVisible
in class WindProfileDisplay
b
- display background if true, otherwise hide the backgroundvisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setCompassLabelsVisible(boolean visible) throws visad.VisADException, java.rmi.RemoteException
visible
- Whether or not the displayable should be
visible.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setSpeedLabelsVisible(boolean visible) throws visad.VisADException, java.rmi.RemoteException
visible
- Whether or not the displayable should be
visible.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setCrossHairsVisible(boolean visible) throws visad.VisADException, java.rmi.RemoteException
visible
- Whether or not the displayable should be
visible.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setRingsVisible(boolean visible) throws visad.VisADException, java.rmi.RemoteException
visible
- Whether or not the displayable should be
visible.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setIntermediateRingsVisible(boolean visible) throws visad.VisADException, java.rmi.RemoteException
visible
- Whether or not the displayable should be
visible.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setCenterPoleVisible(boolean visible) throws visad.VisADException, java.rmi.RemoteException
visible
- Whether or not the displayable should be
visible.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void setDisplayAltitudes(visad.Gridded1DSet altitudes) throws visad.VisADException, java.rmi.RemoteException
altitudes
- The altitudes to display.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void setWindScalarMapRanges() throws java.rmi.RemoteException, visad.VisADException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void setCenterPoleExtent() throws java.rmi.RemoteException, visad.VisADException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void setDisplayAltitudes() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void setRingSpeeds() throws java.rmi.RemoteException, visad.VisADException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setRingSpeeds(visad.Linear1DSet speeds) throws visad.VisADException, java.rmi.RemoteException
speeds
- The set of speeds for the rings.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public visad.Linear1DSet getRingSpeeds()
protected void setSpeedRings() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- necessary VisAD object couldn't be created.java.rmi.RemoteException
- Java RMI Exceptionprotected void setCrossHairs() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void setSpeedLabels() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void displayAltitudeExtentChange() throws visad.VisADException, java.rmi.RemoteException
displayAltitudeExtentChange
in class WindProfileDisplay
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public visad.Real getMaxProfileSpeed()
public void setOriginalProfile(int index) throws visad.VisADException, java.rmi.RemoteException
index
- The index of the sounding.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void setMaxDisplaySpeed() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setMaxDisplaySpeed(visad.Real speed) throws visad.VisADException, java.rmi.RemoteException
speed
- the new, maximum, displayed, wind speed.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public visad.Real getMaxDisplaySpeed()
protected void setRingIncrement() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setRingIncrement(visad.Real increment) throws visad.VisADException, java.rmi.RemoteException
increment
- The speed increment between rings.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public visad.Real getRingIncrement()
public void setSpeedUnit(visad.Unit unit) throws visad.UnitException, visad.VisADException, java.rmi.RemoteException
unit
- The displayed, speed unit.visad.UnitException
- Argument has invalid unit.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public visad.Unit getSpeedUnit()
protected void setCursorPosition(double[] position) throws visad.VisADException, java.rmi.RemoteException
setCursorPosition
in class WindProfileDisplay
position
- The (speed,direction,altitude) cursor positionvisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected Displayable newMeanWind(visad.Tuple meanWind) throws visad.VisADException, java.rmi.RemoteException
newMeanWind
in class WindProfileDisplay
meanWind
- the mean-wind Tuplevisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected Displayable newMeanWind(visad.DataReference meanWindRef) throws visad.VisADException, java.rmi.RemoteException
newMeanWind
in class WindProfileDisplay
meanWindRef
- The data reference for the mean-wind Tuplevisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected Displayable newMeanWind()
newMeanWind
in class WindProfileDisplay
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- Test arguments. Ignored.java.lang.Exception
- Something went wrong.