artofillusion.procedural
Class CheckerModule
java.lang.Object
artofillusion.procedural.Module
artofillusion.procedural.CheckerModule
public class CheckerModule
- 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. |
void |
init(PointInfo p)
This method initializes the module in preparation for evaluating the procedure at a
new point. |
Methods inherited from class artofillusion.procedural.Module |
calcSize, checkFeedback, draw, duplicate, edit, edit, getBounds, getClickedPort, getColor, getInputIndex, getInputPorts, getName, getOutputIndex, getOutputPorts, inputConnected, layout, readFromStream, setInput, setPosition, writeToStream |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckerModule
public CheckerModule(java.awt.Point position)
init
public void init(PointInfo p)
- Description copied from class:
Module
- This method initializes the module in preparation for evaluating the procedure at a
new point. The default implementation does nothing. Subclasses whose output depends
on the point should override this method.
- Overrides:
init
in class Module
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.