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 classARGeometry.ARGeometryType类型-
从类继承的嵌套类/接口 com.supermap.ar.areffect.preset.BaseShape
BaseShape.MatType, BaseShape.Mode
-
-
构造器概要
构造器 构造器和说明 ARGeometry()构造方法 默认使用透明材质ARGeometry(BaseShape.MatType matType)构造方法
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 voidaddPoint3D(int part, int index, Point3D point3D)根据index添加节点voidclear()清除voiddeletePoint3D(int part, int index)根据index删除节点AREffectElementgetParentElement()获取父节点元素intgetPartCount()获取子对象个数java.util.List<Point3D>getPartPoint3Ds(int index)获取指定索引的子对象的 AR坐标点集BaseShapegetPartShape(int index)获取指定索引的子对象的AR Shape对象ARGeometry.ARGeometryTypegetType()返回AR几何对象的类型booleanisEdit()获取是否编辑voidresetGeometry()重置几何对象voidselect()选中voidsetEdit(boolean edit)设置是否编辑voidsetParentNode(AREffectElement element)设置父节点voidsetParentNode(EffectView arView)设置父节点voidsetSelectionColor(Color color)设置选中状态的渲染对象的颜色 备注:若与setSelectionColor()同时使用,则仅setSelectionTextureMap(Bitmap)生效voidsetSelectionTextureMap(Bitmap bitmap)设置选中状态的渲染的贴图资源voidunSelect()取消选中voidupdatePoint3D(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()
获取父节点元素- 返回:
-
-