com.supermap.realspace

类 LatLonGrid



  • public class LatLonGrid
    extends Object
    地球经纬网类。

    该类用于设置经纬网对象以及其中的文字对象是否可见。

    地球表面三维地物的位置用地理坐标系中的经纬坐标来描述。在地球经纬坐标系统中,沿着东西方向水平的平行线称为纬线,沿着南北方向的垂直的平行线称为经线,这些包围着地球的由经纬线组成的网格称为经纬网。

    示范代码:
    以下代码示范了显示三维场景窗口,同时设置三维场景的经纬网对象。
          public void TestLatLonGrid()
         {
             //返回当前三维场景窗口的三维场景对象,并进行三维场景的设置
             SceneControl sceneControl = new SceneControl();
             Scene sceneObject = sceneControl.getScene();
             LatLonGrid latLonGrid = sceneObject.getLatLonGrid();
             latLonGrid.setTextVisible(false);
             latLonGrid.setVisible(true);
             sceneObject.refresh();
    
             //释放占用的资源
             sceneControl.dispose();
            }
    • 方法详细资料

      • setVisible

        public void setVisible(boolean value)
        设置经纬网对象是否可见。
        参数:
        value - 一个布尔值指定经纬网对象是否可见。
      • isVisible

        public boolean isVisible()
        返回经纬网对象是否可见。
        返回:
        经纬网对象可见返回 true;否则返回 false。
      • setTextVisible

        public void setTextVisible(boolean value)
        设置经纬网对象上的文字是否可见。
        参数:
        value - 一个布尔值指定经纬网对象上的文字是否可见。
      • isTextVisible

        public boolean isTextVisible()
        返回经纬网对象上的文字是否可见。
        返回:
        经纬网对象上的文字可见返回 true;否则返回 false。

Copyright © 2021–2024 SuperMap. All rights reserved.