com.supermap.data
类 GeoBillboard
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.Geometry
-
- com.supermap.data.Geometry3D
-
- com.supermap.data.GeoBillboard
-
- 所有已实现的接口:
- IDisposable
public class GeoBillboard extends Geometry3D
布告板类。该类用于在KML图层中通过设置图片或文字新建布告板。
-
-
构造器概要
构造器 构造器和说明 GeoBillboard()构造一个GeoBillboard的新对象。GeoBillboard(GeoBillboard geoBillboard)根据指定的参数来构造一个 GeoBillboard 的新对象。
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 intadd(Geometry geometry, String tag)在布告板中增加子对象。Geometryclone()克隆布告板。voiddispose()释放几何对象所占有的本地资源。Geometryget(int index)获取指定索引的子对象。intgetCount()获取子对象的数量 。doublegetHeight()获取布告板的高度。GeoBillboardQualitygetQuality()获取布告板的质量级别。StringgetTag(int index)获取指定索引的子对象的标签。doublegetWidth()获取布告板的宽度。booleanremove(int index)移除指定索引的布告板子对象 。booleanset(int index, Geometry geometry)将布告板中的指定的索引处的子对象设置为指定的几何对象。voidsetHeight(double height)设置布告板的高度。voidsetQuality(GeoBillboardQuality quality)设置布告板的质量级别。booleansetTag(int index, String tag)voidsetWidth(double width)设置布告板的宽度。-
从类继承的方法 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
-
-
-
-
构造器详细资料
-
GeoBillboard
public GeoBillboard()
构造一个GeoBillboard的新对象。
-
GeoBillboard
public GeoBillboard(GeoBillboard geoBillboard)
根据指定的参数来构造一个 GeoBillboard 的新对象。- 参数:
geoBillboard- 指定的布告板。
-
-
方法详细资料
-
dispose
public void dispose()
释放几何对象所占有的本地资源。- 指定者:
dispose在接口中IDisposable- 指定者:
dispose在类中Geometry
-
getWidth
public double getWidth()
获取布告板的宽度。- 返回:
- 布告板的宽度。
-
setWidth
public void setWidth(double width)
设置布告板的宽度。- 参数:
width- 指定的宽度。
-
getHeight
public double getHeight()
获取布告板的高度。- 返回:
- 布告板的高度。
-
setHeight
public void setHeight(double height)
设置布告板的高度。- 参数:
height- 指定的高度。
-
getQuality
public GeoBillboardQuality getQuality()
获取布告板的质量级别。- 返回:
- 布告板的质量级别。
-
setQuality
public void setQuality(GeoBillboardQuality quality)
设置布告板的质量级别。- 参数:
quality- 指定的质量级别。
-
getCount
public int getCount()
获取子对象的数量 。- 返回:
- 子对象的数量 。
-
add
public int add(Geometry geometry, String tag)
在布告板中增加子对象。- 参数:
geometry- 添加到布告板的子对象,目前支持GeoPicture3D和GeoText3D类型。tag- 子对象的标签。- 返回:
- 子对象的索引值。
-
remove
public boolean remove(int index)
移除指定索引的布告板子对象 。- 参数:
index- 指定的索引。- 返回:
- true表示移除成功,false表示移除失败。
-
get
public Geometry get(int index)
获取指定索引的子对象。- 参数:
index- 指定的索引。- 返回:
- 子对象。
-
set
public boolean set(int index, Geometry geometry)将布告板中的指定的索引处的子对象设置为指定的几何对象。- 参数:
index- 指定的索引。geometry- 指定的几何对象。- 返回:
- true表示设置成功,false表示设置失败。
-
getTag
public String getTag(int index)
获取指定索引的子对象的标签。- 参数:
index- 指定的索引。- 返回:
- 子对象的标签。
-
setTag
public boolean setTag(int index, String tag)
-
-
Copyright © 2021–2025 SuperMap. All rights reserved.