|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectartofillusion.procedural.Module
artofillusion.procedural.CellsModule
public class CellsModule
This is a Module which generates a pattern based on Steven Worley's cellular texture basis function.
| Field Summary |
|---|
| Fields inherited from class artofillusion.procedural.Module |
|---|
linkFrom, linkFromIndex |
| Constructor Summary | |
|---|---|
CellsModule(java.awt.Point position)
|
|
| Method Summary | |
|---|---|
Module |
duplicate()
Create a duplicate of this module. |
boolean |
edit(buoy.widget.BFrame fr,
Scene theScene)
Allow the user to set the parameters. |
double |
getAverageValue(int which,
double blur)
Calculate the average value of an output. |
int |
getMetric()
Get the metric to use for the cells function. |
double |
getValueError(int which,
double blur)
Calculate the error of an output. |
void |
getValueGradient(int which,
Vec3 grad,
double blur)
Calculate the gradient of an output. |
void |
init(PointInfo p)
New point, so the value will need to be recalculated. |
void |
readFromStream(java.io.DataInputStream in,
Scene theScene)
Read in the parameters. |
void |
setMetric(int m)
Set the metric to use for the cells function. |
void |
writeToStream(java.io.DataOutputStream out,
Scene theScene)
Write out the parameters. |
| Methods inherited from class artofillusion.procedural.Module |
|---|
calcSize, checkFeedback, draw, getBounds, getClickedPort, getColor, getInputIndex, getInputPorts, getName, getOutputIndex, getOutputPorts, inputConnected, layout, setInput, setPosition |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CellsModule(java.awt.Point position)
| Method Detail |
|---|
public int getMetric()
public void setMetric(int m)
public void init(PointInfo p)
init in class Module
public double getAverageValue(int which,
double blur)
getAverageValue in class Module
public double getValueError(int which,
double blur)
getValueError in class Module
public void getValueGradient(int which,
Vec3 grad,
double blur)
getValueGradient in class Module
public boolean edit(buoy.widget.BFrame fr,
Scene theScene)
edit in class Modulepublic Module duplicate()
duplicate in class Module
public void writeToStream(java.io.DataOutputStream out,
Scene theScene)
throws java.io.IOException
writeToStream in class Modulejava.io.IOException
public void readFromStream(java.io.DataInputStream in,
Scene theScene)
throws java.io.IOException
readFromStream in class Modulejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||