|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.texture.Texture
artofillusion.texture.Texture3D
artofillusion.texture.ProceduralTexture3D
public class ProceduralTexture3D
This is a Texture3D 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 | |
---|---|
ProceduralTexture3D()
|
|
ProceduralTexture3D(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(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 z,
double xsize,
double ysize,
double zsize,
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 z,
double xsize,
double ysize,
double zsize,
double angle,
double t,
double[] param)
Get the surface properties at point in the texture. |
void |
getTransparency(RGBColor trans,
double x,
double y,
double z,
double xsize,
double ysize,
double zsize,
double angle,
double t,
double[] param)
|
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.Texture3D |
---|
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 ProceduralTexture3D()
public ProceduralTexture3D(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 z, double xsize, double ysize, double zsize, double angle, double t, double[] param)
Texture3D
getTextureSpec
in class Texture3D
spec
- 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 texturez
- the z coordinate at which to evaluate the texturexsize
- the range of x over which to average the surface propertiesysize
- the range of y over which to average the surface propertieszsize
- 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 pointpublic void getTransparency(RGBColor trans, double x, double y, double z, double xsize, double ysize, double zsize, double angle, double t, double[] param)
getTransparency
in class Texture3D
public Procedure getProcedure()
public boolean usesImage(ImageMap image)
usesImage
in class Texture
public double getDisplacement(double x, double y, double z, double xsize, double ysize, double zsize, double t, double[] param)
Texture3D
getDisplacement
in class Texture3D
public TextureParameter[] getParameters()
getParameters
in class Texture
public Texture duplicate()
Texture
duplicate
in class Texture
public boolean hasComponent(int component)
hasComponent
in class Texture
component
- the texture component to check for (one of the *_COMPONENT constants)public void edit(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 Texture
java.io.IOException
public java.lang.String getWindowTitle()
getWindowTitle
in interface ProcedureOwner
public java.lang.Object getPreview(ProcedureEditor editor)
getPreview
in interface ProcedureOwner
public void updatePreview(java.lang.Object preview)
updatePreview
in interface ProcedureOwner
public void disposePreview(java.lang.Object preview)
disposePreview
in interface ProcedureOwner
public boolean allowViewAngle()
allowViewAngle
in interface ProcedureOwner
public boolean allowParameters()
allowParameters
in interface ProcedureOwner
public boolean canEditName()
canEditName
in interface ProcedureOwner
public void acceptEdits(ProcedureEditor editor)
acceptEdits
in interface ProcedureOwner
public void editProperties(ProcedureEditor editor)
editProperties
in interface ProcedureOwner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |