com.supermap.data
类 GeoCurve
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.Geometry
-
- com.supermap.data.GeoCurve
-
- 所有已实现的接口:
- IDisposable
public class GeoCurve extends Geometry
二维曲线几何对象类。该类主要用于 CAD 图层,是
Geometry
对象的子对象。Curve 曲线是 DGN 数据中的对象,至少有6个点才可以构成一条 Curve 曲线,其中前两个和后两个点用于控制曲线的走向,中间的两个点才是曲线上的节点。
-
-
构造器概要
构造器 构造器和说明 GeoCurve()
构造一个新的 GeoCurve 对象。GeoCurve(GeoCurve GeoCurve)
根据指定的 GeoCurve 对象构造一个与其完全相同的新对象。GeoCurve(Point2Ds controlPoints)
根据指定的参数来构造一个 GeoCurve 的新对象。
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 GeoCurve
clone()
克隆一个Geometry对象。GeoLine
convertToLine(int pointCountPerSegment)
将二维曲线几何对象转换为线几何对象。void
dispose()
释放该对象所占用的资源。Point2Ds
getControlPoints()
返回控制点集合。double
getLength()
返回二维曲线几何对象的长度。boolean
isEmpty()
返回二维曲线对象是否为空void
setControlPoints(Point2Ds controlPoints)
设置控制点集合。void
setEmpty()
将二维曲线对象置为空-
从类继承的方法 com.supermap.data.Geometry
addCustomGeometryCreatedListener, fromXML, getBounds, getID, getInnerPoint, getStyle, getType, getVariantID, hitTest, mirror, offset, removeCustomGeometryCreatedListener, resize, rotate, setBounds, setID, setStyle, toXML
-
-
-
-
构造器详细资料
-
GeoCurve
public GeoCurve()
构造一个新的 GeoCurve 对象。
-
GeoCurve
public GeoCurve(GeoCurve GeoCurve)
根据指定的 GeoCurve 对象构造一个与其完全相同的新对象。- 参数:
geoCurve
- 指定的 GeoCurve 对象。
-
GeoCurve
public GeoCurve(Point2Ds controlPoints)
根据指定的参数来构造一个 GeoCurve 的新对象。- 参数:
controlPoints
- 控制点串。
-
-
方法详细资料
-
getLength
public double getLength()
返回二维曲线几何对象的长度。- 返回:
- 二维曲线几何对象的长度。
- 默认值:
- 默认值为 0。
-
isEmpty
public boolean isEmpty()
返回二维曲线对象是否为空- 覆盖:
isEmpty
在类中Geometry
- 返回:
- boolean
- 另请参阅:
Geometry.offset(double, double)
-
setControlPoints
public void setControlPoints(Point2Ds controlPoints)
设置控制点集合。- 参数:
point2Ds
- 控制点集合。
-
convertToLine
public GeoLine convertToLine(int pointCountPerSegment)
将二维曲线几何对象转换为线几何对象。- 参数:
pointCountPerSegment
- 二维曲线的相邻控制点之间插值拟合的节点数。- 返回:
- 线几何对象。
-
dispose
public void dispose()
从类复制的说明:Geometry
释放该对象所占用的资源。当调用该方法之后,此对象不再可用。- 指定者:
dispose
在接口中IDisposable
- 指定者:
dispose
在类中Geometry
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.