com.supermap.ar.areffect.preset
类 ARGeoVerticalRegion
- java.lang.Object
-
- com.supermap.ar.areffect.preset.BaseShape
-
- com.supermap.ar.areffect.preset.ARGeometry
-
- com.supermap.ar.areffect.preset.ARGeoVerticalRegion
-
public class ARGeoVerticalRegion extends ARGeometry
AR垂直平面 备注:该对象的底面(顶面)上的各点处于各自的水平上
-
-
嵌套类概要
-
从类继承的嵌套类/接口 com.supermap.ar.areffect.preset.ARGeometry
ARGeometry.ARGeometryType
-
从类继承的嵌套类/接口 com.supermap.ar.areffect.preset.BaseShape
BaseShape.MatType, BaseShape.Mode
-
-
构造器概要
构造器 构造器和说明 ARGeoVerticalRegion()构造方法 默认使用透明材质ARGeoVerticalRegion(BaseShape.MatType matType)构造方法
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 int[]addParts(GeoRegion geoRegion, java.util.List<java.util.List<java.lang.Float>> heightsList, float prismHeight)添加子对象组intaddParts(java.util.List<Point3D> pointList, float height)添加子对象intaddParts(Point2Ds point2Ds, java.util.List<java.lang.Float> heightList, float prismHeight)添加子对象voidclear()清除所有对象GeoLinegetGeoLine()获取地理面对象BaseShapegetOutLine()获取轮廓线AREffectElementgetParentElement()获取父节点元素floatgetPartArea(int partIndex)根据子对象索引,获取对应面积Point3DgetPartCenterPoint(int partIndex)获取指定索引的子对象的中心点Point2DsgetPartPoint2Ds(int index)获取指定索引的子对象的 地理坐标点集合对象booleanremovePart(int index)移除对应索引的子对象voidselect()选中voidsetOutLine(BaseShape outLine)设置轮廓线voidsetParentNode(AREffectElement element)设置父节点voidsetParentNode(EffectView arView)设置父节点voidsetRenderInnerShape(boolean renderInnerShape)是否绘制面 当setOutLine(...)voidsetSelectionColor(Color color)设置选中状态的渲染对象的颜色 备注:若与setSelectionColor()同时使用,则仅setSelectionTextureMap(Bitmap)生效voidunSelect()取消选中-
从类继承的方法 com.supermap.ar.areffect.preset.ARGeometry
addPoint3D, deletePoint3D, getPartCount, getPartPoint3Ds, getPartShape, getType, isEdit, resetGeometry, setEdit, setSelectionTextureMap, updatePoint3D
-
从类继承的方法 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
-
-
-
-
构造器详细资料
-
ARGeoVerticalRegion
public ARGeoVerticalRegion()
构造方法 默认使用透明材质
-
ARGeoVerticalRegion
public ARGeoVerticalRegion(BaseShape.MatType matType)
构造方法- 参数:
matType- 材质类型(透明/不透明)
-
-
方法详细资料
-
addParts
public int addParts(java.util.List<Point3D> pointList, float height)
添加子对象- 参数:
pointList- 若需构成棱柱,则需按顺序首尾相连height- 棱柱高度- 返回:
-
addParts
public int addParts(Point2Ds point2Ds, java.util.List<java.lang.Float> heightList, float prismHeight)
添加子对象- 参数:
point2Ds-heightList-prismHeight- 棱柱高度- 返回:
-
addParts
public int[] addParts(GeoRegion geoRegion, java.util.List<java.util.List<java.lang.Float>> heightsList, float prismHeight)
添加子对象组- 参数:
geoRegion-heightsList-prismHeight- 棱柱高度- 返回:
- 返回添加子对象的索引数组
-
removePart
public boolean removePart(int index)
移除对应索引的子对象- 参数:
index-- 返回:
-
clear
public void clear()
清除所有对象- 覆盖:
clear在类中ARGeometry
-
getGeoLine
public GeoLine getGeoLine()
获取地理面对象- 返回:
-
getPartPoint2Ds
public Point2Ds getPartPoint2Ds(int index)
从类复制的说明:ARGeometry获取指定索引的子对象的 地理坐标点集合对象- 返回:
-
getOutLine
public BaseShape getOutLine()
获取轮廓线- 返回:
-
setOutLine
public void setOutLine(BaseShape outLine)
设置轮廓线- 参数:
outLine-
-
setSelectionColor
public void setSelectionColor(Color color)
从类复制的说明:BaseShape设置选中状态的渲染对象的颜色备注:若与setSelectionColor()同时使用,则仅setSelectionTextureMap(Bitmap)生效
- 覆盖:
setSelectionColor在类中ARGeometry
-
select
public void select()
从类复制的说明:BaseShape选中- 覆盖:
select在类中ARGeometry
-
unSelect
public void unSelect()
从类复制的说明:BaseShape取消选中- 覆盖:
unSelect在类中ARGeometry
-
getPartArea
public float getPartArea(int partIndex)
根据子对象索引,获取对应面积- 参数:
partIndex-- 返回:
-
getPartCenterPoint
public Point3D getPartCenterPoint(int partIndex)
获取指定索引的子对象的中心点- 参数:
partIndex-- 返回:
-
setRenderInnerShape
public void setRenderInnerShape(boolean renderInnerShape)
是否绘制面当setOutLine(...),setRenderInnerShape(false)时,则仅显示轮廓线,不显示面
- 参数:
renderInnerShape-
-
setParentNode
public void setParentNode(AREffectElement element)
设置父节点- 参数:
element-
-
setParentNode
public void setParentNode(EffectView arView)
设置父节点- 参数:
arView-
-
getParentElement
public AREffectElement getParentElement()
获取父节点元素- 返回:
-
-