visad
Class TrajectoryManager
- java.lang.Object
-
- visad.TrajectoryManager
-
public class TrajectoryManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field and Description static intCYLINDERstatic intDEFORM_RIBBONstatic booleandoStartOffsetstatic intLINEstatic int[]o_istatic int[]o_jstatic intPOINTstatic java.lang.StringPPOP_TRAJECTORY_START_POINTS_FILEstatic java.util.HashMap<ScalarMap,ScalarMapListener>removeListenersstatic intRIBBONstatic java.util.HashMap<FlowControl,ControlListener>scaleChangeListeners
-
Constructor Summary
Constructors Constructor and Description TrajectoryManager(DataRenderer renderer, TrajectoryParams trajParams, java.util.ArrayList<FlowInfo> flowInfoList, int dataDomainLength, double time)TrajectoryManager(DataRenderer renderer, TrajectoryParams trajParams, java.util.ArrayList<FlowInfo> flowInfoList, int dataDomainLength, double time, ScalarMap altToZ)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddPair(float[] startPt, float[] stopPt, byte[] startColor, byte[] stopColor)static floatAdotB(float[] A, float[] B)static float[]AxB(float[] A, float[] B)voidcheckTime(int timeIdx)voidclean()voidcleanDefStrp()static float[][]computeDisplacement(FlowInfo info, float[][] spatial_values, float[][] flow_values, float timeStep)VisADGeometryArraycomputeTrajectories(int k, double timeAccum, double[] times, double[] timeSteps, VisADGeometryArray[] auxArray)static float[][]convertFlowUnit(float[][] values, Unit[] units)intgetColorCount()intgetCoordinateCount()intgetNumberOfTrajectories()static intgetNumIntrpPts(FlowInfo info, float maxSpd, double timeStep)static double[]getRotatedVecInPlane(double[] T, double[] S, double[] P, double[] V, double theta, double[] rotV)static double[]getScale(MouseBehavior mouseBehav, ProjectionControl pCntrl)voidgetStartPointsFromDomain(int trajForm, int skip, int zstart, int zskip, Gridded3DSet spatial_set, byte[][] color_values, float[][] startPts, byte[][] startClrs, float[][] flowValues, float ribbonWidthFac)voidgetStartPointsFromDomain2D(int trajForm, int skip, float[][] setLocs, int lenX, int lenY, byte[][] color_values, float[][] startPts, byte[][] startClrs, float[][] flowValues, float ribbonWidthFac)voidgetStartPointsFromDomain3D(int trajForm, int skip, int zstart, int skipZ, float[][] locs, int lenX, int lenY, int lenZ, byte[][] color_values, float[][] startPts, byte[][] startClrs, float[][] flowValues, float ribbonWidthFac)float[][]getStartPointsFromFile(DataRenderer renderer, ScalarMap altToZ, byte[][] colors)static double[]getTimes(Gridded1DSet timeSet)static double[]getTimeSteps(Gridded1DSet timeSet)voidinitCleanUp(ScalarMap scalarMap, FlowControl flowCntrl, ProjectionControl pCntrl, DisplayImpl display)voidmakeCone(float[][] basePts, float[] vertex, byte[][] color, float[] coords, byte[] colors, float[] normals, int[] vertCnt)VisADGeometryArraymakeCylinder(VisADGeometryArray[] auxArray)VisADGeometryArraymakeDeformableRibbon()VisADGeometryArraymakeFixedWidthRibbon()VisADGeometryArraymakeGeometry()VisADGeometryArraymakePointGeometry()static GriddedSetmakeSpatialSetTraj(Gridded3DSet spatial_set)VisADGeometryArraymakeTracerGeometry(java.util.ArrayList<float[]> anchors, int direction, float trcrSize, double[] scale, boolean fill)voidmakeTrajectories(double time, float[][] startPts, byte[][] color_values, GriddedSet spatial_set)static float[][]mean(float[][] values0, float[][] values1)static float[]mean(float[] values0, float[] values1)voidreset()static VisADGeometryArrayscaleGeometry(VisADGeometryArray array, java.util.ArrayList<float[]> anchors, float scale)voidsetListener(ProjectionControl pCntrl, ControlListener listener, FlowControl flowCntrl)static float[][]smooth(float[][] values0, float[][] values1, float[][] values2, TrajectoryParams.SmoothParams smoothParams)voidupdateInterpolators()
-
-
-
Field Detail
-
doStartOffset
public static boolean doStartOffset
-
o_j
public static int[] o_j
-
o_i
public static int[] o_i
-
LINE
public static final int LINE
- See Also:
- Constant Field Values
-
RIBBON
public static final int RIBBON
- See Also:
- Constant Field Values
-
CYLINDER
public static final int CYLINDER
- See Also:
- Constant Field Values
-
DEFORM_RIBBON
public static final int DEFORM_RIBBON
- See Also:
- Constant Field Values
-
POINT
public static final int POINT
- See Also:
- Constant Field Values
-
PPOP_TRAJECTORY_START_POINTS_FILE
public static final java.lang.String PPOP_TRAJECTORY_START_POINTS_FILE
- See Also:
- Constant Field Values
-
scaleChangeListeners
public static java.util.HashMap<FlowControl,ControlListener> scaleChangeListeners
-
removeListeners
public static java.util.HashMap<ScalarMap,ScalarMapListener> removeListeners
-
-
Constructor Detail
-
TrajectoryManager
public TrajectoryManager(DataRenderer renderer, TrajectoryParams trajParams, java.util.ArrayList<FlowInfo> flowInfoList, int dataDomainLength, double time) throws VisADException
- Throws:
VisADException
-
TrajectoryManager
public TrajectoryManager(DataRenderer renderer, TrajectoryParams trajParams, java.util.ArrayList<FlowInfo> flowInfoList, int dataDomainLength, double time, ScalarMap altToZ) throws VisADException
- Throws:
VisADException
-
-
Method Detail
-
addPair
public void addPair(float[] startPt, float[] stopPt, byte[] startColor, byte[] stopColor)
-
getCoordinateCount
public int getCoordinateCount()
-
getColorCount
public int getColorCount()
-
getNumberOfTrajectories
public int getNumberOfTrajectories()
-
getNumIntrpPts
public static int getNumIntrpPts(FlowInfo info, float maxSpd, double timeStep) throws VisADException
- Throws:
VisADException
-
computeDisplacement
public static float[][] computeDisplacement(FlowInfo info, float[][] spatial_values, float[][] flow_values, float timeStep) throws VisADException
- Throws:
VisADException
-
computeTrajectories
public VisADGeometryArray computeTrajectories(int k, double timeAccum, double[] times, double[] timeSteps, VisADGeometryArray[] auxArray) throws VisADException, java.rmi.RemoteException
- Throws:
VisADExceptionjava.rmi.RemoteException
-
makeTrajectories
public void makeTrajectories(double time, float[][] startPts, byte[][] color_values, GriddedSet spatial_set) throws VisADException- Throws:
VisADException
-
reset
public void reset()
-
checkTime
public void checkTime(int timeIdx)
-
clean
public void clean()
-
cleanDefStrp
public void cleanDefStrp()
-
updateInterpolators
public void updateInterpolators()
-
makeSpatialSetTraj
public static GriddedSet makeSpatialSetTraj(Gridded3DSet spatial_set) throws VisADException
- Throws:
VisADException
-
getScale
public static double[] getScale(MouseBehavior mouseBehav, ProjectionControl pCntrl)
-
getStartPointsFromDomain
public void getStartPointsFromDomain(int trajForm, int skip, int zstart, int zskip, Gridded3DSet spatial_set, byte[][] color_values, float[][] startPts, byte[][] startClrs, float[][] flowValues, float ribbonWidthFac) throws VisADException- Throws:
VisADException
-
getStartPointsFromDomain3D
public void getStartPointsFromDomain3D(int trajForm, int skip, int zstart, int skipZ, float[][] locs, int lenX, int lenY, int lenZ, byte[][] color_values, float[][] startPts, byte[][] startClrs, float[][] flowValues, float ribbonWidthFac) throws VisADException- Throws:
VisADException
-
getStartPointsFromDomain2D
public void getStartPointsFromDomain2D(int trajForm, int skip, float[][] setLocs, int lenX, int lenY, byte[][] color_values, float[][] startPts, byte[][] startClrs, float[][] flowValues, float ribbonWidthFac) throws VisADException- Throws:
VisADException
-
convertFlowUnit
public static float[][] convertFlowUnit(float[][] values, Unit[] units) throws VisADException- Throws:
VisADException
-
smooth
public static float[][] smooth(float[][] values0, float[][] values1, float[][] values2, TrajectoryParams.SmoothParams smoothParams)
-
mean
public static float[][] mean(float[][] values0, float[][] values1)
-
mean
public static float[] mean(float[] values0, float[] values1)
-
setListener
public void setListener(ProjectionControl pCntrl, ControlListener listener, FlowControl flowCntrl)
-
getTimeSteps
public static double[] getTimeSteps(Gridded1DSet timeSet) throws VisADException
- Throws:
VisADException
-
getTimes
public static double[] getTimes(Gridded1DSet timeSet) throws VisADException
- Throws:
VisADException
-
scaleGeometry
public static VisADGeometryArray scaleGeometry(VisADGeometryArray array, java.util.ArrayList<float[]> anchors, float scale)
-
AxB
public static float[] AxB(float[] A, float[] B)
-
AdotB
public static float AdotB(float[] A, float[] B)
-
getRotatedVecInPlane
public static double[] getRotatedVecInPlane(double[] T, double[] S, double[] P, double[] V, double theta, double[] rotV)
-
makeGeometry
public VisADGeometryArray makeGeometry()
-
makeFixedWidthRibbon
public VisADGeometryArray makeFixedWidthRibbon()
-
makeCylinder
public VisADGeometryArray makeCylinder(VisADGeometryArray[] auxArray)
-
makeCone
public void makeCone(float[][] basePts, float[] vertex, byte[][] color, float[] coords, byte[] colors, float[] normals, int[] vertCnt)
-
makeDeformableRibbon
public VisADGeometryArray makeDeformableRibbon()
-
makePointGeometry
public VisADGeometryArray makePointGeometry()
-
makeTracerGeometry
public VisADGeometryArray makeTracerGeometry(java.util.ArrayList<float[]> anchors, int direction, float trcrSize, double[] scale, boolean fill)
-
initCleanUp
public void initCleanUp(ScalarMap scalarMap, FlowControl flowCntrl, ProjectionControl pCntrl, DisplayImpl display)
-
getStartPointsFromFile
public float[][] getStartPointsFromFile(DataRenderer renderer, ScalarMap altToZ, byte[][] colors) throws VisADException, java.rmi.RemoteException
- Throws:
VisADExceptionjava.rmi.RemoteException
-
-
DMelt 3.0 © DataMelt by jWork.ORG