|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.procedural.Module
artofillusion.procedural.CoordinateModule
public class CoordinateModule
This is a Module which outputs a coordinate (x, y, z, or t).
Field Summary | |
---|---|
static java.lang.String[] |
COORD_NAME
|
static int |
T
|
static int |
X
|
static int |
Y
|
static int |
Z
|
Fields inherited from class artofillusion.procedural.Module |
---|
linkFrom, linkFromIndex |
Constructor Summary | |
---|---|
CoordinateModule(java.awt.Point position)
|
|
CoordinateModule(java.awt.Point position,
int coordinate)
|
Method Summary | |
---|---|
Module |
duplicate()
Create a duplicate of this module. |
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. |
void |
readFromStream(java.io.DataInputStream in,
Scene theScene)
Read in the module's parameters from an input stream. |
void |
setCoordinate(int coordinate)
|
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, edit, edit, getBounds, getClickedPort, getColor, getInputIndex, getInputPorts, getName, getOutputIndex, getOutputPorts, inputConnected, layout, setInput, setPosition |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int X
public static final int Y
public static final int Z
public static final int T
public static final java.lang.String[] COORD_NAME
Constructor Detail |
---|
public CoordinateModule(java.awt.Point position)
public CoordinateModule(java.awt.Point position, int coordinate)
Method Detail |
---|
public void setCoordinate(int coordinate)
public void init(PointInfo p)
Module
init
in class Module
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 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 |