NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

RE: Axis labeling and axis interaction

very good, thanks for now, bill. i'll try it out as soon as possible.

henner

On Monday, June 26, 2000 15:04, Bill Hibbard
[SMTP:hibbard@xxxxxxxxxxxxxxxxx] wrote:
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> Hi Henner,
> 
> > - secondly i want these labels to be interactive: if the users clicks a
> > label, i want the corresponding 2D data to be displayed in a seperate 2D
> > display.
> 
> The latest release of VisAD on our ftp server now includes
> a class visad/bom/PickManipulationRendererJ3D.java that will
> make this task much easier.  See the main() method of this
> class for an example of how to use it.  Given a Data object
> such as 'shape' you can tell when its been 'picked' in a
> display as follows:
> 
>     DataReferenceImpl sref = new DataReferenceImpl("shape");
>     sref.setData(shape);
>     display.addReferences(new PickManipulationRendererJ3D(), sref);
>     CellImpl cells = new CellImpl() {
>       private boolean first = true;
>       public void doAction() throws VisADException, RemoteException {
>         if (first) first = false;
>         else System.out.println("shape picked");
>       }
>     };
>     cells.addReference(sref);
> 
> Clicking the right mouse button on the depiction of 'shape'
> does not change its value, but does send an event to the
> CellImpl.
> 
> Cheers,
> Bill
> ----------------------------------------------------------
> Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
> hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
> http://www.ssec.wisc.edu/~billh/vis.html


  • 2000 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: