|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.Control visad.FlowControl
public abstract class FlowControl
FlowControl is the VisAD abstract super-class for controlling Flow display scalars.
Field Summary | |
---|---|
static int |
NH_ORIENTATION
Northern Hemisphere orientation for wind barbs |
static int |
SH_ORIENTATION
Southern Hemisphere orientation for wind barbs |
Constructor Summary | |
---|---|
FlowControl(DisplayImpl d)
Create a FlowControl |
Method Summary | |
---|---|
Object |
clone()
Clone this control. |
void |
enableStreamlines(boolean flag)
Enable/disable showing vectors as streamlines |
boolean |
equals(Object o)
See if this control equals another |
boolean |
getAdjustFlowToEarth()
Get barb orientation for wind barbs |
float |
getArrowScale()
Get the streamline arrow scale |
boolean |
getAutoScale()
Get whether the vector/barb size should scale with display zoom. |
int |
getBarbOrientation()
Get barb orientation for wind barbs |
float |
getFlowScale()
Get scale length for flow vectors |
String |
getSaveString()
Get a string that can be used to reconstruct this control later |
float |
getStepFactor()
Get the streamline step factor |
float |
getStreamlineDensity()
Get the streamline density factor. |
float |
getStreamlinePacking()
Get the streamline packing value |
float |
getStreamlineReduction()
Get the streamline reduction value |
float[] |
getStreamlineSmoothing()
Get the streamline smoothing value |
void |
nullControl()
Null the control. |
void |
setAdjustFlowToEarth(boolean adjust)
Get whether values should be adjusted to the earth |
void |
setArrowScale(float arrowScale)
Set the streamline arrow size |
void |
setAutoScale(boolean auto)
Set whether the vector/barb size should scale with display zoom. |
void |
setBarbOrientation(int orientation)
Set barb orientation for wind barbs (default is southern hemisphere) |
void |
setFlowScale(float scale)
Set scale length for flow vectors (default is 0.02f) |
void |
setSaveString(String save)
Reconstruct this control using the specified save string |
void |
setStepFactor(float stepFactor)
Set the streamline step factor |
void |
setStreamlineDensity(float density)
Set the streamline density |
void |
setStreamlinePacking(float packing)
Set the streamline packing |
void |
setStreamlineReduction(float reduction)
Set the streamline reduction |
void |
setStreamlineSmoothing(float cntrWeight,
int n_pass)
Set the streamline smoothing |
boolean |
streamlinesEnabled()
Get the status of streamlines |
void |
syncControl(Control rmt)
Copy the state of a remote control to this control |
Methods inherited from class visad.Control |
---|
addControlListener, animation_string, changeControl, checkTicks, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NH_ORIENTATION
public static final int SH_ORIENTATION
Constructor Detail |
---|
public FlowControl(DisplayImpl d)
d
- DisplayImpl that this is associated with.Method Detail |
---|
public void setFlowScale(float scale) throws VisADException, RemoteException
scale
- new scale
VisADException
RemoteException
public float getFlowScale()
public void setBarbOrientation(int orientation) throws VisADException, RemoteException
orientation
- wind barb orientation
(NH_ORIENTATION or SH_ORIENTATION);
VisADException
RemoteException
public int getBarbOrientation()
public void setAdjustFlowToEarth(boolean adjust) throws VisADException, RemoteException
adjust
- true to adjust
VisADException
- problem setting the value
RemoteException
- problem setting the value on remote systempublic boolean getAdjustFlowToEarth()
public void enableStreamlines(boolean flag) throws VisADException, RemoteException
flag
- true to display as streamlines
VisADException
- problem enabling the streamlines
RemoteException
- problem enabling the streamlines on remote systempublic void setStreamlineDensity(float density) throws VisADException, RemoteException
density
- the density value
VisADException
- problem setting the density
RemoteException
- problem setting the density on remote systempublic void setArrowScale(float arrowScale) throws VisADException, RemoteException
arrowScale
- the streamline arrow size
VisADException
- problem setting the arrow scale
RemoteException
- problem setting the arrow scale on remote systempublic void setStepFactor(float stepFactor) throws VisADException, RemoteException
stepFactor
- the streamline step factor
VisADException
- problem setting the step factor
RemoteException
- problem setting the step factor on remote systempublic void setStreamlinePacking(float packing) throws VisADException, RemoteException
packing
- the streamline packing
VisADException
- problem setting the packing
RemoteException
- problem setting the packing on remote systempublic void setStreamlineSmoothing(float cntrWeight, int n_pass) throws VisADException, RemoteException
cntrWeight
- the center weightn_pass
- number of smoothing passes
VisADException
- problem setting the smoothing
RemoteException
- problem setting the smoothing on remote systempublic void setStreamlineReduction(float reduction) throws VisADException, RemoteException
reduction
- the streamline reduction
VisADException
- problem setting the reduction
RemoteException
- problem setting the reduction on remote systempublic boolean streamlinesEnabled()
public float getStreamlineDensity()
public float getArrowScale()
public float getStepFactor()
public float getStreamlinePacking()
public float[] getStreamlineSmoothing()
public float getStreamlineReduction()
public String getSaveString()
getSaveString
in class Control
public void setSaveString(String save) throws VisADException, RemoteException
setSaveString
in class Control
save
- - String representation for reconstruction
VisADException
- if a VisAD error occurs
RemoteException
- if an RMI error occurspublic void syncControl(Control rmt) throws VisADException
syncControl
in class Control
rmt
- remote Control whose state is copied
VisADException
- if a VisAD error occurspublic void setAutoScale(boolean auto) throws VisADException
auto
- true to enable autoscaling.
VisADException
- problem setting the autoscalingpublic boolean getAutoScale()
public void nullControl()
nullControl
in class Control
public boolean equals(Object o)
equals
in class Control
o
- object in question
public Object clone()
clone
in class Control
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |