Documentation of 'visad.bom.FrontDrawer' Java class
FrontDrawer
visad.bom

Class 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
    • 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 segment
      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)
      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
      FrontDrawer(FieldImpl fs, float[][][] cs, DisplayImplJ3D d, int fw, int front_kind)
      manipulable front with predefined pattern front_kind and default color arrays
      FrontDrawer(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
    • 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:
        VisADException
        java.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:
        VisADException
        java.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:
        VisADException
        java.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:
        VisADException
        java.rmi.RemoteException
    • Method Detail

      • release

        public void release()
      • endManipulation

        public void endManipulation()
                             throws VisADException,
                                    java.rmi.RemoteException
        called by the application to end manipulation; returns the final front
        Throws:
        VisADException
        java.rmi.RemoteException
      • endItAll

        public java.util.Vector endItAll()
                                  throws VisADException,
                                         java.rmi.RemoteException
        called by the application to end manipulation; returns the final front
        Throws:
        VisADException
        java.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:
        VisADException
        java.rmi.RemoteException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.