|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.procedural.Module
artofillusion.procedural.ParameterModule
public class ParameterModule
This is a Module which outputs a per-vertex texture parameter.
Field Summary |
---|
Fields inherited from class artofillusion.procedural.Module |
---|
linkFrom, linkFromIndex |
Constructor Summary | |
---|---|
ParameterModule(java.awt.Point position)
|
Method Summary | |
---|---|
Module |
duplicate()
Create a duplicate of this module. |
boolean |
edit(ProcedureEditor editor,
Scene theScene)
This is an old form of edit() that exists only to maintain compatibility with old plugins. |
double |
getAverageValue(int which,
double blur)
Get the average value of the specified output port. |
double |
getDefaultValue()
Get the default value for the parameter. |
double |
getMaximum()
Get the maximum value for the parameter. |
double |
getMinimum()
Get the minimum value for the parameter. |
TextureParameter |
getParameter(java.lang.Object owner)
|
java.lang.String |
getParameterName()
Get the name of the parameter. |
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 |
setDefaultValue(double val)
Set the default value for the parameter. |
void |
setIndex(int index)
|
void |
setMaximum(double val)
Set the maximum value for the parameter. |
void |
setMinimum(double val)
Set the minimum value for the parameter. |
void |
setParameterName(java.lang.String name)
Set the name of the parameter. |
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 |
---|
calcSize, checkFeedback, draw, getBounds, getClickedPort, getColor, 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 ParameterModule(java.awt.Point position)
Method Detail |
---|
public java.lang.String getParameterName()
public void setParameterName(java.lang.String name)
public double getMinimum()
public void setMinimum(double val)
public double getMaximum()
public void setMaximum(double val)
public double getDefaultValue()
public void setDefaultValue(double val)
public void init(PointInfo p)
Module
init
in class Module
public double getAverageValue(int which, double blur)
Module
getAverageValue
in class Module
public void setIndex(int index)
public TextureParameter getParameter(java.lang.Object owner)
public boolean edit(ProcedureEditor editor, Scene theScene)
Module
edit
in class Module
public Module duplicate()
Module
duplicate
in class Module
public void writeToStream(java.io.DataOutputStream out, Scene theScene) throws java.io.IOException
Module
writeToStream
in class Module
java.io.IOException
public void readFromStream(java.io.DataInputStream in, Scene theScene) throws java.io.IOException
Module
readFromStream
in class Module
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |