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


Wow, Curtis, that's exactly the behavior I am looking for. I'll take a little while to digest the code, but it looks very straight forward. (I'm especially pleased that I can use Gridded2DSets).

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

Thanks again!!

-kevin.


Curtis Rueden wrote:

Hi Kevin,

I've considered two other ways to approach this:

1) Create an array of DataReferenceImpl's that do pretty much the same thing (redraw the radial when moved - like the AnchoredPoint method) and space them so that the user should (almost) always have one visible no matter how they manipulate (pan/zoom) the display.

2) Somehow change the endpoint location of the DataReferenceImpl to always be in the viewable area. The difficult part of this is to move the DataReferenceImpl down the existing radial (along and toward the origin).



Another option is to do manual picking. It takes more code than a direct manipulation renderer, but you have more control. (And in your case, it may be less code than dealing with N direct manipulation renderers distributed along the line.) I have posted an example called RadialLine.java on my VisAD examples page at http://www.ssec.wisc.edu/~curtis/examples/ that demonstrates this. It allows you to pick anywhere along the radial line using the right mouse button as you describe.

-Curtis


--
+------------------------------------------------------------+
Kevin L. Manross        [KD5MYD] <><          (405)-366-0557
CIMMS Research Associate               kevin.manross@xxxxxxxx
[NSSL-WRDD/SWATN]           http://www.cimms.ou.edu/~kmanross

"My opinions are my own and not representative of CIMMS, NSSL,
NOAA or any affiliates"
+------------------------------------------------------------+


 
 
  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