|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.procedural.Module
artofillusion.procedural.ScaleShiftModule
public class ScaleShiftModule
This is a Module which scales and shifts its input value.
Field Summary |
---|
Fields inherited from class artofillusion.procedural.Module |
---|
linkFrom, linkFromIndex |
Constructor Summary | |
---|---|
ScaleShiftModule(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 |
getScale()
Get the scale value. |
double |
getShift()
Get the shift value. |
double |
getValueError(int which,
double blur)
Get the uncertainty in the value of the specified output port. |
void |
getValueGradient(int which,
Vec3 grad,
double blur)
Get the gradient of the value of the specified output port. |
void |
readFromStream(java.io.DataInputStream in,
Scene theScene)
Read in the module's parameters from an input stream. |
void |
setScale(double val)
Set the scale value. |
void |
setShift(double val)
Set the shift 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, init, inputConnected, layout, setInput, setPosition |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScaleShiftModule(java.awt.Point position)
Method Detail |
---|
public double getScale()
public void setScale(double val)
public double getShift()
public void setShift(double val)
public double getAverageValue(int which, double blur)
Module
getAverageValue
in class Module
public double getValueError(int which, double blur)
Module
getValueError
in class Module
public void getValueGradient(int which, Vec3 grad, double blur)
Module
getValueGradient
in class Module
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 |