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: how to control the point size?

Hi Helen,

> I use a constantMap to set the point size,  can I add a slider to
> control the point size in a display?
> 
> ConstantMap[] pointsCMap = {new ConstantMap (3.0f, Display.PointSize)};

I'm afraid you cannot create ScalarMaps to PointSize. But
you can pass ConstantMaps to DisplayImpl.addReference().
To change point size for a Data object, pass its DataReference
to DisplayImpl.removeReference() then pass it to
DisplayImpl.addReference() with a new ConstantMap to
PointSize.

Good luck,
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


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