artofillusion.material
Class UniformMaterial

java.lang.Object
  extended by artofillusion.material.Material
      extended by artofillusion.material.UniformMaterial

public class UniformMaterial
extends Material

UniformMaterial represents a material whose properties do not vary with position.


Constructor Summary
UniformMaterial()
           
UniformMaterial(java.io.DataInputStream in, Scene theScene)
           
 
Method Summary
 boolean castsShadows()
          Return true if this material should cast shadows.
 Material duplicate()
          Create a duplicate of the material.
 void edit(BFrame fr, Scene sc)
          Allow the user to interactively edit the material.
 MaterialMapping getDefaultMapping(Object3D obj)
          Get a default MaterialMapping for the material.
 void getMaterialSpec(MaterialSpec spec)
           
static java.lang.String getTypeName()
           
 boolean isScattering()
          Return true if this material has internal scattering.
 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.Material
assignNewID, getID, getName, getStepSize, indexOfRefraction, setID, setIndexOfRefraction, setName, usesImage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniformMaterial

public UniformMaterial()

UniformMaterial

public UniformMaterial(java.io.DataInputStream in,
                       Scene theScene)
                throws java.io.IOException,
                       java.io.InvalidObjectException
Throws:
java.io.IOException
java.io.InvalidObjectException
Method Detail

getTypeName

public static java.lang.String getTypeName()

isScattering

public boolean isScattering()
Description copied from class: Material
Return true if this material has internal scattering.

Specified by:
isScattering in class Material

castsShadows

public boolean castsShadows()
Description copied from class: Material
Return true if this material should cast shadows.

Specified by:
castsShadows in class Material

getMaterialSpec

public void getMaterialSpec(MaterialSpec spec)

getDefaultMapping

public MaterialMapping getDefaultMapping(Object3D obj)
Description copied from class: Material
Get a default MaterialMapping for the material.

Specified by:
getDefaultMapping in class Material

duplicate

public Material duplicate()
Description copied from class: Material
Create a duplicate of the material.

Specified by:
duplicate in class Material

edit

public void edit(BFrame fr,
                 Scene sc)
Description copied from class: Material
Allow the user to interactively edit the material. fr is a Frame which can be used as a parent for Dialogs, and sc is the Scene which this Material is part of.

Specified by:
edit in class Material

writeToFile

public void writeToFile(java.io.DataOutputStream out,
                        Scene theScene)
                 throws java.io.IOException
Description copied from class: Material
The following method writes the material's data to an output stream. In addition to this method, every Material must include a constructor with the signature public Classname(DataInputStream in, Scene theScene) throws IOException, InvalidObjectException which reconstructs the material by reading its data from an input stream.

Specified by:
writeToFile in class Material
Throws:
java.io.IOException


Copyright © 1999-2011 by Peter Eastman.