Sweet Home 3D 3.4

com.eteks.sweethome3d.j3d
Class OBJMaterial

java.lang.Object
  extended by javax.media.j3d.SceneGraphObject
      extended by javax.media.j3d.NodeComponent
          extended by javax.media.j3d.Material
              extended by com.eteks.sweethome3d.j3d.OBJMaterial

public class OBJMaterial
extends Material

A material with additional parameters useful for raytracing rendering.

Author:
Emmanuel Puybaret

Field Summary
 
Fields inherited from class javax.media.j3d.Material
ALLOW_COMPONENT_READ, ALLOW_COMPONENT_WRITE, AMBIENT, AMBIENT_AND_DIFFUSE, DIFFUSE, EMISSIVE, SPECULAR
 
Constructor Summary
OBJMaterial()
           
 
Method Summary
 NodeComponent cloneNodeComponent(boolean forceDuplicate)
          Returns a clone of this material.
 int getIlluminationModel()
          Returns the illumination model of this material as defined in MTL format.
 float getOpticalDensity()
          Returns the optical density of this material.
 float getSharpness()
          Returns the sharpness of this material.
 boolean isIlluminationModelSet()
          Returns true if illumination model was set on this material.
 boolean isOpticalDensitySet()
          Returns true if optical density was set on this material.
 boolean isSharpnessSet()
          Returns true if sharpness was set on this material.
 void setIlluminationModel(int illuminationModel)
          Sets the illumination model of this material.
 void setOpticalDensity(float opticalDensity)
          Sets the optical density of this material.
 void setSharpness(float sharpness)
          Sets the sharpness of this material.
 
Methods inherited from class javax.media.j3d.Material
cloneNodeComponent, getAmbientColor, getColorTarget, getDiffuseColor, getEmissiveColor, getLightingEnable, getShininess, getSpecularColor, setAmbientColor, setAmbientColor, setColorTarget, setDiffuseColor, setDiffuseColor, setDiffuseColor, setEmissiveColor, setEmissiveColor, setLightingEnable, setShininess, setSpecularColor, setSpecularColor, toString
 
Methods inherited from class javax.media.j3d.NodeComponent
duplicateNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTree
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, updateNodeReferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OBJMaterial

public OBJMaterial()
Method Detail

setOpticalDensity

public void setOpticalDensity(float opticalDensity)
Sets the optical density of this material.


getOpticalDensity

public float getOpticalDensity()
Returns the optical density of this material.

Throws:
java.lang.IllegalStateException - if optical density wasn't set.

isOpticalDensitySet

public boolean isOpticalDensitySet()
Returns true if optical density was set on this material.


setIlluminationModel

public void setIlluminationModel(int illuminationModel)
Sets the illumination model of this material.


getIlluminationModel

public int getIlluminationModel()
Returns the illumination model of this material as defined in MTL format.

Throws:
java.lang.IllegalStateException - if illumination model wasn't set.

isIlluminationModelSet

public boolean isIlluminationModelSet()
Returns true if illumination model was set on this material.


setSharpness

public void setSharpness(float sharpness)
Sets the sharpness of this material.


getSharpness

public float getSharpness()
Returns the sharpness of this material.

Throws:
java.lang.IllegalStateException - if sharpness wasn't set.

isSharpnessSet

public boolean isSharpnessSet()
Returns true if sharpness was set on this material.


cloneNodeComponent

public NodeComponent cloneNodeComponent(boolean forceDuplicate)
Returns a clone of this material.

Overrides:
cloneNodeComponent in class NodeComponent

Sweet Home 3D 3.4

? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License