public abstract class FlowControl extends Control
Modifier and Type | Field and Description |
---|---|
static int |
NH_ORIENTATION
Northern Hemisphere orientation for wind barbs
|
static int |
SH_ORIENTATION
Southern Hemisphere orientation for wind barbs
|
Constructor and Description |
---|
FlowControl(DisplayImpl d)
Create a FlowControl
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone this control.
|
void |
enableStreamlines(boolean flag)
Enable/disable showing vectors as streamlines
|
void |
enableTrajectory(boolean flag)
Enable/disable showing vectors as trajectories
|
void |
enableTrajectory(boolean flag,
TrajectoryParams tparms)
Enable/disable showing vectors as trajectories
|
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
|
TrajectoryParams |
getTrajectoryParams() |
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
|
void |
setTrajectoryParams(TrajectoryParams trajParams) |
boolean |
streamlinesEnabled()
Get the status of streamlines
|
void |
syncControl(Control rmt)
Copy the state of a remote control to this control
|
boolean |
trajectoryEnabled()
Get the status of streamlines
|
addControlListener, animation_string, changeControl, checkTicks, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks, toString
public static final int NH_ORIENTATION
public static final int SH_ORIENTATION
public FlowControl(DisplayImpl d)
d
- DisplayImpl that this is associated with.public void setFlowScale(float scale) throws VisADException, RemoteException
scale
- new scaleVisADException
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 adjustVisADException
- problem setting the valueRemoteException
- problem setting the value on remote systempublic boolean getAdjustFlowToEarth()
public void enableStreamlines(boolean flag) throws VisADException, RemoteException
flag
- true to display as streamlinesVisADException
- problem enabling the streamlinesRemoteException
- problem enabling the streamlines on remote systempublic void enableTrajectory(boolean flag) throws VisADException, RemoteException
flag
- true to display as trajectoriesVisADException
- problem enabling the trajectoriesRemoteException
- problem enabling the trajectories on remote systempublic void enableTrajectory(boolean flag, TrajectoryParams tparms) throws VisADException, RemoteException
flag
- true to display as trajectoriestparms
- TrajectoryParams to apply. Cannot be nullVisADException
- problem enabling the trajectoriesRemoteException
- problem enabling the trajectories on remote systempublic void setStreamlineDensity(float density) throws VisADException, RemoteException
density
- the density valueVisADException
- problem setting the densityRemoteException
- problem setting the density on remote systempublic void setArrowScale(float arrowScale) throws VisADException, RemoteException
arrowScale
- the streamline arrow sizeVisADException
- problem setting the arrow scaleRemoteException
- problem setting the arrow scale on remote systempublic void setStepFactor(float stepFactor) throws VisADException, RemoteException
stepFactor
- the streamline step factorVisADException
- problem setting the step factorRemoteException
- problem setting the step factor on remote systempublic void setStreamlinePacking(float packing) throws VisADException, RemoteException
packing
- the streamline packingVisADException
- problem setting the packingRemoteException
- 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 passesVisADException
- problem setting the smoothingRemoteException
- problem setting the smoothing on remote systempublic void setStreamlineReduction(float reduction) throws VisADException, RemoteException
reduction
- the streamline reductionVisADException
- problem setting the reductionRemoteException
- problem setting the reduction on remote systempublic boolean streamlinesEnabled()
public boolean trajectoryEnabled()
public TrajectoryParams getTrajectoryParams()
public void setTrajectoryParams(TrajectoryParams trajParams) throws VisADException, RemoteException
VisADException
RemoteException
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 reconstructionVisADException
- if a VisAD error occursRemoteException
- if an RMI error occurspublic void syncControl(Control rmt) throws VisADException
syncControl
in class Control
rmt
- remote Control whose state is copiedVisADException
- 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)
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.