com.supermap.ar.areffect.preset
类 ARGeometry
- java.lang.Object
-
- com.supermap.ar.areffect.preset.BaseShape
-
- com.supermap.ar.areffect.preset.ARGeometry
-
public abstract class ARGeometry extends BaseShape
AR几何对象
-
-
嵌套类概要
嵌套类 限定符和类型 类和说明 static class
ARGeometry.ARGeometryType
类型-
从类继承的嵌套类/接口 com.supermap.ar.areffect.preset.BaseShape
BaseShape.MatType, BaseShape.Mode
-
-
构造器概要
构造器 构造器和说明 ARGeometry()
构造方法 默认使用透明材质ARGeometry(BaseShape.MatType matType)
构造方法
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 void
addPoint3D(int part, int index, Point3D point3D)
根据index添加节点void
clear()
清除void
deletePoint3D(int part, int index)
根据index删除节点AREffectElement
getParentElement()
获取父节点元素int
getPartCount()
获取子对象个数java.util.List<Point3D>
getPartPoint3Ds(int index)
获取指定索引的子对象的 AR坐标点集BaseShape
getPartShape(int index)
获取指定索引的子对象的AR Shape对象ARGeometry.ARGeometryType
getType()
返回AR几何对象的类型boolean
isEdit()
获取是否编辑void
resetGeometry()
重置几何对象void
select()
选中void
setEdit(boolean edit)
设置是否编辑void
setParentNode(AREffectElement element)
设置父节点void
setParentNode(EffectView arView)
设置父节点void
setSelectionColor(Color color)
设置选中状态的渲染对象的颜色 备注:若与setSelectionColor()同时使用,则仅setSelectionTextureMap(Bitmap)生效void
setSelectionTextureMap(Bitmap bitmap)
设置选中状态的渲染的贴图资源void
unSelect()
取消选中void
updatePoint3D(int part, int index, Point3D point3D)
根据index编辑节点-
从类继承的方法 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
-
-
-
-
构造器详细资料
-
ARGeometry
public ARGeometry(BaseShape.MatType matType)
构造方法- 参数:
matType
- 材质类型(透明/不透明)
-
ARGeometry
public ARGeometry()
构造方法 默认使用透明材质
-
-
方法详细资料
-
getType
public ARGeometry.ARGeometryType getType()
返回AR几何对象的类型- 返回:
-
getPartShape
public BaseShape getPartShape(int index)
获取指定索引的子对象的AR Shape对象- 参数:
index
-- 返回:
-
getPartPoint3Ds
public java.util.List<Point3D> getPartPoint3Ds(int index)
获取指定索引的子对象的 AR坐标点集- 参数:
index
-- 返回:
-
getPartCount
public int getPartCount()
获取子对象个数- 返回:
-
setSelectionColor
public void setSelectionColor(Color color)
从类复制的说明:BaseShape
设置选中状态的渲染对象的颜色备注:若与setSelectionColor()同时使用,则仅setSelectionTextureMap(Bitmap)生效
- 覆盖:
setSelectionColor
在类中BaseShape
-
setSelectionTextureMap
public void setSelectionTextureMap(Bitmap bitmap)
从类复制的说明:BaseShape
设置选中状态的渲染的贴图资源- 覆盖:
setSelectionTextureMap
在类中BaseShape
- 参数:
bitmap
-备注:若与setSelectionColor()同时使用,则仅setSelectionTextureMap(Bitmap)生效
-
updatePoint3D
public void updatePoint3D(int part, int index, Point3D point3D)
根据index编辑节点- 参数:
part
-index
-point3D
-
-
deletePoint3D
public void deletePoint3D(int part, int index)
根据index删除节点- 参数:
part
-index
-
-
addPoint3D
public void addPoint3D(int part, int index, Point3D point3D)
根据index添加节点- 参数:
part
-index
-point3D
-
-
resetGeometry
public void resetGeometry()
重置几何对象
-
isEdit
public boolean isEdit()
获取是否编辑- 返回:
-
setEdit
public void setEdit(boolean edit)
设置是否编辑- 参数:
edit
-
-
setParentNode
public void setParentNode(AREffectElement element)
设置父节点- 参数:
element
-
-
setParentNode
public void setParentNode(EffectView arView)
设置父节点- 参数:
arView
-
-
getParentElement
public AREffectElement getParentElement()
获取父节点元素- 返回:
-
-