|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvisad.bom.FlexibleTrackManipulation
public class FlexibleTrackManipulation
FlexibleTrackManipulation is the VisAD class for manipulation of flexible storm tracks (not straight lines)
| Constructor Summary | |
|---|---|
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 geometry |
|
FlexibleTrackManipulation(DataReferenceImpl tr,
DisplayImplJ3D d,
ScalarMap shape_map1,
ScalarMap shape_map2,
boolean need_monitor,
float size)
Constructor - Use default cyclone shape geometry |
|
FlexibleTrackManipulation(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 | |
|---|---|
void |
endManipulation()
|
DataRenderer[] |
getManipulationRenderers()
Get access to the renderers. |
static void |
main(java.lang.String[] args)
|
static VisADGeometryArray[][] |
makeStormShapes(int nv,
float size)
Create the geometry array which contains the shapes for the cyclone symbols. |
void |
release()
|
void |
start()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlexibleTrackManipulation(DataReferenceImpl tr,
DisplayImplJ3D d,
ScalarMap shape_map1,
ScalarMap shape_map2,
boolean need_monitor)
throws VisADException,
java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public FlexibleTrackManipulation(DataReferenceImpl tr,
DisplayImplJ3D d,
ScalarMap shape_map1,
ScalarMap shape_map2,
boolean need_monitor,
float size)
throws VisADException,
java.rmi.RemoteException
VisADException
java.rmi.RemoteException
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
DataReferenceImpl - tr - 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 AnimationDisplayImplJ3D - d - The Display to add the FTM toScalarMap - shape_map1, shape_map2 - two ScalarMaps of RealTypes
in tr.getData()boolean - need_monitor - Need to monitor tr to maintain external
changes to it.float - size - storm symbol sizeVisADGeometryArray[][] - ga - 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.float - shapeColour[3] - colour of symbols
TODO: Have a setCycloneGeometry(VisADGeometryArray[][] ga) method
VisADException
java.rmi.RemoteException| Method Detail |
|---|
public static VisADGeometryArray[][] makeStormShapes(int nv,
float size)
throws VisADException
int - nv - The number of vertices?float - size - The size of all the symbols, apparently relative
to the size of the window
VisADException
public void endManipulation()
throws VisADException,
java.rmi.RemoteException
VisADException
java.rmi.RemoteExceptionpublic DataRenderer[] getManipulationRenderers()
public void release()
public void start()
public static void main(java.lang.String[] args)
throws VisADException,
java.rmi.RemoteException
VisADException
java.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||