public class GreyscaleColorMap extends ColorMapBase
| Modifier and Type | Field and Description |
|---|---|
static double |
defaultMaxBrightness |
static double |
defaultMinBrightness |
double |
myMaxBrightness |
double |
myMinBrightness |
static PropertyList |
myProps |
| Constructor and Description |
|---|
GreyscaleColorMap()
Creates a default grayscale color map
|
GreyscaleColorMap(double min,
double max)
Creates a grayscale map with specified min and max
brightness values
|
| Modifier and Type | Method and Description |
|---|---|
GreyscaleColorMap |
clone()
Returns a clone of this composite property.
|
GreyscaleColorMap |
copy() |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
double |
getBrightness(double a)
Interpolates a brightness value with parameter a in [0,1]
|
DoubleInterval |
getBrightnessRange()
Gets the brightness range
|
java.awt.Color |
getColor(double a)
Returns an interpolated color
|
void |
getHSV(double a,
double[] hsv)
Fills an array with the interpolated color values
in HSV format
|
void |
getHSV(double a,
float[] hsv)
Fills an array with the interpolated color values
in HSV format
|
void |
getRGB(double a,
double[] rgb)
Fills an array with the interpolated color values
in RGB format
|
void |
getRGB(double a,
float[] rgb)
Fills an array with the interpolated color values
in RGB format
|
void |
setBrightnessRange(double min,
double max)
Sets the greyscale range [min, max].
|
void |
setBrightnessRange(DoubleInterval range)
Sets the greyscale range [min, max].
|
getColor3Value, getColor4Value, getHSV, getProperty, getPropertyHost, getPropertyInfo, getRGB, getSubClasses, isWritable, scan, setPropertyHost, setPropertyInfo, writepublic static double defaultMinBrightness
public static double defaultMaxBrightness
public double myMinBrightness
public double myMaxBrightness
public static PropertyList myProps
public GreyscaleColorMap()
public GreyscaleColorMap(double min,
double max)
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class ColorMapBasepublic void setBrightnessRange(double min,
double max)
< min,
then colors will be interpolated from bright to darkpublic void setBrightnessRange(DoubleInterval range)
< min,
then colors will be interpolated from bright to darkpublic DoubleInterval getBrightnessRange()
public double getBrightness(double a)
public java.awt.Color getColor(double a)
ColorMapa - input, usually in the range [0,1]public void getRGB(double a,
double[] rgb)
ColorMapa - input, usually in the range [0,1]rgb - output colorpublic void getRGB(double a,
float[] rgb)
ColorMapa - input, usually in the range [0,1]rgb - output colorpublic void getHSV(double a,
double[] hsv)
ColorMapa - input, usually in the range [0,1]hsv - output colorpublic void getHSV(double a,
float[] hsv)
ColorMapa - input, usually in the range [0,1]hsv - output colorpublic GreyscaleColorMap clone() throws java.lang.CloneNotSupportedException
CompositePropertyclone in interface CompositePropertyclone in interface Clonableclone in class ColorMapBasejava.lang.CloneNotSupportedExceptionpublic GreyscaleColorMap copy()
copy in class ColorMapBase