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

Class FlexibleTrackManipulation



  • public class FlexibleTrackManipulation
    extends java.lang.Object
    FlexibleTrackManipulation is the VisAD class for manipulation of flexible storm tracks (not straight lines)
    • Constructor Detail

      • FlexibleTrackManipulation

        public FlexibleTrackManipulation(DataReferenceImpl tr,
                                         DisplayImplJ3D d,
                                         ScalarMap shape_map1,
                                         ScalarMap shape_map2,
                                         boolean need_monitor,
                                         float size,
                                         VisADGeometryArray[][] ga,
                                         float[] shapeColour)
                                  throws VisADException,
                                         java.rmi.RemoteException
        Construct the FTM stuff
        Parameters:
        tr - A DataReferenceImpl, The visad data for the cyclone track tr.getData() should have MathType: * (Time -> tuple)) where tuple is flat [e.g., (Latitude, Longitude, shape_index)] and must include RealTypes Latitude and Longitude plus a RealType mapped to Shape in the DisplayImpl d; Time may or may not be mapped to Animation
        d - A DisplayImplJ3D, - The Display to add the FTM to
        shape_map1 - First ScalarMap of RealTypes in tr.getData()
        shape_map2 - Second ScalarMap of RealTypes in tr.getData()
        need_monitor - - Need to monitor tr to maintain external changes to it.
        size - - storm symbol size
        ga - A VisADGeometryArray[][] - two arrays of geometry objects which represent the cyclone symbols in the order: none, low, depresion1, depresion2, s-cyclone1, s-cyclone2, n-cyclone1, n-cyclone2. There are two arrays so you can combine shapes (ie: circle & lines) The geometry can be built with makeStormShapes() or an application defined method.
        shapeColour - - colour of symbols TODO: Have a setCycloneGeometry(VisADGeometryArray[][] ga) method
        Throws:
        VisADException
        java.rmi.RemoteException
    • Method Detail

      • makeStormShapes

        public static VisADGeometryArray[][] makeStormShapes(int nv,
                                                             float size)
                                                      throws VisADException
        Create the geometry array which contains the shapes for the cyclone symbols.
        Parameters:
        nv - - The number of vertices?
        size - - The size of all the symbols, apparently relative to the size of the window
        Throws:
        VisADException
      • endManipulation

        public void endManipulation()
                             throws VisADException,
                                    java.rmi.RemoteException
        Throws:
        VisADException
        java.rmi.RemoteException
      • getManipulationRenderers

        public DataRenderer[] getManipulationRenderers()
        Get access to the renderers. Intended for the app to be able to toggle() this data display. abcd 27 April 2001
      • release

        public void release()
      • start

        public void start()
      • 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.