public class ARGeoPoint extends ARGeometry
ARGeometry.ARGeometryType
BaseShape.MatType, BaseShape.Mode
构造器和说明 |
---|
ARGeoPoint()
构造方法
默认使用透明材质
|
ARGeoPoint(BaseShape.MatType matType)
构造方法
|
限定符和类型 | 方法和说明 |
---|---|
int |
addPart(GeoPoint geoPoint,
float height)
添加对象
|
int |
addPart(Point2D wgsPoint,
float height)
添加对象
|
int |
addPart(Point3D arPoint)
添加对象
|
void |
clear()
清除
|
void |
drawPoint(GeoPoint geometry)
绘制几何对象
|
java.util.List<GeoPoint> |
getGeoPoint()
获取地理点集
|
AREffectElement |
getParentElement()
获取父节点元素
|
int |
getPartCount()
获取子对象个数
|
Point2Ds |
getPartPoint2Ds(int index)
获取指定索引的子对象的 地理坐标点集合对象
|
Point3D |
getPartPoint3D(int index)
获取指定序号子对象
|
void |
reDrawByArPoint()
重绘
|
void |
reDrawByGeoPoint()
重绘(高度不会改变)
|
void |
removeLastPoint3D()
移除最后一个子对象
|
boolean |
removePart(int index)
移除点集中的指定序号的子对象
|
void |
setParentNode(AREffectElement element)
设置父节点
|
void |
setParentNode(EffectView arView)
设置父节点
|
void |
updatePoint3D(int part,
int index,
Point3D point3D)
根据index编辑节点
|
addPoint3D, deletePoint3D, getPartPoint3Ds, getPartShape, getType, isEdit, resetGeometry, select, setEdit, setSelectionColor, setSelectionTextureMap, unSelect
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 ARGeoPoint()
public ARGeoPoint(BaseShape.MatType matType)
matType
- 材质类型(透明/不透明)public int addPart(Point3D arPoint)
arPoint
- public int addPart(Point2D wgsPoint, float height)
wgsPoint
- height
- 注,若是地面上的点,一般设置手机高度为正(如:1.3f),该方法height为0.0fpublic int addPart(GeoPoint geoPoint, float height)
geoPoint
- height
- public boolean removePart(int index)
index
- public void reDrawByArPoint()
public void reDrawByGeoPoint()
public void clear()
ARGeometry
clear
在类中 ARGeometry
public Point3D getPartPoint3D(int index)
index
- public void removeLastPoint3D()
public java.util.List<GeoPoint> getGeoPoint()
public int getPartCount()
ARGeometry
getPartCount
在类中 ARGeometry
public void drawPoint(GeoPoint geometry)
GeoPoint
- 平面几何对象public Point2Ds getPartPoint2Ds(int index)
ARGeometry
public void updatePoint3D(int part, int index, Point3D point3D)
ARGeometry
updatePoint3D
在类中 ARGeometry
public void setParentNode(AREffectElement element)
element
- public void setParentNode(EffectView arView)
arView
- public AREffectElement getParentElement()