com.supermap.realspace

类 Atmosphere



  • public class Atmosphere
    extends Object
    大气环境类。

    大气环境对象是为了达到三维场景的真实感所采取大气层模拟效果。

    示范代码:
    以下代码示范了显示三维场景窗口,同时使三维场景的大气环境可见
    public void TestAtmosphere()
      {
       //返回当前三维场景窗口的三维场景对象,并进行三维场景的设置
       SceneControl sceneControl = new SceneControl();
       Scene sceneObject = sceneControl.getScene();
       Atmosphere atmosphere = sceneObject.getAtmosphere();
       atmosphere.setVisible(true);
       sceneObject.refresh();
    
       //释放占用的资源
       sceneControl.dispose();
       }
    • 方法详细资料

      • setEarthRayleighScaleHeight

        public void setEarthRayleighScaleHeight(float fEarthRayleighScaleHeight)
        设置大气参数,瑞利散射影响分布,
        参数:
        fEarthRayleighScaleHeight - 瑞利散射影响分布,范围[0 , 80],单位Km
      • setEarthMieScaleHeight

        public void setEarthMieScaleHeight(float fEarthMieScaleHeight)
        设置大气参数,米氏散射影响分布,
        参数:
        fEarthMieScaleHeight - 米氏散射影响分布,范围[0 , 12],单位Km
      • setRayleighScatteringScale

        public void setRayleighScatteringScale(float fRayleighScatteringScale)
        设置大气参数,瑞利散射影响分布,
        参数:
        fRayleighScatteringScale - 瑞利散射影响分布,范围[0 , 2]
      • setMieAbsorptionScale

        public void setMieAbsorptionScale(float fMieAbsorptionScale)
        设置大气参数,米氏散射吸收光照,
        参数:
        fMieAbsorptionScale - 米氏散射影响分布,范围[0 , 5]
      • setMieScatteringScale

        public void setMieScatteringScale(float fMieScatteringScale)
        设置大气参数,米氏散射影响分布,
        参数:
        fMieScatteringScale - 米氏散射影响分布,范围[0 , 5]
      • setMieAnisotropy

        public void setMieAnisotropy(float fMieAnisotropy)
        设置大气参数,米氏散射各异向性,
        参数:
        fMieAnisotropy - 米氏散射各异向性,范围[0 , 1]
      • setVisible

        public void setVisible(boolean value)
        设置大气环境是否可见。
        参数:
        value - 一个布尔值指定大气环境是否可见。
      • isVisible

        public boolean isVisible()
        返回大气环境是否可见。
        返回:
        大气环境效果打开返回 true;关闭返回 false。
      • setSwipeEnable

        public void setSwipeEnable(boolean enable)
        设置大气环境的卷帘功能是否开启。
        参数:
        enable - 指定是否开启卷帘功能。
      • isSwipeEnable

        public boolean isSwipeEnable()
        返回大气环境的卷帘功能是否开启。
        返回:
        卷帘功能是否开启。
      • getSwipeRegion

        public Rectangle2D getSwipeRegion()
        返回大气环境开启卷帘的区域。
        返回:
        开启卷帘的区域。
      • setSwipeRegion

        public void setSwipeRegion(Rectangle2D rec)
        设置大气环境开启卷帘的区域。
        参数:
        rec - 指定开启卷帘的区域。

Copyright © 2021–2024 SuperMap. All rights reserved.