Class SoftwareMaterial

java.lang.Object
gov.nih.mipav.view.renderer.J3D.SoftwareMaterial

public class SoftwareMaterial extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    javax.vecmath.Color3f
    DOCUMENT ME!
    javax.vecmath.Color3f
    DOCUMENT ME!
    javax.vecmath.Color3f
    Defaults colors set according to defaults for Java3D Material.
    float
    Disable specular lighting effects.
    javax.vecmath.Color3f
    DOCUMENT ME!
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Query whether the material has specular properties.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ambient

      public javax.vecmath.Color3f ambient
      DOCUMENT ME!
    • diffuse

      public javax.vecmath.Color3f diffuse
      DOCUMENT ME!
    • emissive

      public javax.vecmath.Color3f emissive
      Defaults colors set according to defaults for Java3D Material.
    • shininess

      public float shininess
      Disable specular lighting effects.
    • specular

      public javax.vecmath.Color3f specular
      DOCUMENT 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.