public class ARGeoPrism extends ARGeometry
ARGeometry.ARGeometryType
BaseShape.MatType, BaseShape.Mode
构造器和说明 |
---|
ARGeoPrism()
构造方法
默认使用透明材质
|
ARGeoPrism(BaseShape.MatType matType)
构造方法
|
限定符和类型 | 方法和说明 |
---|---|
int[] |
addPart(GeoRegion geoRegion,
java.util.List<java.util.List<java.lang.Float>> heightsList,
float prismHeight)
添加子对象
|
int |
addPart(java.util.List<Point3D> pointList,
float prismHeight)
添加子对象
|
int |
addPart(Point2Ds point2Ds,
java.util.List<java.lang.Float> heightList,
float prismHeight)
添加子对象
|
void |
clear()
清除所有对象
|
GeoRegion |
getGeoRegion()
获取地理面对象
|
BaseShape |
getOutLine()
获取轮廓线
|
AREffectElement |
getParentElement()
获取父节点元素
|
Point3D |
getPartCenterPoint(int partIndex)
获取指定索引的子对象的中心点
|
Point2Ds |
getPartPoint2Ds(int index)
获取指定索引的子对象的 地理坐标点集合对象
|
float |
getPartVolume(int partIndex)
获取指定索引的子对象体积
|
java.util.List<java.lang.Float> |
getPrismHeightList()
获取高度值信息集合
1个part对应一个棱柱,一个棱柱对应一个高度值
|
void |
reDrawByArPoint()
重绘
|
void |
reDrawByGeoPoint()
重绘(重绘高度不会更改)
|
void |
reDrawByNewHeight(java.util.List<java.lang.Float> prismHeightList)
根据新高度重绘,不同part高度可不同
|
boolean |
removePart(int index)
移除对应索引的子对象
|
void |
setOutLine(BaseShape outLine)
设置轮廓线
|
void |
setParentNode(AREffectElement element)
设置父节点
|
void |
setParentNode(EffectView arView)
设置父节点
|
addPoint3D, deletePoint3D, getPartCount, getPartPoint3Ds, getPartShape, getType, isEdit, resetGeometry, select, setEdit, setSelectionColor, setSelectionTextureMap, unSelect, 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 ARGeoPrism()
public ARGeoPrism(BaseShape.MatType matType)
matType
- 材质类型(透明/不透明)public int addPart(java.util.List<Point3D> pointList, float prismHeight)
pointList
- 棱柱底面顶点集,按顺序首尾相连prismHeight
- 棱柱高度public int addPart(Point2Ds point2Ds, java.util.List<java.lang.Float> heightList, float prismHeight)
point2Ds
- heightList
- prismHeight
- 棱柱高度public int[] addPart(GeoRegion geoRegion, java.util.List<java.util.List<java.lang.Float>> heightsList, float prismHeight)
geoRegion
- heightsList
- 底面个点高度prismHeight
- 棱柱高度public void reDrawByArPoint()
public void reDrawByGeoPoint()
public void reDrawByNewHeight(java.util.List<java.lang.Float> prismHeightList)
public boolean removePart(int index)
index
- public void clear()
clear
在类中 ARGeometry
public BaseShape getOutLine()
public void setOutLine(BaseShape outLine)
outLine
- public GeoRegion getGeoRegion()
public Point2Ds getPartPoint2Ds(int index)
ARGeometry
public float getPartVolume(int partIndex)
public Point3D getPartCenterPoint(int partIndex)
partIndex
- public java.util.List<java.lang.Float> getPrismHeightList()
1个part对应一个棱柱,一个棱柱对应一个高度值
public void setParentNode(AREffectElement element)
element
- public void setParentNode(EffectView arView)
arView
- public AREffectElement getParentElement()