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