com.supermap.data
类 GeoSphere
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.Geometry
-
- com.supermap.data.Geometry3D
-
- com.supermap.data.GeoSphere
-
- 所有已实现的接口:
- IDisposable
public class GeoSphere extends Geometry3D
球体几何对象类。继承于
Geometry3D
类。该类仅在 Windows、Linux 平台版本中支持。
注意:添加该类型的实例到三维场景的跟踪图层时,必须要先调用
getGeoModel()
方法使其按 GeoModel 的方式重新构建。具体使用方法可参见GeoBox
类的范例程序。
-
-
构造器概要
构造器 构造器和说明 GeoSphere()
构造一个新的 GeoSphere 对象。GeoSphere(GeoSphere geoSphere)
根据给定的 GeoSphere 对象构造一个与其完全相同的新对象。GeoSphere(Point3D position, double radius)
根据指定的参数来构造一个 GeoSphere 的新对象。
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 GeoSphere
clone()
克隆一个Geometry对象。void
dispose()
释放该对象所占用的资源。Point3D
getCenter()
返回球体几何对象的球心。double
getRadius()
返回球体几何对象的半径,单位为米。void
setRadius(double value)
设置球体几何对象的半径,单位为米。-
从类继承的方法 com.supermap.data.Geometry3D
convertToGeoModel3D, convertToGeoModel3D, convertToGeoModel3D, getBoundingBox, getGeoModel, getInnerPoint3D, getOrientedBoundingBox, getPosition, getRotationX, getRotationY, getRotationZ, getScaleX, getScaleY, getScaleZ, getStyle3D, getVolume, offset, setPosition, setRotationX, setRotationY, setRotationZ, setScaleX, setScaleY, setScaleZ, setStyle3D
-
-
-
-
构造器详细资料
-
GeoSphere
public GeoSphere()
构造一个新的 GeoSphere 对象。
-
GeoSphere
public GeoSphere(GeoSphere geoSphere)
根据给定的 GeoSphere 对象构造一个与其完全相同的新对象。- 参数:
geoSphere
- 给定的 GeoSphere 对象。
-
GeoSphere
public GeoSphere(Point3D position, double radius)
根据指定的参数来构造一个 GeoSphere 的新对象。- 参数:
position
- 球体几何对象的位置。radius
- 球体几何对象的半径,单位为米。
-
-
方法详细资料
-
getCenter
public Point3D getCenter()
返回球体几何对象的球心。- 返回:
- 球体几何对象的球心。
- 默认值:
- 默认值为 {X = 0, Y = 0, Z = 1}。
-
getRadius
public double getRadius()
返回球体几何对象的半径,单位为米。- 返回:
- 球体几何对象的半径。单位为米。
- 默认值:
- 默认值为 1.0,单位为米。
-
setRadius
public void setRadius(double value)
设置球体几何对象的半径,单位为米。- 参数:
value
- 球体几何对象的半径。单位为米。
-
dispose
public void dispose()
从类复制的说明:Geometry
释放该对象所占用的资源。当调用该方法之后,此对象不再可用。- 指定者:
dispose
在接口中IDisposable
- 指定者:
dispose
在类中Geometry
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.