|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectartofillusion.texture.Texture
artofillusion.texture.Texture2D
artofillusion.texture.ProceduralTexture2D
public class ProceduralTexture2D
This is a Texture2D which uses a Procedure to calculate its properties.
| Field Summary |
|---|
| Fields inherited from class artofillusion.texture.Texture |
|---|
BUMP_COMPONENT, DIFFUSE_COLOR_COMPONENT, DISPLACEMENT_COMPONENT, EMISSIVE_COLOR_COMPONENT, HILIGHT_COLOR_COMPONENT, SPECULAR_COLOR_COMPONENT, TRANSPARENT_COLOR_COMPONENT |
| Constructor Summary | |
|---|---|
ProceduralTexture2D()
|
|
ProceduralTexture2D(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. |
void |
disposePreview(java.lang.Object preview)
Dispose of the preview object when the editor is closed. |
Texture |
duplicate()
Create a duplicate of the texture. |
void |
edit(buoy.widget.BFrame fr,
Scene sc)
Allow the user to interactively edit the texture. |
void |
editProperties(ProcedureEditor editor)
Display the Properties dialog. |
void |
getAverageSpec(TextureSpec spec,
double time,
double[] param)
Get a TextureSpec which represents the average surface properties of this texture. |
double |
getDisplacement(double x,
double y,
double xsize,
double ysize,
double t,
double[] param)
Textures which use displacement mapping should override this method to return the displacement at the given point. |
TextureParameter[] |
getParameters()
Get the list of parameters for this texture. |
java.lang.Object |
getPreview(ProcedureEditor editor)
Create an object which displays a preview of the procedure. |
Procedure |
getProcedure()
Get the procedure used by this texture. |
void |
getTextureSpec(TextureSpec spec,
double x,
double y,
double xsize,
double ysize,
double angle,
double t,
double[] param)
Get the surface properties at point in the texture. |
void |
getTransparency(RGBColor trans,
double x,
double y,
double xsize,
double ysize,
double angle,
double t,
double[] param)
Same as above, except only return the transparent color. |
static java.lang.String |
getTypeName()
|
java.lang.String |
getWindowTitle()
Get the title of the procedure's editing window. |
boolean |
hasComponent(int component)
Determine whether this texture has a non-zero value anywhere for a particular component. |
void |
updatePreview(java.lang.Object preview)
Update the display of the preview. |
boolean |
usesImage(ImageMap image)
Determine whether this Texture uses the specified image. |
void |
writeToFile(java.io.DataOutputStream out,
Scene theScene)
The following method writes the texture's data to an output stream. |
| Methods inherited from class artofillusion.texture.Texture2D |
|---|
createComponentImage, displacementMapped, getDefaultMapping |
| Methods inherited from class artofillusion.texture.Texture |
|---|
assignNewID, getID, getName, setID, 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 ProceduralTexture2D()
public ProceduralTexture2D(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 void getAverageSpec(TextureSpec spec,
double time,
double[] param)
Texture
getAverageSpec in class Texture
public void getTextureSpec(TextureSpec spec,
double x,
double y,
double xsize,
double ysize,
double angle,
double t,
double[] param)
Texture2D
getTextureSpec in class Texture2Dspec - the surface properties will be stored in thisx - the x coordinate at which to evaluate the texturey - the y coordinate at which to evaluate the texturexsize - the range of x over which to average the surface propertiesysize - the range of z over which to average the surface propertiesangle - the dot product of the view direction with the surface normalt - the time at which to evaluate the surface propertiesparam - the texture parameter values at the point
public void getTransparency(RGBColor trans,
double x,
double y,
double xsize,
double ysize,
double angle,
double t,
double[] param)
Texture2D
getTransparency in class Texture2Dpublic Procedure getProcedure()
public boolean usesImage(ImageMap image)
usesImage in class Texture
public double getDisplacement(double x,
double y,
double xsize,
double ysize,
double t,
double[] param)
Texture2D
getDisplacement in class Texture2Dpublic Texture duplicate()
Texture
duplicate in class Texturepublic TextureParameter[] getParameters()
getParameters in class Texturepublic boolean hasComponent(int component)
hasComponent in class Texturecomponent - the texture component to check for (one of the *_COMPONENT constants)
public void edit(buoy.widget.BFrame fr,
Scene sc)
Texture
edit in class Texture
public void writeToFile(java.io.DataOutputStream out,
Scene theScene)
throws java.io.IOException
Texture
writeToFile in class Texturejava.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 allowParameters()
allowParameters in interface ProcedureOwnerpublic boolean allowViewAngle()
allowViewAngle 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 | |||||||||