edu.wisc.ssec.mcidasv.data.hydra
Class GrabLineRendererJ3D

java.lang.Object
  extended by visad.DataRenderer
      extended by visad.java3d.RendererJ3D
          extended by visad.java3d.DirectManipulationRendererJ3D
              extended by edu.wisc.ssec.mcidasv.data.hydra.GrabLineRendererJ3D
All Implemented Interfaces:
Cloneable

public class GrabLineRendererJ3D
extends DirectManipulationRendererJ3D

Grab and drag lines parallel to a coordinate axis. For simple 2D graphs, not yet generalized for 3D displays. For a vertical line, map Real to Display.XAxis, and assign ConstantMap for Display.YAxis. Vice-a-versa for a horizontal line.


Field Summary
private  int[] axisToComponent
           
private  int closeIndex
           
private  float[] d
           
private  ScalarMap[] directMap
           
private  DisplayImpl display
           
private  Gridded1DSet domainSet
           
private  float[] f
           
private  int last_idx
           
private  float line_x
           
private  float line_y
           
private  float line_z
           
private  DataDisplayLink link
           
private  int mouseModifiersMask
           
private  int mouseModifiersValue
           
private  String notRealType
           
private  int offset_count
           
private static int OFFSET_COUNT_INIT
           
private  float offsetx
           
private  float offsety
           
private  float offsetz
           
private  boolean pickCrawlToCursor
           
private  float point_x
           
private  float point_y
           
private  float point_z
           
private  DataReference ref
           
private  float[][] samples
           
private  ShadowType shadow
           
private  float[][] spatialValues
           
private  boolean stop
           
private  DisplayTupleType tuple
           
private  MathType type
           
private  String whyNotDirect
           
 
Fields inherited from class visad.DataRenderer
enabled
 
Constructor Summary
GrabLineRendererJ3D()
           
GrabLineRendererJ3D(Gridded1DSet domainSet)
           
 
Method Summary
 float checkClose(double[] origin, double[] direction)
           
 void checkDirect()
           
 void drag_direct(VisADRay ray, boolean first, int mouseModifiers)
           
private  int getAxisToComponent(int i)
           
private  ScalarMap getDirectMap(int i)
           
 String getWhyNotDirect()
           
 void setSpatialValues(float[][] spatial_values)
           
 void stop_direct()
           
 
Methods inherited from class visad.java3d.DirectManipulationRendererJ3D
addPoint, clearScene, clone, doTransform, isLegalTextureMap, setBranch, setLinks
 
Methods inherited from class visad.java3d.RendererJ3D
clearBranch, doAction, flush, getBranch, makeShadowFunctionType, makeShadowRealTupleType, makeShadowRealType, makeShadowSetType, makeShadowTextType, makeShadowTupleType, setBranchEarly, toggle
 
Methods inherited from class visad.DataRenderer
addException, checkAction, clearAVControls, clearExceptions, computeRanges, constrainDragPoint, earthToSpatial, earthToSpatial, findRayManifoldIntersection, get_all_feasible, get_any_changed, get_any_transform_control, getBadScale, getDisplay, getDisplayCoordinateSystem, getDisplayRenderer, getEarthDimension, getEarthUnits, getEnabled, getExceptionVector, getIsDirectManipulation, getLastMouseModifiers, getLatLonIndices, getLatLonRange, getLink, getLinks, getPickCrawlToCursor, getRanges, getRealVectorTypes, isTransformControl, prepareAction, realCheckDirect, release_direct, removeLink, set_all_feasible, setDisplay, setDisplayRenderer, setEarthSpatialData, setEarthSpatialDisplay, setIsDirectManipulation, setLastMouseModifiers, setLatLonIndices, setLinks, setPickCrawlToCursor, spatialToEarth, spatialToEarth, suppressExceptions
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

spatialValues

private float[][] spatialValues

closeIndex

private int closeIndex

offsetx

private float offsetx

offsety

private float offsety

offsetz

private float offsetz

offset_count

private int offset_count

OFFSET_COUNT_INIT

private static final int OFFSET_COUNT_INIT
See Also:
Constant Field Values

link

private transient DataDisplayLink link

ref

private transient DataReference ref

type

private transient MathType type

shadow

private transient ShadowType shadow

point_x

private float point_x

point_y

private float point_y

point_z

private float point_z

line_x

private float line_x

line_y

private float line_y

line_z

private float line_z

f

private float[] f

d

private float[] d

notRealType

private String notRealType

whyNotDirect

private String whyNotDirect

pickCrawlToCursor

private boolean pickCrawlToCursor

axisToComponent

private int[] axisToComponent

directMap

private ScalarMap[] directMap

display

private DisplayImpl display

tuple

private DisplayTupleType tuple

stop

private boolean stop

domainSet

private Gridded1DSet domainSet

last_idx

private int last_idx

samples

private float[][] samples

mouseModifiersMask

private int mouseModifiersMask

mouseModifiersValue

private int mouseModifiersValue
Constructor Detail

GrabLineRendererJ3D

public GrabLineRendererJ3D()

GrabLineRendererJ3D

public GrabLineRendererJ3D(Gridded1DSet domainSet)
Method Detail

getWhyNotDirect

public String getWhyNotDirect()
Overrides:
getWhyNotDirect in class DataRenderer

setSpatialValues

public void setSpatialValues(float[][] spatial_values)
Overrides:
setSpatialValues in class DataRenderer

checkDirect

public void checkDirect()
                 throws VisADException,
                        RemoteException
Overrides:
checkDirect in class DirectManipulationRendererJ3D
Throws:
VisADException
RemoteException

checkClose

public float checkClose(double[] origin,
                        double[] direction)
Overrides:
checkClose in class DataRenderer

drag_direct

public void drag_direct(VisADRay ray,
                        boolean first,
                        int mouseModifiers)
Overrides:
drag_direct in class DataRenderer

getAxisToComponent

private int getAxisToComponent(int i)

getDirectMap

private ScalarMap getDirectMap(int i)

stop_direct

public void stop_direct()
Overrides:
stop_direct in class DataRenderer