com.supermap.ar.areffect.preset
类 ARGeoHorizontalRegion
- java.lang.Object
-
- com.supermap.ar.areffect.preset.BaseShape
-
- com.supermap.ar.areffect.preset.ARGeometry
-
- com.supermap.ar.areffect.preset.ARGeoHorizontalRegion
-
public class ARGeoHorizontalRegion extends ARGeometry
平面几何对象 该类用于描述面状实体,一般用一个或多个有序坐标点集合来表示。
-
-
嵌套类概要
-
从类继承的嵌套类/接口 com.supermap.ar.areffect.preset.ARGeometry
ARGeometry.ARGeometryType
-
从类继承的嵌套类/接口 com.supermap.ar.areffect.preset.BaseShape
BaseShape.MatType, BaseShape.Mode
-
-
构造器概要
构造器 构造器和说明 ARGeoHorizontalRegion()构造方法ARGeoHorizontalRegion(BaseShape.MatType matType)构造方法
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 voidaddPart(java.util.List<Point3D> pointList)添加子对象voidaddPoint3D(int part, int index, Point3D point3D)根据index添加节点voidclear()清除对象voiddeletePoint3D(int part, int index)根据index删除节点voiddrawRegion(float startUpAzimuth, Location startUpLocation, GeoRegion geometry)绘制几何对象voiddrawRegion(GeoRegion geometry)绘制几何对象voiddrawRegion(java.util.List<Point3D> pointList)绘制AR多边形(水平面)GeoRegiongetGeoRegion()获取面对象AREffectElementgetParentElement()获取父节点元素Point2DsgetPart(int index)返回该对象指定序号的子对象,以有序点集的方式返回该子对象floatgetPartArea(int partIndex)获取指定索引的子对象的面积Point3DgetPartCenterPoint(int partIndex)获取指定索引的子对象的几何中心intgetPartCount()返回该对象子对象的个数Point2DsgetPartPoint2Ds(int index)获取指定索引的子对象的 地理坐标点集合对象floatgetRenderHeight()获取渲染高度voidresetGeometry()重置几何对象voidsetParentNode(AREffectElement element)设置父节点voidsetParentNode(EffectView arView)设置父节点voidsetRenderHeight(float renderHeight)设置渲染高度voidupdatePoint3D(int part, int index, Point3D point3D)根据index编辑节点-
从类继承的方法 com.supermap.ar.areffect.preset.ARGeometry
getPartPoint3Ds, getPartShape, getType, isEdit, select, setEdit, setSelectionColor, setSelectionTextureMap, unSelect
-
从类继承的方法 com.supermap.ar.areffect.preset.BaseShape
getColor, getColorRGBA, getMetallic, getRadius, getReflectance, getRoughness, getSelectionColor, getSelectionTextureMap, getShapeMaterial, getShapeStyle, getTextureMap, isRenderable, isSelected, isShadowCaster, isShadowReceiver, setColor, setColor, setColor, setMetallic, setRadius, setReflectance, setRenderable, setRoughness, setShadowCaster, setShadowReceiver, setShapeStyle, setTextureMap, updateMaterial
-
-
-
-
构造器详细资料
-
ARGeoHorizontalRegion
public ARGeoHorizontalRegion()
构造方法
-
ARGeoHorizontalRegion
public ARGeoHorizontalRegion(BaseShape.MatType matType)
构造方法- 参数:
matType- 材质类型(透明/不透明)
-
-
方法详细资料
-
addPart
public void addPart(java.util.List<Point3D> pointList)
添加子对象- 参数:
pointList-
-
drawRegion
public void drawRegion(java.util.List<Point3D> pointList)
绘制AR多边形(水平面)- 参数:
pointList- 首尾相连的点集
-
drawRegion
public void drawRegion(GeoRegion geometry)
绘制几何对象- 参数:
geometry- 平面几何对象
-
drawRegion
public void drawRegion(float startUpAzimuth, Location startUpLocation, GeoRegion geometry)绘制几何对象- 参数:
startUpAzimuth- 设备启动时方位角startUpLocation- 设备启动时位置geometry- 平面几何对象
-
getGeoRegion
public GeoRegion getGeoRegion()
获取面对象- 返回:
-
getRenderHeight
public float getRenderHeight()
获取渲染高度- 返回:
-
setRenderHeight
public void setRenderHeight(float renderHeight)
设置渲染高度- 参数:
renderHeight-
-
clear
public void clear()
清除对象- 覆盖:
clear在类中ARGeometry
-
getPart
public Point2Ds getPart(int index)
返回该对象指定序号的子对象,以有序点集的方式返回该子对象- 参数:
index-- 返回:
-
getPartCount
public int getPartCount()
返回该对象子对象的个数- 覆盖:
getPartCount在类中ARGeometry- 返回:
-
getPartArea
public float getPartArea(int partIndex)
获取指定索引的子对象的面积- 参数:
partIndex-- 返回:
-
getPartCenterPoint
public Point3D getPartCenterPoint(int partIndex)
获取指定索引的子对象的几何中心- 参数:
partIndex-- 返回:
-
resetGeometry
public void resetGeometry()
从类复制的说明:ARGeometry重置几何对象- 覆盖:
resetGeometry在类中ARGeometry
-
updatePoint3D
public void updatePoint3D(int part, int index, Point3D point3D)从类复制的说明:ARGeometry根据index编辑节点- 覆盖:
updatePoint3D在类中ARGeometry
-
addPoint3D
public void addPoint3D(int part, int index, Point3D point3D)从类复制的说明:ARGeometry根据index添加节点- 覆盖:
addPoint3D在类中ARGeometry
-
deletePoint3D
public void deletePoint3D(int part, int index)从类复制的说明:ARGeometry根据index删除节点- 覆盖:
deletePoint3D在类中ARGeometry
-
getPartPoint2Ds
public Point2Ds getPartPoint2Ds(int index)
获取指定索引的子对象的 地理坐标点集合对象- 参数:
index- 索引- 返回:
- 点集合
-
setParentNode
public void setParentNode(AREffectElement element)
设置父节点- 参数:
element-
-
setParentNode
public void setParentNode(EffectView arView)
设置父节点- 参数:
arView-
-
getParentElement
public AREffectElement getParentElement()
获取父节点元素- 返回:
-
-