public class OBJMaterial
extends javax.media.j3d.Material
Constructor and Description |
---|
OBJMaterial() |
Modifier and Type | Method and Description |
---|---|
javax.media.j3d.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.
|
cloneNodeComponent, getAmbientColor, getColorTarget, getDiffuseColor, getEmissiveColor, getLightingEnable, getShininess, getSpecularColor, setAmbientColor, setAmbientColor, setColorTarget, setDiffuseColor, setDiffuseColor, setDiffuseColor, setEmissiveColor, setEmissiveColor, setLightingEnable, setShininess, setSpecularColor, setSpecularColor, toString
duplicateNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTree
public void setOpticalDensity(float opticalDensity)
public float getOpticalDensity()
java.lang.IllegalStateException
- if optical density wasn't set.public boolean isOpticalDensitySet()
true
if optical density was set on this material.public void setIlluminationModel(int illuminationModel)
public int getIlluminationModel()
java.lang.IllegalStateException
- if illumination model wasn't set.public boolean isIlluminationModelSet()
true
if illumination model was set on this material.public void setSharpness(float sharpness)
public float getSharpness()
java.lang.IllegalStateException
- if sharpness wasn't set.public boolean isSharpnessSet()
true
if sharpness was set on this material.public javax.media.j3d.NodeComponent cloneNodeComponent(boolean forceDuplicate)
cloneNodeComponent
in class javax.media.j3d.NodeComponent
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License