类 Lighting


  • public class Lighting
    extends java.lang.Object
    作者:
    Yaqiang Wang
    • 构造器概要

      构造器 
      构造器 说明
      Lighting()
      Constructor
      Lighting​(boolean far)
      Constructor
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      float[] getAmbient()
      Get ambient
      float[] getDiffuse()
      Get diffuse
      float[] getPosition()
      Get position
      float[] getSpecular()
      Get specular
      boolean isEnable()
      Get enable lighting or not
      void setAmbient​(float[] value)
      Set ambient
      void setAmbient​(java.awt.Color value)
      Set ambient
      void setAmbient​(java.util.List value)
      Set ambient
      void setDiffuse​(float[] value)
      Set diffuse
      void setDiffuse​(java.awt.Color value)
      Set diffuse
      void setDiffuse​(java.util.List value)
      Set diffuse
      void setEnable​(boolean value)
      Set enable lighting or not
      void setMat_Ambient​(float[] value)
      Set material ambient light
      void setMat_Ambient​(java.util.List value)
      Set material ambient light
      void setMat_Shininess​(float value)
      Set material shininess
      void setMat_Specular​(float[] value)
      Set material specular light
      void setMat_Specular​(java.util.List value)
      Set material specular light
      void setPosition​(float[] value)
      Set position
      void setPosition​(java.util.List value)
      Set position
      void setSpecular​(float[] value)
      Set specular
      void setSpecular​(java.awt.Color value)
      Set specular
      void setSpecular​(java.util.List value)
      Set specular
      void start​(com.jogamp.opengl.GL2 gl)
      Start the lighting
      void stop​(com.jogamp.opengl.GL2 gl)
      Stop light
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • Lighting

        public Lighting()
        Constructor
      • Lighting

        public Lighting​(boolean far)
        Constructor
        参数:
        far - Far light position or not
    • 方法详细资料

      • isEnable

        public boolean isEnable()
        Get enable lighting or not
        返回:
        Boolean
      • setEnable

        public void setEnable​(boolean value)
        Set enable lighting or not
        参数:
        value - Boolean
      • getAmbient

        public float[] getAmbient()
        Get ambient
        返回:
        Ambient
      • setAmbient

        public void setAmbient​(float[] value)
        Set ambient
        参数:
        value - Ambient
      • setAmbient

        public void setAmbient​(java.util.List value)
        Set ambient
        参数:
        value - Ambient
      • setAmbient

        public void setAmbient​(java.awt.Color value)
        Set ambient
        参数:
        value - Color
      • getDiffuse

        public float[] getDiffuse()
        Get diffuse
        返回:
        Diffuse
      • setDiffuse

        public void setDiffuse​(float[] value)
        Set diffuse
        参数:
        value - Diffuse
      • setDiffuse

        public void setDiffuse​(java.util.List value)
        Set diffuse
        参数:
        value - Diffuse
      • setDiffuse

        public void setDiffuse​(java.awt.Color value)
        Set diffuse
        参数:
        value - Color
      • getSpecular

        public float[] getSpecular()
        Get specular
        返回:
        Specular
      • setSpecular

        public void setSpecular​(float[] value)
        Set specular
        参数:
        value - Specular
      • setSpecular

        public void setSpecular​(java.util.List value)
        Set specular
        参数:
        value - Specular
      • setSpecular

        public void setSpecular​(java.awt.Color value)
        Set specular
        参数:
        value - Color
      • getPosition

        public float[] getPosition()
        Get position
        返回:
        Position
      • setPosition

        public void setPosition​(float[] value)
        Set position
        参数:
        value - Position
      • setPosition

        public void setPosition​(java.util.List value)
        Set position
        参数:
        value - Position
      • setMat_Ambient

        public void setMat_Ambient​(float[] value)
        Set material ambient light
        参数:
        value - Material ambient light
      • setMat_Ambient

        public void setMat_Ambient​(java.util.List value)
        Set material ambient light
        参数:
        value - Material ambient light
      • setMat_Specular

        public void setMat_Specular​(float[] value)
        Set material specular light
        参数:
        value - Material specular light
      • setMat_Specular

        public void setMat_Specular​(java.util.List value)
        Set material specular light
        参数:
        value - Material specular light
      • setMat_Shininess

        public void setMat_Shininess​(float value)
        Set material shininess
        参数:
        value - Material shininess
      • start

        public void start​(com.jogamp.opengl.GL2 gl)
        Start the lighting
        参数:
        gl - GL2
      • stop

        public void stop​(com.jogamp.opengl.GL2 gl)
        Stop light
        参数:
        gl - GL2