visad.bom
Class FlexibleTrackManipulation
- java.lang.Object
-
- visad.bom.FlexibleTrackManipulation
-
public class FlexibleTrackManipulation extends java.lang.ObjectFlexibleTrackManipulation is the VisAD class for manipulation of flexible storm tracks (not straight lines)
-
-
Constructor Summary
Constructors Constructor and Description FlexibleTrackManipulation(DataReferenceImpl tr, DisplayImplJ3D d, ScalarMap shape_map1, ScalarMap shape_map2, boolean need_monitor)constructor Uses default size of 0.1 and default cyclone symbol geometryFlexibleTrackManipulation(DataReferenceImpl tr, DisplayImplJ3D d, ScalarMap shape_map1, ScalarMap shape_map2, boolean need_monitor, float size)Constructor - Use default cyclone shape geometryFlexibleTrackManipulation(DataReferenceImpl tr, DisplayImplJ3D d, ScalarMap shape_map1, ScalarMap shape_map2, boolean need_monitor, float size, VisADGeometryArray[][] ga, float[] shapeColour)Construct the FTM stuff
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidendManipulation()DataRenderer[]getManipulationRenderers()Get access to the renderers.static voidmain(java.lang.String[] args)static VisADGeometryArray[][]makeStormShapes(int nv, float size)Create the geometry array which contains the shapes for the cyclone symbols.voidrelease()voidstart()
-
-
-
Constructor Detail
-
FlexibleTrackManipulation
public FlexibleTrackManipulation(DataReferenceImpl tr, DisplayImplJ3D d, ScalarMap shape_map1, ScalarMap shape_map2, boolean need_monitor) throws VisADException, java.rmi.RemoteException
constructor Uses default size of 0.1 and default cyclone symbol geometry- Throws:
VisADExceptionjava.rmi.RemoteException
-
FlexibleTrackManipulation
public FlexibleTrackManipulation(DataReferenceImpl tr, DisplayImplJ3D d, ScalarMap shape_map1, ScalarMap shape_map2, boolean need_monitor, float size) throws VisADException, java.rmi.RemoteException
Constructor - Use default cyclone shape geometry- Throws:
VisADExceptionjava.rmi.RemoteException
-
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 Animationd- A DisplayImplJ3D, - The Display to add the FTM toshape_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 sizega- 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:
VisADExceptionjava.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:
VisADExceptionjava.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:
VisADExceptionjava.rmi.RemoteException
-
-
DMelt 3.0 © DataMelt by jWork.ORG