|
|||||||||
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.HueColorMap
public class HueColorMap
Interpolates color values by varying the hue
Field Summary | |
---|---|
static double |
defaultBrightness
|
static double |
defaultMaxHue
|
static double |
defaultMinHue
|
static double |
defaultSaturation
|
static PropertyList |
myProps
|
Constructor Summary | |
---|---|
HueColorMap()
Creates a default Hue-varying colormap |
|
HueColorMap(double minHue,
double maxHue)
Creates a hue map, setting the min and max hues |
Method Summary | |
---|---|
ColorMapBase |
clone()
Returns a clone of this composite property. |
HueColorMap |
copy()
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by this object. |
double |
getBrightness()
Constant brightness used by map |
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 |
double |
getHue(double a)
Computes the interpolated hue with a in [0,1] |
DoubleInterval |
getHueRange()
Gets the range of hue values |
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 |
double |
getSaturation()
Constant saturation used by map |
void |
setBrightness(double v)
Brightness value to use for interpolation |
void |
setHueRange(double minHue,
double maxHue)
Sets the hue range. |
void |
setHueRange(DoubleInterval range)
Sets the hue range. |
void |
setSaturation(double s)
Saturation to use for interpolation |
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 defaultMinHue
public static double defaultMaxHue
public static double defaultSaturation
public static double defaultBrightness
public static PropertyList myProps
Constructor Detail |
---|
public HueColorMap()
public HueColorMap(double minHue, double maxHue)
setHueRange(double, double)
Method Detail |
---|
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class ColorMapBase
public void setHueRange(double minHue, double maxHue)
Examples:
[0, 1/6] will interpolate from red to yellow
[1/6, 0] will interpolate from yellow to red
[5/6, 7/6] will interpolate from violet to yellow
public void setSaturation(double s)
public double getSaturation()
public void setBrightness(double v)
public double getBrightness()
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 double getHue(double a)
public void getHSV(double a, float[] hsv)
ColorMap
a
- input, usually in the range [0,1]hsv
- output colorpublic DoubleInterval getHueRange()
setHueRange(double, double)
public void setHueRange(DoubleInterval range)
Examples:
[0, 1/6] will interpolate from red to yellow
[1/6, 0] will interpolate from yellow to red
[5/6, 7/6] will interpolate from violet to yellow
public HueColorMap copy()
copy
in class ColorMapBase
public ColorMapBase clone() throws java.lang.CloneNotSupportedException
CompositeProperty
clone
in interface CompositeProperty
clone
in interface Clonable
clone
in class ColorMapBase
java.lang.CloneNotSupportedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |