public class ARGeoVerticalRegion extends ARGeometry
ARGeometry.ARGeometryType
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)
添加子对象组
|
int |
addParts(java.util.List<Point3D> pointList,
float height)
添加子对象
|
int |
addParts(Point2Ds point2Ds,
java.util.List<java.lang.Float> heightList,
float prismHeight)
添加子对象
|
void |
clear()
清除所有对象
|
GeoLine |
getGeoLine()
获取地理面对象
|
BaseShape |
getOutLine()
获取轮廓线
|
AREffectElement |
getParentElement()
获取父节点元素
|
float |
getPartArea(int partIndex)
根据子对象索引,获取对应面积
|
Point3D |
getPartCenterPoint(int partIndex)
获取指定索引的子对象的中心点
|
Point2Ds |
getPartPoint2Ds(int index)
获取指定索引的子对象的 地理坐标点集合对象
|
boolean |
removePart(int index)
移除对应索引的子对象
|
void |
select()
选中
|
void |
setOutLine(BaseShape outLine)
设置轮廓线
|
void |
setParentNode(AREffectElement element)
设置父节点
|
void |
setParentNode(EffectView arView)
设置父节点
|
void |
setRenderInnerShape(boolean renderInnerShape)
是否绘制面
当setOutLine(...)
|
void |
setSelectionColor(Color color)
设置选中状态的渲染对象的颜色
备注:若与setSelectionColor()同时使用,则仅setSelectionTextureMap(Bitmap)生效
|
void |
unSelect()
取消选中
|
addPoint3D, deletePoint3D, getPartCount, getPartPoint3Ds, getPartShape, getType, isEdit, resetGeometry, setEdit, setSelectionTextureMap, updatePoint3D
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
public ARGeoVerticalRegion()
public ARGeoVerticalRegion(BaseShape.MatType matType)
matType
- 材质类型(透明/不透明)public int addParts(java.util.List<Point3D> pointList, float height)
pointList
- 若需构成棱柱,则需按顺序首尾相连height
- 棱柱高度public int addParts(Point2Ds point2Ds, java.util.List<java.lang.Float> heightList, float prismHeight)
point2Ds
- heightList
- prismHeight
- 棱柱高度public int[] addParts(GeoRegion geoRegion, java.util.List<java.util.List<java.lang.Float>> heightsList, float prismHeight)
geoRegion
- heightsList
- prismHeight
- 棱柱高度public boolean removePart(int index)
index
- public void clear()
clear
在类中 ARGeometry
public GeoLine getGeoLine()
public Point2Ds getPartPoint2Ds(int index)
ARGeometry
public BaseShape getOutLine()
public void setOutLine(BaseShape outLine)
outLine
- public void setSelectionColor(Color color)
BaseShape
备注:若与setSelectionColor()同时使用,则仅setSelectionTextureMap(Bitmap)生效
setSelectionColor
在类中 ARGeometry
public void select()
BaseShape
select
在类中 ARGeometry
public void unSelect()
BaseShape
unSelect
在类中 ARGeometry
public float getPartArea(int partIndex)
partIndex
- public Point3D getPartCenterPoint(int partIndex)
partIndex
- public void setRenderInnerShape(boolean renderInnerShape)
当setOutLine(...),setRenderInnerShape(false)时,则仅显示轮廓线,不显示面
renderInnerShape
- public void setParentNode(AREffectElement element)
element
- public void setParentNode(EffectView arView)
arView
- public AREffectElement getParentElement()