Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: PickManiplulationRenderer Not Working

Hi Kevin,

> Any idea whether this is more efficient than mulitple D_R_M's?

It is. Curtis's solution could of course be cast as a custom
direct manipulation DataRenderer, but it occured to me that
you could do the same thing using the existing
DirectManipulationRendererJ3D (or J2D), by setting a large
value into DisplayRenderer.setPickThreshhold(). Specifically,
you'd have just a single DirectManipulationRendererJ3D and a
single RealTuple with MathType (x, y) and ScalatMaps
x -> XAxis, y-> YAxis. BY setting a large enough value into
setPickThreshhold(), and only a single RealTuple displayed
via direct manipulation, that RealTuple would jump to whatever
location the user clicked the right mouse button on. This would
trigger a CellImpl, which would use the (x, y) values of the
RealTuple to compute the line direction, as in Curtis's code.
And you wouldn't need his code for converting screen x and y
coordinates into data x and y.

Cheers,
Bill


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690