|
|||||||||
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.InterpolatingColorMap
maspack.render.color.RainbowColorMap
public class RainbowColorMap
Similar to JetColorMap, interpolates in HSV space
Field Summary | |
---|---|
static PropertyList |
myProps
|
static java.awt.Color[] |
rainbow
|
Fields inherited from class maspack.render.color.InterpolatingColorMap |
---|
defaultColorArray |
Constructor Summary | |
---|---|
RainbowColorMap()
|
|
RainbowColorMap(java.awt.Color[] colors)
|
Method Summary | |
---|---|
RainbowColorMap |
copy()
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by this object. |
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 |
setColorArray(java.awt.Color[] colors)
Sets the list of colors within which to interpolate. |
Methods inherited from class maspack.render.color.InterpolatingColorMap |
---|
clone, getColor, getColorArray, getColorString, getColorString, setColorString |
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 java.awt.Color[] rainbow
public static PropertyList myProps
Constructor Detail |
---|
public RainbowColorMap()
public RainbowColorMap(java.awt.Color[] colors)
Method Detail |
---|
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class InterpolatingColorMap
public void setColorArray(java.awt.Color[] colors)
setColorArray
in class InterpolatingColorMap
public void getRGB(double a, double[] rgb)
ColorMap
getRGB
in interface ColorMap
getRGB
in class InterpolatingColorMap
a
- input, usually in the range [0,1]rgb
- output colorpublic void getRGB(double a, float[] rgb)
ColorMap
getRGB
in interface ColorMap
getRGB
in class InterpolatingColorMap
a
- input, usually in the range [0,1]rgb
- output colorpublic void getHSV(double a, double[] hsv)
ColorMap
getHSV
in interface ColorMap
getHSV
in class InterpolatingColorMap
a
- input, usually in the range [0,1]hsv
- output colorpublic void getHSV(double a, float[] hsv)
ColorMap
getHSV
in interface ColorMap
getHSV
in class InterpolatingColorMap
a
- input, usually in the range [0,1]hsv
- output colorpublic RainbowColorMap copy()
copy
in class InterpolatingColorMap
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |