|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.supermap.data.Geometry com.supermap.data.GeoCurvePolygon
public class GeoCurvePolygon
参数化面几何对象类,派生于 Geometry
类。
该类用于描述参数化面地理实体,仅包含一个面几何对象,几何对象必须是闭合环,包含一个外环、零个或多个内环。面的轮廓线可由折线(GeoLine)、圆(GeoCircle)、椭圆(GeoEllipse)、参数化线(GeoCompoundCurve)组成。
为防止三方数据中的参数化对象,迁移到SuperMap数据源后,参数化部分由于拟合导致的精度问题,设计此类来描述参数化面对象。
构造方法摘要 | |
---|---|
GeoCurvePolygon()
构造一个新的 GeoCurvePolygon 参数化面对象。 |
|
GeoCurvePolygon(GeoCurvePolygon geoParametricRegion)
根据指定的 GeoCurvePolygon 对象构造一个与其完全相同的新对象。 |
方法摘要 | |
---|---|
boolean |
addRing(Geometry geometry)
添加子对象,添加对象必须是闭合的,如果非闭合,则返回失败。 |
GeoCurvePolygon |
clone()
克隆 GeoCurvePolygon 参数化面对象。 |
void |
dispose()
释放该对象所占用的资源。 |
double |
getArea()
返回二维面对象的面积,单位与数据集的单位相同。 |
double |
getPerimeter()
返回二维面对象的周长,单位与数据集的单位相同 |
Geometry |
getRing(int index)
获取指定索引的子对象。 |
int |
getRingCount()
获取参数化面包含的对象数目。 |
boolean |
isEmpty()
判断当前参数化面对象几何是否为空,即其子对象个数是否为0。 |
void |
setEmpty()
清空当前参数化面对象的空间数据。 |
从类 com.supermap.data.Geometry 继承的方法 |
---|
addCustomGeometryCreatedListener, fromXML, getBounds, getID, getInnerPoint, getStyle, getType, getVariantID, hitTest, mirror, offset, removeCustomGeometryCreatedListener, resize, rotate, setID, setStyle, toXML |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public GeoCurvePolygon()
public GeoCurvePolygon(GeoCurvePolygon geoParametricRegion)
geoParametricRegion
- 指定的 GeoCurvePolygon 参数化面对象。方法详细信息 |
---|
public double getPerimeter()
public double getArea()
public boolean addRing(Geometry geometry)
GeoLine,@link GeoArc GeoArc,@link GeoCircle GeoCircle,@link GeoEllipse GeoEllipse,@link GeoEllipticArc GeoEllipticArc
geometry
- 待添加的面几何子对象。
public int getRingCount()
public Geometry getRing(int index)
index
- 指定的子对象的序号。
Geometry
对象,失败返回空值。public GeoCurvePolygon clone()
java.lang.Object
中的 clone
public void dispose()
Geometry
中的 dispose
public boolean isEmpty()
Geometry
中的 isEmpty
Geometry.offset(double, double)
public void setEmpty()
Geometry
中的 setEmpty
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |