com.supermap.realspace
类 LatLonGrid

java.lang.Object
  继承者 com.supermap.realspace.LatLonGrid

public class LatLonGrid
extends java.lang.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();
        }

方法摘要
 boolean isTextVisible()
          返回经纬网对象上的文字是否可见。
 boolean isVisible()
          返回经纬网对象是否可见。
 void setTextVisible(boolean value)
          设置经纬网对象上的文字是否可见。
 void setVisible(boolean value)
          设置经纬网对象是否可见。
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

isVisible

public boolean isVisible()
返回经纬网对象是否可见。

返回:
经纬网对象可见返回 true;否则返回 false。

setVisible

public void setVisible(boolean value)
设置经纬网对象是否可见。

参数:
value - 一个布尔值指定经纬网对象是否可见。

isTextVisible

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

返回:
经纬网对象上的文字可见返回 true;否则返回 false。

setTextVisible

public void setTextVisible(boolean value)
设置经纬网对象上的文字是否可见。

参数:
value - 一个布尔值指定经纬网对象上的文字是否可见。