|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.procedural.Procedure
public class Procedure
This represents a procedure for calculating a set of values (typically, the parameters for a texture or material).
Constructor Summary | |
---|---|
Procedure(OutputModule[] output)
|
Method Summary | |
---|---|
void |
addLink(Link ln)
Add a link to the procedure. |
void |
addModule(Module mod)
Add a module to the procedure. |
boolean |
checkFeedback()
Check for feedback loops in this procedure. |
void |
copy(Procedure proc)
Make this procedure identical to another one. |
void |
deleteLink(int which)
Delete a link from the procedure. |
void |
deleteModule(int which)
Delete a module from the procedure. |
Link[] |
getLinks()
Get the list of links between modules. |
int |
getModuleIndex(Module mod)
Get the index of a particular module. |
Module[] |
getModules()
Get the list of all other modules. |
void |
getOutputColor(int which,
RGBColor color)
This routine returns the color of the specified output module. |
void |
getOutputGradient(int which,
Vec3 grad)
This routine returns the gradient of the specified output module. |
int |
getOutputIndex(Module mod)
Get the index of a particular output module. |
OutputModule[] |
getOutputModules()
Get the list of output modules. |
double |
getOutputValue(int which)
This routine returns the value of the specified output module. |
void |
initForPoint(PointInfo p)
This routine is called before the procedure is evaluated. |
void |
readFromStream(java.io.DataInputStream in,
Scene theScene)
Reconstruct this procedure from an input stream. |
void |
writeToStream(java.io.DataOutputStream out,
Scene theScene)
Write this procedure to an output stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Procedure(OutputModule[] output)
Method Detail |
---|
public OutputModule[] getOutputModules()
public Module[] getModules()
public int getModuleIndex(Module mod)
public int getOutputIndex(Module mod)
public void addModule(Module mod)
public void deleteModule(int which)
public Link[] getLinks()
public void addLink(Link ln)
public void deleteLink(int which)
public boolean checkFeedback()
public void initForPoint(PointInfo p)
public double getOutputValue(int which)
public void getOutputGradient(int which, Vec3 grad)
public void getOutputColor(int which, RGBColor color)
public void copy(Procedure proc)
public void writeToStream(java.io.DataOutputStream out, Scene theScene) throws java.io.IOException
java.io.IOException
public void readFromStream(java.io.DataInputStream in, Scene theScene) throws java.io.IOException, java.io.InvalidObjectException
java.io.IOException
java.io.InvalidObjectException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |