artofillusion.procedural
Class DifferenceModule
java.lang.Object
artofillusion.procedural.Module
artofillusion.procedural.DifferenceModule
public class DifferenceModule
- extends Module
Method Summary |
double |
getAverageValue(int which,
double blur)
Get the average value of the specified output port. |
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. |
Methods inherited from class artofillusion.procedural.Module |
calcSize, checkFeedback, draw, duplicate, edit, edit, getBounds, getClickedPort, getColor, getInputIndex, getInputPorts, getName, getOutputIndex, getOutputPorts, init, inputConnected, layout, readFromStream, setInput, setPosition, writeToStream |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DifferenceModule
public DifferenceModule(java.awt.Point position)
getAverageValue
public double getAverageValue(int which,
double blur)
- Description copied from class:
Module
- Get the average value of the specified output port. If the specified output port
does not have a value type of NUMBER, the result is undefined. Blur specifies the
amount of smoothing to use. Subclasses which can return values should override this
method.
- Overrides:
getAverageValue
in class Module
getValueError
public double getValueError(int which,
double blur)
- Description copied from class:
Module
- Get the uncertainty in the value of the specified output port. If the specified
output port does not have a value type of NUMBER, the result is undefined. Blur
specifies the amount of smoothing to use. Subclasses which can return values should
override this method.
- Overrides:
getValueError
in class Module
getValueGradient
public void getValueGradient(int which,
Vec3 grad,
double blur)
- Description copied from class:
Module
- Get the gradient of the value of the specified output port. If the specified
output port does not have a value type of NUMBER, the result is undefined. Blur
specifies the amount of smoothing to use. Subclasses which can return values should
override this method.
- Overrides:
getValueGradient
in class Module
Copyright © 1999-2011 by Peter Eastman.