|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaspack.render.color.ColorMapBase
maspack.render.color.GreyscaleColorMap
public class GreyscaleColorMap
Interpolates greyscale color values
Field Summary | |
---|---|
static double |
defaultMaxBrightness
|
static double |
defaultMinBrightness
|
double |
myMaxBrightness
|
double |
myMinBrightness
|
static PropertyList |
myProps
|
Constructor Summary | |
---|---|
GreyscaleColorMap()
Creates a default grayscale color map |
|
GreyscaleColorMap(double min,
double max)
Creates a grayscale map with specified min and max brightness values |
Method Summary | |
---|---|
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]. |
Methods inherited from class maspack.render.color.ColorMapBase |
---|
getColor3Value, getColor4Value, getProperty, getPropertyHost, getPropertyInfo, getSubClasses, isWritable, scan, setPropertyHost, setPropertyInfo, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static double defaultMinBrightness
public static double defaultMaxBrightness
public double myMinBrightness
public double myMaxBrightness
public static PropertyList myProps
Constructor Detail |
---|
public GreyscaleColorMap()
public GreyscaleColorMap(double min, double max)
Method Detail |
---|
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class ColorMapBase
public void setBrightnessRange(double min, double max)
public void setBrightnessRange(DoubleInterval range)
public DoubleInterval getBrightnessRange()
public double getBrightness(double a)
public java.awt.Color getColor(double a)
ColorMap
a
- input, usually in the range [0,1]
public void getRGB(double a, double[] rgb)
ColorMap
a
- input, usually in the range [0,1]rgb
- output colorpublic void getRGB(double a, float[] rgb)
ColorMap
a
- input, usually in the range [0,1]rgb
- output colorpublic void getHSV(double a, double[] hsv)
ColorMap
a
- input, usually in the range [0,1]hsv
- output colorpublic void getHSV(double a, float[] hsv)
ColorMap
a
- input, usually in the range [0,1]hsv
- output colorpublic GreyscaleColorMap clone() throws java.lang.CloneNotSupportedException
CompositeProperty
clone
in interface CompositeProperty
clone
in interface Clonable
clone
in class ColorMapBase
java.lang.CloneNotSupportedException
public GreyscaleColorMap copy()
copy
in class ColorMapBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |