|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectartofillusion.procedural.Module
artofillusion.procedural.SpectrumModule
public class SpectrumModule
This is a Module which implements an arbitrary mapping of numbers to colors.
| Field Summary |
|---|
| Fields inherited from class artofillusion.procedural.Module |
|---|
linkFrom, linkFromIndex |
| Constructor Summary | |
|---|---|
SpectrumModule(java.awt.Point position)
|
|
| Method Summary | |
|---|---|
void |
calcSize()
Calculate the size on the screen of this module. |
Module |
duplicate()
Create a duplicate of this module. |
boolean |
edit(buoy.widget.BFrame fr,
Scene theScene)
This should display a user interface for editing the module, and return true if the module is changed. |
void |
getColor(int which,
RGBColor c,
double blur)
Get the color of the specified output port. |
double[] |
getColorPositions()
Get the list of input values corresponding to the colors in the table. |
RGBColor[] |
getColors()
Get the list of colors in the table. |
boolean |
getRepeat()
Get whether the colors should repeat outside the range [0,1]. |
void |
init(PointInfo p)
This method initializes the module in preparation for evaluating the procedure at a new point. |
void |
readFromStream(java.io.DataInputStream in,
Scene theScene)
Read in the module's parameters from an input stream. |
void |
setColors(RGBColor[] color,
double[] position)
Set the color table |
void |
setRepeat(boolean repeat)
Set whether the colors should repeat outside the range [0,1]. |
void |
writeToStream(java.io.DataOutputStream out,
Scene theScene)
Write out the module's parameters to an output stream. |
| Methods inherited from class artofillusion.procedural.Module |
|---|
checkFeedback, draw, getAverageValue, getBounds, getClickedPort, getInputIndex, getInputPorts, getName, getOutputIndex, getOutputPorts, getValueError, getValueGradient, inputConnected, layout, setInput, setPosition |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpectrumModule(java.awt.Point position)
| Method Detail |
|---|
public RGBColor[] getColors()
public double[] getColorPositions()
public void setColors(RGBColor[] color,
double[] position)
color - the list of colorsposition - the list of input values corresponding to the colors. These must be between
0 and 1, and be in increasing orderpublic boolean getRepeat()
public void setRepeat(boolean repeat)
public void init(PointInfo p)
Module
init in class Module
public void getColor(int which,
RGBColor c,
double blur)
Module
getColor in class Modulepublic Module duplicate()
Module
duplicate in class Module
public void writeToStream(java.io.DataOutputStream out,
Scene theScene)
throws java.io.IOException
Module
writeToStream in class Modulejava.io.IOException
public void readFromStream(java.io.DataInputStream in,
Scene theScene)
throws java.io.IOException
Module
readFromStream in class Modulejava.io.IOExceptionpublic void calcSize()
Module
calcSize in class Module
public boolean edit(buoy.widget.BFrame fr,
Scene theScene)
Module
edit in class Module
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||