com.supermap.data
类 GeoCurve

java.lang.Object
  继承者 com.supermap.data.Geometry
      继承者 com.supermap.data.GeoCurve

public class GeoCurve
extends Geometry

二维曲线几何对象类。

该类主要用于 CAD 图层,是 Geometry 对象的子对象。

Curve 曲线是 DGN 数据中的对象,至少有6个点才可以构成一条 Curve 曲线,其中前两个和后两个点用于控制曲线的走向,中间的两个点才是曲线上的节点。


构造方法摘要
GeoCurve()
          构造一个新的 GeoCurve 对象。
GeoCurve(GeoCurve geoCurve)
          根据指定的 GeoCurve 对象构造一个与其完全相同的新对象。
GeoCurve(Point2Ds controlPoints)
          根据指定的参数来构造一个 GeoCurve 的新对象。
 
方法摘要
 GeoCurve clone()
          返回当前 GeoCurve 对象的一个拷贝。
 GeoLine convertToLine(int pointCountPerSegment)
          将二维曲线几何对象转换为线几何对象。
 void dispose()
          释放该对象所占用的资源。
 Point2Ds getControlPoints()
          返回控制点集合。
 double getLength()
          返回二维曲线几何对象的长度。
 void setControlPoints(Point2Ds point2Ds)
          设置控制点集合。
 
从类 com.supermap.data.Geometry 继承的方法
addCustomGeometryCreatedListener, fromXML, getBounds, getID, getInnerPoint, getStyle, getType, getVariantID, hitTest, isEmpty, mirror, offset, removeCustomGeometryCreatedListener, resize, rotate, setEmpty, setID, setStyle, toXML
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

GeoCurve

public GeoCurve()
构造一个新的 GeoCurve 对象。


GeoCurve

public GeoCurve(GeoCurve geoCurve)
根据指定的 GeoCurve 对象构造一个与其完全相同的新对象。

参数:
geoCurve - 指定的 GeoCurve 对象。

GeoCurve

public GeoCurve(Point2Ds controlPoints)
根据指定的参数来构造一个 GeoCurve 的新对象。

参数:
controlPoints - 控制点串。
方法详细信息

getLength

public double getLength()
返回二维曲线几何对象的长度。

返回:
二维曲线几何对象的长度。
默认值:
默认值为 0。

getControlPoints

public Point2Ds getControlPoints()
返回控制点集合。

返回:
控制点集合。
默认值:
默认值为空的 Point2Ds 对象。

setControlPoints

public void setControlPoints(Point2Ds point2Ds)
设置控制点集合。

参数:
point2Ds - 控制点集合。

convertToLine

public GeoLine convertToLine(int pointCountPerSegment)
将二维曲线几何对象转换为线几何对象。

参数:
pointCountPerSegment - 二维曲线的相邻控制点之间插值拟合的节点数。
返回:
线几何对象。

dispose

public void dispose()
释放该对象所占用的资源。当调用该方法之后,此对象不再可用。

覆盖:
Geometry 中的 dispose

clone

public GeoCurve clone()
返回当前 GeoCurve 对象的一个拷贝。

覆盖:
java.lang.Object 中的 clone
返回:
通过克隆操作得到的 GeoCurve 对象。