> Will there be the possibility to use LabeledRGBWidget with an
> predefined color table?
> The constructor ignores the existing colortable associated with
> the ScalarMap.
This is a good point. I have added constructors for LabeledRGBWidget
and LabeledRGBAWidget that include a float[][] table, as follows:
/** this will be labeled with the name of map's RealType;
the range of RealType values (min, max) is mapped to color
as defined by an interactive color widget; table initializes
the color lookup table, organized as float[TABLE_SIZE][3]
with values between 0.0f and 1.0f;
the DisplayRealType of map must be Display.RGB and must
already be added to a Display */
public LabeledRGBWidget(ScalarMap map, float min, float max,
float[][] table)
throws VisADException, RemoteException;
/** this will be labeled with the name of map's RealType;
the range of RealType values (min, max) is mapped to color
as defined by an interactive color widget; table initializes
the color lookup table, organized as float[TABLE_SIZE][4]
with values between 0.0f and 1.0f;
the DisplayRealType of map must be Display.RGBA and must
already be added to a Display */
public LabeledRGBAWidget(ScalarMap map, float min, float max,
float[][] table)
throws VisADException, RemoteException;
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI 53706
whibbard@xxxxxxxxxxxxx 608-263-4427 fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html
"kill cross-platform Java by growing the polluted Java market"
- from an internal Microsoft planning document