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.

20000925: slicer available?

>From: Don Murray <dmurray@xxxxxxxxxxxxxxxx>
>Organization: UCAR/Unidata
>Keywords: 200009251452.e8PEqhb06812

Oops, this should read:

     double initialValue = 8000.0    // set to 8000 m
     Real slider = new Real(RealType.Altitude, initialValue);
     DataReference sliderRef = new DataReferenceImpl("slider");
     ConstantMap[] constants = new ConstantMap[5];
     constants[0] map = new ConstantMap(0.0, Display.Red);   // make a blue
     constants[1] map = new ConstantMap(0.0, Display.Green); // point
     constants[2] map = new ConstantMap(1.0, Display.Blue);  //
     constants[3] map = new ConstantMap(5.0, Display.PointSize); // make big
     constants[4] map = new ConstantMap(-1.0, Display.XAxis);// sets point
     constants[5] map = new ConstantMap(-1.0, Display.YAxis);// along left axis
     sliderRef.setData(slider);
     display.addReferences(new DirectManipulationRendererJ3D(),
                           sliderRef, constants);

Don
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
*************************************************************
Unidata WWW Server               http://www.unidata.ucar.edu/
McIDAS Demonstration Machine  http://mcdemo.unidata.ucar.edu/
*************************************************************


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