com.supermap.data
类 GeoCylinder
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.Geometry
-
- com.supermap.data.Geometry3D
-
- com.supermap.data.GeoCylinder
-
- 所有已实现的接口:
- IDisposable
public class GeoCylinder extends Geometry3D
圆台几何对象类,继承于Geometry3D
类。如果设置该类对象的底面圆的半径和顶面圆的半径相等,就是圆柱几何对象。
该类仅在 Windows、Linux 平台版本中支持。
注意:添加该类型的实例到三维场景的跟踪图层时,必须要先调用
getGeoModel()
方法使其按 GeoModel 的方式重新构建。具体使用方法可参见GeoBox
类的范例程序。
-
-
构造器概要
构造器 构造器和说明 GeoCylinder()
构造一个新的 GeoCylinder 对象。GeoCylinder(GeoCylinder geoCylinder)
根据给定的 GeoCylinder 构造一个与其完全相同的新对象。GeoCylinder(Point3D position, double topRadius, double bottomRadius, double height)
根据指定的参数来构造一个 GeoCylinder 的新对象。
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 GeoCylinder
clone()
克隆一个Geometry对象。void
dispose()
释放该对象所占用的资源。double
getBottomRadius()
返回圆台几何对象底面圆的半径,单位为米。double
getHeight()
返回圆台几何对象的高度,单位为米。double
getTopRadius()
返回圆台几何对象顶面圆的半径,单位为米。void
setBottomRadius(double value)
设置圆台几何对象底面圆的半径,单位为米。void
setHeight(double value)
设置圆台几何对象的高度,单位为米。void
setTopRadius(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
-
-
-
-
构造器详细资料
-
GeoCylinder
public GeoCylinder()
构造一个新的 GeoCylinder 对象。
-
GeoCylinder
public GeoCylinder(GeoCylinder geoCylinder)
根据给定的 GeoCylinder 构造一个与其完全相同的新对象。- 参数:
geoCylinder
- 给定的 GeoCylinder 对象。
-
GeoCylinder
public GeoCylinder(Point3D position, double topRadius, double bottomRadius, double height)
根据指定的参数来构造一个 GeoCylinder 的新对象。- 参数:
position
- 圆台几何对象位置的三维坐标。topRadius
- 圆台几何对象顶面圆的半径,单位为米。bottomRadius
- 圆台几何对象底面圆的半径,单位为米。height
- 圆台几何对象的高度,单位为米。
-
-
方法详细资料
-
getTopRadius
public double getTopRadius()
返回圆台几何对象顶面圆的半径,单位为米。- 返回:
- 圆台几何对象顶面圆的半径。单位为米。
- 默认值:
- 默认值为 1.0,,单位为米。
-
setTopRadius
public void setTopRadius(double value)
设置圆台几何对象顶面圆的半径,单位为米。- 参数:
value
- 圆台几何对象顶面圆的半径。单位为米。
-
getBottomRadius
public double getBottomRadius()
返回圆台几何对象底面圆的半径,单位为米。- 返回:
- 圆台几何对象底面圆的半径。单位为米。
- 默认值:
- 默认值为 2.0,单位为米。
-
setBottomRadius
public void setBottomRadius(double value)
设置圆台几何对象底面圆的半径,单位为米。- 参数:
value
- 圆台几何对象底面圆的半径。单位为米。
-
getHeight
public double getHeight()
返回圆台几何对象的高度,单位为米。- 返回:
- 圆台几何对象的高度。单位为米。
- 默认值:
- 默认值为 1.0,单位为米。
-
setHeight
public void setHeight(double value)
设置圆台几何对象的高度,单位为米。- 参数:
value
- 圆台几何对象的高度。单位为米。
-
clone
public GeoCylinder clone()
从类复制的说明:Geometry
克隆一个Geometry对象。
-
dispose
public void dispose()
从类复制的说明:Geometry
释放该对象所占用的资源。当调用该方法之后,此对象不再可用。- 指定者:
dispose
在接口中IDisposable
- 指定者:
dispose
在类中Geometry
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.