Package gov.nih.mipav.view.renderer.J3D
Class SoftwareMaterial
java.lang.Object
gov.nih.mipav.view.renderer.J3D.SoftwareMaterial
This class maintains the following material properties:
- emissive color (unaffected by lights) - ambient color (affected only by ambient lights) - diffuse color (for diffuse lighting; can be replaced by vertex color) - specular color (for specular lighting; can be replaced by vertex color) - specular shininess (set to zero to disable specular effects)
-
Field Summary
FieldsModifier and TypeFieldDescriptionjavax.vecmath.Color3fDOCUMENT ME!javax.vecmath.Color3fDOCUMENT ME!javax.vecmath.Color3fDefaults colors set according to defaults for Java3D Material.floatDisable specular lighting effects.javax.vecmath.Color3fDOCUMENT ME! -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanQuery whether the material has specular properties.
-
Field Details
-
ambient
public javax.vecmath.Color3f ambientDOCUMENT ME! -
diffuse
public javax.vecmath.Color3f diffuseDOCUMENT ME! -
emissive
public javax.vecmath.Color3f emissiveDefaults colors set according to defaults for Java3D Material. -
shininess
public float shininessDisable specular lighting effects. -
specular
public javax.vecmath.Color3f specularDOCUMENT ME!
-
-
Constructor Details
-
SoftwareMaterial
public SoftwareMaterial()Default constructor. Sets the colors to defaults and disables specular properties.
-
-
Method Details
-
hasSpecular
public boolean hasSpecular()Query whether the material has specular properties.- Returns:
- boolean True if the material has specular properties.
-