Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

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: