com.supermap.data
类 GeoArc
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.Geometry
-
- com.supermap.data.GeoArc
-
- 所有已实现的接口:
- IDisposable
public class GeoArc extends Geometry
圆弧几何对象类。该类主要用于 CAD 图层,是
Geometry对象的子对象。
-
-
构造器概要
构造器 构造器和说明 GeoArc()构造一个新的 GeoArc 对象。GeoArc(GeoArc geoArc)根据给定的 GeoArc 对象构造一个与其完全相同的新对象。GeoArc(Point2D center, double radius, double startAngle, double sweepAngle)根据指定的参数来构造一个 GeoArc 的新对象。GeoArc(Point2D startPoint, Point2D middlePoint, Point2D endPoint)根据指定的参数来构造一个 GeoArc 的新对象。
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 GeoArcclone()克隆一个Geometry对象。GeoLineconvertToLine(int segmentCount)将弧段转换为线对象。voiddispose()释放该对象所占用的资源。Point2DfindPointOnArc(double sweepAngle)根据扫过的角度值返回圆弧上的某一点。Point2DgetCenter()返回圆弧的圆心。doublegetLength()返回圆弧的弧长。doublegetRadius()返回圆弧的半径。doublegetStartAngle()返回圆弧的起始角度,单位为度。doublegetSweepAngle()返回圆弧所扫过的角度,单位为度。voidsetCenter(Point2D point2D)设置圆弧的圆心。voidsetRadius(double value)设置圆弧的半径。voidsetStartAngle(double value)设置圆弧的起始角度,单位为度。voidsetSweepAngle(double value)设置圆弧所扫过的角度,单位为度。
-
-
-
构造器详细资料
-
GeoArc
public GeoArc()
构造一个新的 GeoArc 对象。
-
GeoArc
public GeoArc(GeoArc geoArc)
根据给定的 GeoArc 对象构造一个与其完全相同的新对象。- 参数:
geoArc- 给定的 GeoArc 对象。
-
GeoArc
public GeoArc(Point2D center, double radius, double startAngle, double sweepAngle)
根据指定的参数来构造一个 GeoArc 的新对象。- 参数:
center- 圆弧的圆心。radius- 圆弧半径。startAngle- 圆弧的起始角度。sweepAngle- 圆弧所扫过的角度。
-
-
方法详细资料
-
getCenter
public Point2D getCenter()
返回圆弧的圆心。- 返回:
- 圆弧的圆心。
- 默认值:
- 默认值为 {X = 0,Y = 0}。
-
setCenter
public void setCenter(Point2D point2D)
设置圆弧的圆心。- 参数:
point2D- 圆弧的圆心。
-
getRadius
public double getRadius()
返回圆弧的半径。- 返回:
- 圆弧的半径。
- 默认值:
- 默认值为 1。
-
setRadius
public void setRadius(double value)
设置圆弧的半径。- 参数:
value- 圆弧的半径。
-
getStartAngle
public double getStartAngle()
返回圆弧的起始角度,单位为度。- 返回:
- 圆弧的起始角度。
- 默认值:
- 默认值为 0。
-
setStartAngle
public void setStartAngle(double value)
设置圆弧的起始角度,单位为度。- 参数:
value- 圆弧的起始角度。
-
getSweepAngle
public double getSweepAngle()
返回圆弧所扫过的角度,单位为度。角度范围为-360度到360度,逆时针扫过为正,顺时针扫过为负。- 返回:
- 圆弧所扫过的角度。
- 默认值:
- 默认值为 180。
-
setSweepAngle
public void setSweepAngle(double value)
设置圆弧所扫过的角度,单位为度。角度范围为-360度到360度,逆时针扫过为正,顺时针扫过为负。- 参数:
value- 圆弧所扫过的角度。
-
getLength
public double getLength()
返回圆弧的弧长。- 返回:
- 圆弧的弧长。
- 默认值:
- 默认值为 3.14159265358979。
-
convertToLine
public GeoLine convertToLine(int segmentCount)
将弧段转换为线对象。- 参数:
segmentCount- 等分弧段的段数。- 返回:
- 线对象。
-
findPointOnArc
public Point2D findPointOnArc(double sweepAngle)
根据扫过的角度值返回圆弧上的某一点。- 参数:
sweepAngle- 扫过的角度值,角度值在0度到getSweepAngle()方法的返回值之间。- 返回:
- Point2D 类型的对象。
-
dispose
public void dispose()
从类复制的说明:Geometry释放该对象所占用的资源。当调用该方法之后,此对象不再可用。- 指定者:
dispose在接口中IDisposable- 指定者:
dispose在类中Geometry
-
-
Copyright © 2021–2025 SuperMap. All rights reserved.