|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.procedural.Module
artofillusion.procedural.NumberModule
public class NumberModule
This is a Module which outputs a number.
Field Summary |
---|
Fields inherited from class artofillusion.procedural.Module |
---|
linkFrom, linkFromIndex |
Constructor Summary | |
---|---|
NumberModule(java.awt.Point position)
|
|
NumberModule(java.awt.Point position,
double v)
|
Method Summary | |
---|---|
Module |
duplicate()
Create a duplicate of this module. |
boolean |
edit(ProcedureEditor editor,
Scene theScene)
Allow the user to set a new value. |
double |
getAverageValue(int which,
double blur)
This module simply outputs the value. |
double |
getValue()
Get the value. |
void |
getValueGradient(Vec3 grad,
double blur)
|
void |
readFromStream(java.io.DataInputStream in,
Scene theScene)
Read in the module's parameters from an input stream. |
void |
setValue(double v)
Set the value. |
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, init, inputConnected, layout, setInput, setPosition |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NumberModule(java.awt.Point position)
public NumberModule(java.awt.Point position, double v)
Method Detail |
---|
public double getValue()
public void setValue(double v)
public boolean edit(ProcedureEditor editor, Scene theScene)
edit
in class Module
public double getAverageValue(int which, double blur)
getAverageValue
in class Module
public void getValueGradient(Vec3 grad, double blur)
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 |