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.
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
visad
archives: