artofillusion.material
Class Material3D

java.lang.Object
  extended by artofillusion.material.Material
      extended by artofillusion.material.Material3D
Direct Known Subclasses:
ProceduralMaterial3D

public abstract class Material3D
extends Material

Material3D represents a Material whose properties are defined in 3D.


Constructor Summary
Material3D()
           
 
Method Summary
 MaterialMapping getDefaultMapping(Object3D obj)
          The default mapping is a LinearMaterialMapping.
abstract  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.
 
Methods inherited from class artofillusion.material.Material
assignNewID, castsShadows, duplicate, edit, getID, getName, getStepSize, getTypeName, indexOfRefraction, isScattering, setID, setIndexOfRefraction, setName, usesImage, writeToFile
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Material3D

public Material3D()
Method Detail

getMaterialSpec

public abstract 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. More precisely, the properties returned should represent an average over a region of width (xsize, ysize, zsize), which is centered at (x, y, z).


getDefaultMapping

public MaterialMapping getDefaultMapping(Object3D obj)
The default mapping is a LinearMaterialMapping.

Specified by:
getDefaultMapping in class Material


Copyright © 1999-2011 by Peter Eastman.