public class FlowDisplayable extends RGBDisplayable implements GridDisplayable
DisplayableData.DragAdapter| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COLOR
The name of the color property.
|
static java.lang.String |
FLOW_TYPE
The name of the "real-type" property.
|
static int |
NH_ORIENTATION
Value for Northern Hemisphere orientation
|
static int |
SH_ORIENTATION
Value for Southern Hemisphere orientation
|
protected int |
spdIndex
speed index
|
protected visad.Unit |
speedUnit
max flow range
|
COLOR_PALETTE, POLYGON_FILL, POLYGON_LINE, POLYGON_POINT, RGB_REAL_TYPELINE_WIDTH, MANIPULABLE, renderer, VISIBLEDISPLAY, parent, SCALAR_MAP_SET| Modifier | Constructor and Description |
|---|---|
protected |
FlowDisplayable(FlowDisplayable that)
Constructs from another instance.
|
|
FlowDisplayable(java.lang.String name,
visad.RealTupleType rTT)
Constructs from a name for the Displayable and the type of the
parameter.
|
|
FlowDisplayable(java.lang.String name,
visad.RealTupleType rTT,
float flowscale)
Constructs from a name for the Displayable and the type of the
parameter, and the desired size of "scale"
|
|
FlowDisplayable(java.lang.String name,
visad.RealTupleType rTT,
float flowscale,
boolean useSpeedForColor)
Constructs from a name for the Displayable and the type of the
parameter, and the desired size of "scale"
|
| Modifier and Type | Method and Description |
|---|---|
Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display.
|
boolean |
get3DFlow()
Check to see if this is 3D flow
|
boolean |
getAdjustFlow()
Returns indicator whether the flow should be adjusted to the earth
|
int |
getBarbOrientation()
Returns indicator whether wind barb style is that used in
the northern hemisphere or the southern hemisphere.
|
visad.RealTupleType |
getFlowTuple()
Returns the RealTupleType of the parameter.
|
boolean |
getForward()
_more_
|
float |
getRibbonWidth()
_more_
|
int |
getSpeedTypeIndex()
Get the index of the speed type if this is not a cartesian wind
|
boolean |
getStreamlinesEnabled()
Returns boolean whether streamlines are enabled.
|
int |
getTrajStartLevel()
_more_
|
float[][] |
getTrajStartPoints()
_more_
|
visad.RealTupleType |
getTrajStartPointType()
_more_
|
float |
getTrajWidth()
_more_
|
int |
getZskip()
_more_
|
boolean |
isCartesianWind()
Check to see if the wind data is cartesian (u,v) or
if it's polar (spd, dir).
|
void |
loadData(visad.FieldImpl field)
Set the data into the Displayable
|
void |
loadTopoData(visad.FieldImpl topo)
_more_
|
void |
resetTrojectories()
resets trajectory parms
|
void |
set3DFlow(boolean threeD)
Set to use 3D flow
|
void |
setAdjustFlow(boolean adjust)
Set indicator whether winds should be adusted or not
|
void |
setArrowHead(boolean onoff)
_more_
|
void |
setArrowHeadSize(float size)
_more_
|
void |
setAutoScale(boolean auto)
Set the autoscale property
|
void |
setBarbOrientation(int style)
Set indicator whether wind barb style is that used in
the northern hemisphere or the southern hemisphere.
|
void |
setColor(java.awt.Color color)
Sets the color of the vectors.
|
void |
setColoredByAnother(boolean yesno)
Set whether this GridDisplayable should have the data colored
by another parameter.
|
protected void |
setFlowMaps()
Make ScalarMaps for flow, for 1st and 2nd components of wind
vector input data.
|
void |
setFlowRange(double min,
double max)
Set the range of the flow maps
|
void |
setFlowRange(Range flowRange)
Set the range of the flow maps
|
void |
setFlowScale(float scale)
Set the length of shaft on vector or on wind barb.
|
void |
setForward(boolean forw)
_more_
|
void |
setGrid3D(visad.FieldImpl field)
Set the 3d grid (a FlatField) data into the Displayable
|
void |
setIgnoreExtraParameters(boolean yesno)
Set whether this GridDisplayable should ignore extra parameters
|
void |
setIsTrajectories(boolean isTrajectories)
_more_
|
void |
setRibbonWidth(float width)
_more_
|
protected void |
setScalarMaps(ScalarMapSet maps)
Sets the set of ScalarMap-s of this instance.
|
void |
setSmoothFactor(int factor)
_more_
|
void |
setStartLevel(int startLevel)
_more_
|
void |
setStartPoints(visad.RealTupleType types,
float[][] stp)
_more_
|
void |
setStreamline(boolean streamline)
_more_
|
void |
setStreamlineDensity(float density)
Set the density of the streamlines
|
void |
setStreamlinesEnabled(boolean enable)
Sets whether streamlines are enabled.
|
void |
setTracerType(int type)
_more_
|
void |
setTrajFormType(int formType)
_more_
|
void |
setTrajOffset(float offset)
_more_
|
void |
setTrajStartLevel(int startLevel)
_more_
|
void |
setTrajStartPoints(float[][] pts)
_more_
|
void |
setTrajStartPointType(visad.RealTupleType type)
_more_
|
void |
setTrajWidth(float width)
_more_
|
void |
setTrojectoriesEnabled(boolean enable,
boolean markerOn,
float mSize,
boolean refresh)
sets trajectory parms if the enable is true.
|
void |
setTrojectoriesEnabled(boolean enable,
float mSize,
boolean refresh)
sets trajectory parms if the enable is true.
|
protected void |
setType(visad.RealTupleType rTT)
Sets the RealType of the parameter.
|
void |
setUseSpeedForColor(boolean yesno)
Set whether this GridDisplayable should have the data colored
by speed.
|
void |
setVectorLength(float len)
_more_
|
void |
setZskip(int skip)
_more_
|
protected boolean |
useDisplayUnitForColor()
Does this object use the displayUnit (or the colorUnit) for
its display unit.
|
getAutoScaleColorRange, getColorPalette, getCurvedSize, getPolygonMode, getRangeforColor, getRangeForColor, getRGBRealType, getSelectRealType, getUseRGBTypeForSelect, hasRange, hasSelectedRange, makeCurvedSizeMap, setAutoScaleColorRange, setColorPalette, setColorUnit, setCurvedSize, setDisplayUnit, setGreyPalette, setPolygonMode, setRange, setRangeForColor, setRangeForSelect, setRGBRealType, setSelectedRange, setSelectRealType, setUseRGBTypeForSelect, setVisADPaletteaddAction, dataChange, destroy, getActive, getAnimationSet, getData, getDataRenderer, getLineWidth, getName, getPointSize, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setLineWidth, setManipulable, setPickable, setPointMode, setPointSize, setUseFastRendering, setVisible, showme, toStringaddConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setColorPalette, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setScalarMapSet, setSelectedRange, setUseTimesInAnimation, toFrontpublic static final java.lang.String FLOW_TYPE
public static java.lang.String COLOR
public static final int NH_ORIENTATION
public static final int SH_ORIENTATION
protected visad.Unit speedUnit
protected int spdIndex
public FlowDisplayable(java.lang.String name,
visad.RealTupleType rTT,
float flowscale,
boolean useSpeedForColor)
throws visad.VisADException,
java.rmi.RemoteException
name - The name for the displayable.flowscale - A float size for the "flow scale".rTT - The VisAD RealTupleType of the parameter. May be
null.useSpeedForColor - set to true if you want to color by speedvisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public FlowDisplayable(java.lang.String name,
visad.RealTupleType rTT,
float flowscale)
throws visad.VisADException,
java.rmi.RemoteException
name - The name for the displayable.flowscale - A float size for the "flow scale".rTT - The VisAD RealTupleType of the parameter. May be
null.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public FlowDisplayable(java.lang.String name,
visad.RealTupleType rTT)
throws visad.VisADException,
java.rmi.RemoteException
name - The name for the displayable.rTT - The VisAD RealTupleType of the parameter. May be
null.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected FlowDisplayable(FlowDisplayable that) throws visad.VisADException, java.rmi.RemoteException
that - The other instance.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public visad.RealTupleType getFlowTuple()
null.public boolean getStreamlinesEnabled()
public void setStreamlinesEnabled(boolean enable)
enable - boolean whether streamlines are enabled.public void setTrojectoriesEnabled(boolean enable,
float mSize,
boolean refresh)
enable - boolean whether trajectories are enabled.mSize - _more_refresh - _more_public void setTrojectoriesEnabled(boolean enable,
boolean markerOn,
float mSize,
boolean refresh)
enable - boolean is true if it is traj or cvector.markerOn - _more_mSize - _more_refresh - _more_public void setIsTrajectories(boolean isTrajectories)
isTrajectories - _more_public void setStreamline(boolean streamline)
streamline - _more_public void resetTrojectories()
public int getBarbOrientation()
public void setBarbOrientation(int style)
style - either NH_ORIENTATION or SH_ORIENTATION.public boolean getAdjustFlow()
public void setAdjustFlow(boolean adjust)
setAdjustFlow in class Displayableadjust - true to adjustpublic void setStreamlineDensity(float density)
density - typically roughly .1 to 2.public void setFlowScale(float scale)
scale - typically roughly 0.05 to 0.15.public void setArrowHead(boolean onoff)
onoff - _more_public void setArrowHeadSize(float size)
size - _more_public void setTracerType(int type)
type - _more_public void setVectorLength(float len)
len - _more_public void setTrajOffset(float offset)
offset - _more_public void setSmoothFactor(int factor)
factor - _more_public void setTrajFormType(int formType)
formType - _more_public void setTrajStartLevel(int startLevel)
startLevel - _more_public int getTrajStartLevel()
public void setTrajWidth(float width)
width - _more_public float getTrajWidth()
public void setRibbonWidth(float width)
width - _more_public float getRibbonWidth()
public void setZskip(int skip)
skip - _more_public int getZskip()
public boolean getForward()
public void setForward(boolean forw)
forw - _more_public void setTrajStartPointType(visad.RealTupleType type)
type - _more_public visad.RealTupleType getTrajStartPointType()
public void setTrajStartPoints(float[][] pts)
pts - _more_public float[][] getTrajStartPoints()
public void setAutoScale(boolean auto)
auto - the autoscale propertyprotected void setScalarMaps(ScalarMapSet maps) throws visad.BadMappingException
null for the old value and the new
set of ScalarMap-s for the new Value. Intermediate subclasses that
have their own ScalarMap-s should override this method and invoke
super.setScalarMaps(ScalarMapSet).setScalarMaps in class RGBDisplayablemaps - The set of ScalarMap-s to be added.visad.BadMappingException - The types of the maps have
not been set or its ScalarMap is already in
the set.public int getSpeedTypeIndex()
protected void setFlowMaps()
throws java.rmi.RemoteException,
visad.VisADException
visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setFlowRange(Range flowRange) throws visad.VisADException, java.rmi.RemoteException
flowRange - range for flow mapsvisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setFlowRange(double min,
double max)
throws visad.VisADException,
java.rmi.RemoteException
min - min valuemax - max valuevisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setGrid3D(visad.FieldImpl field)
throws visad.VisADException,
java.rmi.RemoteException
field - a VisAD FlatField with a 3D naturevisad.VisADException - from construction of VisAd objectsjava.rmi.RemoteException - from construction of VisAD objectspublic void loadData(visad.FieldImpl field)
throws visad.VisADException,
java.rmi.RemoteException
loadData in interface GridDisplayablefield - a VisAD FlatField with a 2D naturevisad.VisADException - from construction of VisAd objectsjava.rmi.RemoteException - from construction of VisAD objectspublic void loadTopoData(visad.FieldImpl topo)
throws visad.VisADException,
java.rmi.RemoteException
topo - _more_java.rmi.RemoteException - _more_visad.VisADException - _more_public void setColor(java.awt.Color color)
throws visad.VisADException,
java.rmi.RemoteException
setColor in class RGBDisplayablecolor - color for the vectors.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected void setType(visad.RealTupleType rTT)
throws java.rmi.RemoteException,
visad.VisADException
rTT - The new RealTupleType of the parameter. May
not be null.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public Displayable cloneForDisplay() throws java.rmi.RemoteException, visad.VisADException
cloneForDisplay in class DisplayableDatavisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public boolean isCartesianWind()
public boolean get3DFlow()
public void set3DFlow(boolean threeD)
threeD - true if the flow is 3Dprotected boolean useDisplayUnitForColor()
useDisplayUnitForColor in class RGBDisplayablepublic void setColoredByAnother(boolean yesno)
setColoredByAnother in interface GridDisplayableyesno - true if colored by anotherpublic void setUseSpeedForColor(boolean yesno)
yesno - true if colored by speedpublic void setIgnoreExtraParameters(boolean yesno)
yesno - true if extra params should be ignoredpublic void setStartPoints(visad.RealTupleType types,
float[][] stp)
types - _more_stp - _more_public void setStartLevel(int startLevel)
startLevel - _more_