|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectartofillusion.material.Material
artofillusion.material.Material3D
artofillusion.material.ProceduralMaterial3D
public class ProceduralMaterial3D
This is a Material3D which uses a Procedure to calculate its properties.
| Constructor Summary | |
|---|---|
ProceduralMaterial3D()
|
|
ProceduralMaterial3D(java.io.DataInputStream in,
Scene theScene)
|
|
| Method Summary | |
|---|---|
void |
acceptEdits(ProcedureEditor editor)
This is called when the user clicks OK in the procedure editor. |
boolean |
allowParameters()
Determine whether the procedure may contain Parameter modules. |
boolean |
allowViewAngle()
Determine whether the procedure may contain View Angle modules. |
boolean |
canEditName()
Determine whether the procedure may be renamed. |
boolean |
castsShadows()
Return true if this material should cast shadows. |
void |
disposePreview(java.lang.Object preview)
Dispose of the preview object when the editor is closed. |
Material |
duplicate()
Create a duplicate of the material. |
void |
edit(buoy.widget.BFrame fr,
Scene sc)
Allow the user to interactively edit the material. |
void |
editProperties(ProcedureEditor editor)
Display the Properties dialog. |
void |
getMaterialSpec(MaterialSpec spec,
double x,
double y,
double z,
double xsize,
double ysize,
double zsize,
double t)
Get the properties at point (x, y, z) at time t. |
java.lang.Object |
getPreview(ProcedureEditor editor)
Create an object which displays a preview of the procedure. |
double |
getStepSize()
Get the step size to be used for integrating this material. |
static java.lang.String |
getTypeName()
|
java.lang.String |
getWindowTitle()
Get the title of the procedure's editing window. |
boolean |
isScattering()
The material scatters light if there is anything connected to the scattering output. |
void |
setStepSize(double step)
|
void |
updatePreview(java.lang.Object preview)
Update the display of the preview. |
boolean |
usesImage(ImageMap image)
Determine whether this Material uses the specified image. |
void |
writeToFile(java.io.DataOutputStream out,
Scene theScene)
The following method writes the material's data to an output stream. |
| Methods inherited from class artofillusion.material.Material3D |
|---|
getDefaultMapping |
| Methods inherited from class artofillusion.material.Material |
|---|
assignNewID, getID, getName, indexOfRefraction, setID, setIndexOfRefraction, setName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface artofillusion.procedural.ProcedureOwner |
|---|
getName, setName |
| Constructor Detail |
|---|
public ProceduralMaterial3D()
public ProceduralMaterial3D(java.io.DataInputStream in,
Scene theScene)
throws java.io.IOException,
java.io.InvalidObjectException
java.io.IOException
java.io.InvalidObjectException| Method Detail |
|---|
public static java.lang.String getTypeName()
public double getStepSize()
Material
getStepSize in class Materialpublic void setStepSize(double step)
public void getMaterialSpec(MaterialSpec spec,
double x,
double y,
double z,
double xsize,
double ysize,
double zsize,
double t)
Material3D
getMaterialSpec in class Material3Dpublic boolean usesImage(ImageMap image)
usesImage in class Materialpublic boolean isScattering()
isScattering in class Materialpublic boolean castsShadows()
Material
castsShadows in class Materialpublic Material duplicate()
Material
duplicate in class Material
public void edit(buoy.widget.BFrame fr,
Scene sc)
Material
edit in class Material
public void writeToFile(java.io.DataOutputStream out,
Scene theScene)
throws java.io.IOException
Material
writeToFile in class Materialjava.io.IOExceptionpublic java.lang.String getWindowTitle()
getWindowTitle in interface ProcedureOwnerpublic java.lang.Object getPreview(ProcedureEditor editor)
getPreview in interface ProcedureOwnerpublic void updatePreview(java.lang.Object preview)
updatePreview in interface ProcedureOwnerpublic void disposePreview(java.lang.Object preview)
disposePreview in interface ProcedureOwnerpublic boolean allowViewAngle()
allowViewAngle in interface ProcedureOwnerpublic boolean allowParameters()
allowParameters in interface ProcedureOwnerpublic boolean canEditName()
canEditName in interface ProcedureOwnerpublic void acceptEdits(ProcedureEditor editor)
acceptEdits in interface ProcedureOwnerpublic void editProperties(ProcedureEditor editor)
editProperties in interface ProcedureOwner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||