|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.material.MaterialMapping
artofillusion.material.UniformMaterialMapping
public class UniformMaterialMapping
UniformMaterialMapping is the MaterialMapping for UniformMaterials.
Constructor Summary | |
---|---|
UniformMaterialMapping(java.io.DataInputStream in,
Object3D theObject,
Material theMaterial)
|
|
UniformMaterialMapping(Object3D theObject,
Material theMaterial)
|
Method Summary | |
---|---|
void |
copy(MaterialMapping map)
Make this mapping identical to another one. |
MaterialMapping |
duplicate()
Create a new MaterialMapping which is identical to this one. |
MaterialMapping |
duplicate(Object3D obj,
Material mat)
Create a new MaterialMapping which is identical to this one, but for a different object and Material. |
Widget |
getEditingPanel(Object3D obj,
MaterialPreviewer preview)
This method should return a Widget in which the user can edit the mapping. |
void |
getMaterialSpec(Vec3 pos,
MaterialSpec spec,
double size,
double t)
Given a point inside the object for which this mapping is being used, find the corresponding material properties. |
double |
getStepSize()
Get the step size to use for integrating the material. |
static boolean |
legalMapping(Object3D obj,
Material mat)
|
void |
writeToFile(java.io.DataOutputStream out)
Every subclass of MaterialMapping must define a constructor which takes a Material and an Object3D as its arguments: |
Methods inherited from class artofillusion.material.MaterialMapping |
---|
castsShadows, getMaterial, getName, getObject, indexOfRefraction, isScattering |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UniformMaterialMapping(Object3D theObject, Material theMaterial)
public UniformMaterialMapping(java.io.DataInputStream in, Object3D theObject, Material theMaterial) throws java.io.IOException, java.io.InvalidObjectException
java.io.IOException
java.io.InvalidObjectException
Method Detail |
---|
public double getStepSize()
MaterialMapping
getStepSize
in class MaterialMapping
public void getMaterialSpec(Vec3 pos, MaterialSpec spec, double size, double t)
MaterialMapping
getMaterialSpec
in class MaterialMapping
public static boolean legalMapping(Object3D obj, Material mat)
public MaterialMapping duplicate()
MaterialMapping
duplicate
in class MaterialMapping
public MaterialMapping duplicate(Object3D obj, Material mat)
MaterialMapping
duplicate
in class MaterialMapping
public void copy(MaterialMapping map)
MaterialMapping
copy
in class MaterialMapping
public Widget getEditingPanel(Object3D obj, MaterialPreviewer preview)
MaterialMapping
getEditingPanel
in class MaterialMapping
public void writeToFile(java.io.DataOutputStream out) throws java.io.IOException
MaterialMapping
public MappingSubclass(Object3D theObject, Material theMaterial)
In addition, every subclass must include a constructor with the signature
public MappingSubclass(DataInputStream in, Object3D theObject, Material theMaterial) throws IOException, InvalidObjectException
which reconstructs the mapping by reading its data from an input stream. The following method writes the object's data to an output stream.
writeToFile
in class MaterialMapping
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |