visad.bom
Class FrontDrawer
- java.lang.Object
-
- visad.bom.FrontDrawer
-
- All Implemented Interfaces:
- java.util.EventListener, ControlListener
public class FrontDrawer extends java.lang.Object implements ControlListener
FrontDrawer is the VisAD class for manipulation of fronts
-
-
Field Summary
Fields Modifier and Type Field and Description static intCOLD_FRONTstatic intCONVERGENCEstatic intDRY_LINEstatic intFRONTOGENESISstatic intFRONTOLYSISstatic intISOTHERMSstatic intLIFTED_INDEXstatic intLOW_LEVEL_JETstatic intLOWER_THERMAL_TROUGHstatic intMOISTUREstatic intOCCLUDED_FRONTstatic intRIDGEstatic intSTATIONARY_FRONTstatic intTHICKNESS_RIDGEstatic intTOTAL_TOTALSstatic intTROUGHstatic intUNEVEN_LOW_LEVEL_JETstatic intUPPER_COLD_FRONTstatic intUPPER_LEVEL_JETstatic intUPPER_THERMAL_TROUGHstatic intUPPER_WARM_FRONTstatic intWARM_FRONT
-
Constructor Summary
Constructors Constructor and Description FrontDrawer(FieldImpl fs, float[][][] cs, DisplayImplJ3D d, int fw, float segment, float[][][] fshapes, float[] fred, float[] fgreen, float[] fblue, float[][][] rshapes, float[] rred, float[] rgreen, float[] rblue)fs is null or has MathType (RealType.Time -> (front_index -> ((Latitude, Longitude) -> (front_red, front_green, front_blue)))) cs is null or contains a time array of curves for fs fw is the filter window size for smoothing the curve segment is length in graphics coordinates of first and repeating profiles fshapes is dimensioned [nfshapes][2][points_per_shape] fred, fgreen and fblue are dimensioned [nfshapes] rshapes is dimensioned [nrshapes][2][points_per_shape] rred, rgreen and rblue are dimensioned [nrshapes] fshapes[*][0][*] and rshapes[*][0][*] generally in range 0.0f to segmentFrontDrawer(FieldImpl fs, float[][][] cs, DisplayImplJ3D d, int fw, float fsegment, float rsegment, float[][][] fshapes, float[] fred, float[] fgreen, float[] fblue, float[][][] rshapes, float[] rred, float[] rgreen, float[] rblue)fs is null or has MathType (RealType.Time -> (front_index -> ((Latitude, Longitude) -> (front_red, front_green, front_blue)))) cs is null or contains a time array of curves for fs fw is the filter window size for smoothing the curve fsegment is length in graphics coordinates of first profile rsegment is length in graphics coordinates of repeating profile fshapes is dimensioned [nfshapes][2][points_per_shape] fred, fgreen and fblue are dimensioned [nfshapes] rshapes is dimensioned [nrshapes][2][points_per_shape] rred, rgreen and rblue are dimensioned [nrshapes] fshapes[*][0][*] and rshapes[*][0][*] generally in range 0.0f to segmentFrontDrawer(FieldImpl fs, float[][][] cs, DisplayImplJ3D d, int fw, int front_kind)manipulable front with predefined pattern front_kind and default color arraysFrontDrawer(FieldImpl fs, float[][][] cs, DisplayImplJ3D d, int fw, int front_kind, float[] fred, float[] fgreen, float[] fblue, float[] rred, float[] rgreen, float[] rblue)manipulable front with predefined pattern front_kind and user specified color arrays
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcontrolChanged(ControlEvent e)send a ControlEvent to this ControlListenerstatic floatcurveLength(float[][] curve, float[] seg_length)assumes curve is float[2][len] and seg_length is float[len-1]java.util.VectorendItAll()called by the application to end manipulation; returns the final frontvoidendManipulation()called by the application to end manipulation; returns the final frontGridded2DSetgetCurve()DefaultRendererJ3DgetFrontRenderer()static voidinitColormaps(DisplayImplJ3D display)static voidmain(java.lang.String[] args)voidrelease()static float[][]resample_curve(float[][] curve, float increment)resmaple curve into segments approximately increment in lengthstatic float[][]smooth_curve(float[][] curve, int window)
-
-
-
Field Detail
-
COLD_FRONT
public static final int COLD_FRONT
- See Also:
- Constant Field Values
-
WARM_FRONT
public static final int WARM_FRONT
- See Also:
- Constant Field Values
-
OCCLUDED_FRONT
public static final int OCCLUDED_FRONT
- See Also:
- Constant Field Values
-
STATIONARY_FRONT
public static final int STATIONARY_FRONT
- See Also:
- Constant Field Values
-
CONVERGENCE
public static final int CONVERGENCE
- See Also:
- Constant Field Values
-
FRONTOGENESIS
public static final int FRONTOGENESIS
- See Also:
- Constant Field Values
-
FRONTOLYSIS
public static final int FRONTOLYSIS
- See Also:
- Constant Field Values
-
UPPER_COLD_FRONT
public static final int UPPER_COLD_FRONT
- See Also:
- Constant Field Values
-
UPPER_WARM_FRONT
public static final int UPPER_WARM_FRONT
- See Also:
- Constant Field Values
-
TROUGH
public static final int TROUGH
- See Also:
- Constant Field Values
-
RIDGE
public static final int RIDGE
- See Also:
- Constant Field Values
-
MOISTURE
public static final int MOISTURE
- See Also:
- Constant Field Values
-
LOW_LEVEL_JET
public static final int LOW_LEVEL_JET
- See Also:
- Constant Field Values
-
UPPER_LEVEL_JET
public static final int UPPER_LEVEL_JET
- See Also:
- Constant Field Values
-
DRY_LINE
public static final int DRY_LINE
- See Also:
- Constant Field Values
-
TOTAL_TOTALS
public static final int TOTAL_TOTALS
- See Also:
- Constant Field Values
-
LIFTED_INDEX
public static final int LIFTED_INDEX
- See Also:
- Constant Field Values
-
ISOTHERMS
public static final int ISOTHERMS
- See Also:
- Constant Field Values
-
THICKNESS_RIDGE
public static final int THICKNESS_RIDGE
- See Also:
- Constant Field Values
-
LOWER_THERMAL_TROUGH
public static final int LOWER_THERMAL_TROUGH
- See Also:
- Constant Field Values
-
UPPER_THERMAL_TROUGH
public static final int UPPER_THERMAL_TROUGH
- See Also:
- Constant Field Values
-
UNEVEN_LOW_LEVEL_JET
public static final int UNEVEN_LOW_LEVEL_JET
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FrontDrawer
public FrontDrawer(FieldImpl fs, float[][][] cs, DisplayImplJ3D d, int fw, int front_kind, float[] fred, float[] fgreen, float[] fblue, float[] rred, float[] rgreen, float[] rblue) throws VisADException, java.rmi.RemoteException
manipulable front with predefined pattern front_kind and user specified color arrays- Throws:
VisADExceptionjava.rmi.RemoteException
-
FrontDrawer
public FrontDrawer(FieldImpl fs, float[][][] cs, DisplayImplJ3D d, int fw, int front_kind) throws VisADException, java.rmi.RemoteException
manipulable front with predefined pattern front_kind and default color arrays- Throws:
VisADExceptionjava.rmi.RemoteException
-
FrontDrawer
public FrontDrawer(FieldImpl fs, float[][][] cs, DisplayImplJ3D d, int fw, float segment, float[][][] fshapes, float[] fred, float[] fgreen, float[] fblue, float[][][] rshapes, float[] rred, float[] rgreen, float[] rblue) throws VisADException, java.rmi.RemoteException
fs is null or has MathType (RealType.Time -> (front_index -> ((Latitude, Longitude) -> (front_red, front_green, front_blue)))) cs is null or contains a time array of curves for fs fw is the filter window size for smoothing the curve segment is length in graphics coordinates of first and repeating profiles fshapes is dimensioned [nfshapes][2][points_per_shape] fred, fgreen and fblue are dimensioned [nfshapes] rshapes is dimensioned [nrshapes][2][points_per_shape] rred, rgreen and rblue are dimensioned [nrshapes] fshapes[*][0][*] and rshapes[*][0][*] generally in range 0.0f to segment- Throws:
VisADExceptionjava.rmi.RemoteException
-
FrontDrawer
public FrontDrawer(FieldImpl fs, float[][][] cs, DisplayImplJ3D d, int fw, float fsegment, float rsegment, float[][][] fshapes, float[] fred, float[] fgreen, float[] fblue, float[][][] rshapes, float[] rred, float[] rgreen, float[] rblue) throws VisADException, java.rmi.RemoteException
fs is null or has MathType (RealType.Time -> (front_index -> ((Latitude, Longitude) -> (front_red, front_green, front_blue)))) cs is null or contains a time array of curves for fs fw is the filter window size for smoothing the curve fsegment is length in graphics coordinates of first profile rsegment is length in graphics coordinates of repeating profile fshapes is dimensioned [nfshapes][2][points_per_shape] fred, fgreen and fblue are dimensioned [nfshapes] rshapes is dimensioned [nrshapes][2][points_per_shape] rred, rgreen and rblue are dimensioned [nrshapes] fshapes[*][0][*] and rshapes[*][0][*] generally in range 0.0f to segment- Throws:
VisADExceptionjava.rmi.RemoteException
-
-
Method Detail
-
controlChanged
public void controlChanged(ControlEvent e)
Description copied from interface:ControlListenersend a ControlEvent to this ControlListener- Specified by:
controlChangedin interfaceControlListener
-
getFrontRenderer
public DefaultRendererJ3D getFrontRenderer()
-
initColormaps
public static void initColormaps(DisplayImplJ3D display) throws VisADException, java.rmi.RemoteException
- Throws:
VisADExceptionjava.rmi.RemoteException
-
getCurve
public Gridded2DSet getCurve()
-
release
public void release()
-
endManipulation
public void endManipulation() throws VisADException, java.rmi.RemoteExceptioncalled by the application to end manipulation; returns the final front- Throws:
VisADExceptionjava.rmi.RemoteException
-
endItAll
public java.util.Vector endItAll() throws VisADException, java.rmi.RemoteExceptioncalled by the application to end manipulation; returns the final front- Throws:
VisADExceptionjava.rmi.RemoteException
-
smooth_curve
public static float[][] smooth_curve(float[][] curve, int window)
-
resample_curve
public static float[][] resample_curve(float[][] curve, float increment)resmaple curve into segments approximately increment in length
-
curveLength
public static float curveLength(float[][] curve, float[] seg_length)assumes curve is float[2][len] and seg_length is float[len-1]
-
main
public static void main(java.lang.String[] args) throws VisADException, java.rmi.RemoteException- Throws:
VisADExceptionjava.rmi.RemoteException
-
-
DMelt 3.0 © DataMelt by jWork.ORG