|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.RGBDisplayable
ucar.visad.display.FlowDisplayable
public class FlowDisplayable
Provides support for a Displayable displays wind data (u,v) or (spd, dir) as wind vectors.
| Field Summary | |
|---|---|
static String |
COLOR
The name of the color property. |
static 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 |
| Fields inherited from class ucar.visad.display.RGBDisplayable |
|---|
COLOR_PALETTE, POLYGON_FILL, POLYGON_LINE, POLYGON_POINT, RGB_REAL_TYPE |
| 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 |
FlowDisplayable(FlowDisplayable that)
Constructs from another instance. |
|
FlowDisplayable(String name,
RealTupleType rTT)
Constructs from a name for the Displayable and the type of the parameter. |
|
FlowDisplayable(String name,
RealTupleType rTT,
float flowscale)
Constructs from a name for the Displayable and the type of the parameter, and the desired size of "scale" |
| Method Summary | |
|---|---|
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. |
RealTupleType |
getFlowTuple()
Returns the RealTupleType of the parameter. |
boolean |
getStreamlinesEnabled()
Returns boolean whether streamlines are enabled. |
boolean |
isCartesianWind()
Check to see if the wind data is cartesian (u,v) or if it's polar (spd, dir). |
void |
loadData(FieldImpl field)
Set the data into the Displayable |
void |
set3DFlow(boolean threeD)
Set to use 3D flow |
void |
setAdjustFlow(boolean adjust)
Set indicator whether winds should be adusted or not |
void |
setBarbOrientation(int style)
Set indicator whether wind barb style is that used in the northern hemisphere or the southern hemisphere. |
void |
setColor(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 |
setGrid3D(FieldImpl field)
Set the 3d grid (a FlatField) data into the Displayable |
protected void |
setScalarMaps(ScalarMapSet maps)
Sets the set of ScalarMap-s of this instance. |
void |
setStreamlineDensity(float density)
Set the density of the streamlines |
void |
setStreamlinesEnabled(boolean enable)
Sets whether streamlines are enabled. |
protected void |
setType(RealTupleType rTT)
Sets the RealType of the parameter. |
protected boolean |
useDisplayUnitForColor()
Does this object use the displayUnit (or the colorUnit) for its display unit. |
| 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String FLOW_TYPE
public static String COLOR
public static final int NH_ORIENTATION
public static final int SH_ORIENTATION
| Constructor Detail |
|---|
public FlowDisplayable(String name,
RealTupleType rTT,
float flowscale)
throws VisADException,
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.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public FlowDisplayable(String name,
RealTupleType rTT)
throws VisADException,
RemoteException
name - The name for the displayable.rTT - The VisAD RealTupleType of the parameter. May be
null.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected FlowDisplayable(FlowDisplayable that)
throws VisADException,
RemoteException
that - The other instance.
VisADException - VisAD failure.
RemoteException - Java RMI failure.| Method Detail |
|---|
public RealTupleType getFlowTuple()
null.public boolean getStreamlinesEnabled()
public void setStreamlinesEnabled(boolean enable)
enable - boolean whether streamlines are enabled.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.
protected void setScalarMaps(ScalarMapSet maps)
throws 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.
BadMappingException - The types of the maps have
not been set or its ScalarMap is already in
the set.
protected void setFlowMaps()
throws RemoteException,
VisADException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setFlowRange(Range flowRange)
throws VisADException,
RemoteException
flowRange - range for flow maps
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setFlowRange(double min,
double max)
throws VisADException,
RemoteException
min - min valuemax - max value
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setGrid3D(FieldImpl field)
throws VisADException,
RemoteException
field - a VisAD FlatField with a 3D nature
VisADException - from construction of VisAd objects
RemoteException - from construction of VisAD objects
public void loadData(FieldImpl field)
throws VisADException,
RemoteException
loadData in interface GridDisplayablefield - a VisAD FlatField with a 2D nature
VisADException - from construction of VisAd objects
RemoteException - from construction of VisAD objects
public void setColor(Color color)
throws VisADException,
RemoteException
setColor in class RGBDisplayablecolor - color for the vectors.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected void setType(RealTupleType rTT)
throws RemoteException,
VisADException
rTT - The new RealTupleType of the parameter. May
not be null.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public Displayable cloneForDisplay()
throws RemoteException,
VisADException
cloneForDisplay in class DisplayableDataVisADException - VisAD failure.
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 another
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||