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