com.supermap.ar.areffect.excavator
类 Excavator
- java.lang.Object
-
- com.supermap.ar.areffect.excavator.Excavator
-
- 直接已知子类:
- CeilingExcavator, GroundExcavator, WallExcavator
public abstract class Excavator extends java.lang.Object
开挖工具
-
-
方法概要
所有方法 实例方法 抽象方法 具体方法 限定符和类型 方法和说明 void
calculate(ExcavationParameter parameter)
计算abstract Point3D
generateHitPoint(EffectView arView, int x, int y)
获取碰撞点ARGeometry
getArGeometry()
获取AR几何对象java.util.ArrayList<int[]>
getBottomMeshScreenPoint(ErrorCallback errorCallback)
获取由底面转换的屏幕顶点java.util.ArrayList<Point3D>
getBottomVertices()
获取所挖坑洞的底部的顶点集ExcavationParameter
getCurrentExcavationParameter()
获取当前时刻的开挖参数java.lang.Integer[]
getCurrentPartID()
EffectView
getEffectView()
java.util.ArrayList<int[]>
getScreenPoint(ErrorCallback errorCallback)
获取屏幕点java.util.ArrayList<Point3D>
getTopVertices()
获取所挖坑洞的的顶部的顶点集void
setCurrentPartID(java.lang.Integer[] currentPartID)
设置当前面的索引IDjava.util.ArrayList<int[]>
toScreenPoint(java.util.List<Point3D> point3DList, ErrorCallback errorCallback)
转为屏幕坐标
-
-
-
方法详细资料
-
getEffectView
public EffectView getEffectView()
-
generateHitPoint
public abstract Point3D generateHitPoint(EffectView arView, int x, int y)
获取碰撞点- 参数:
x
- 屏幕坐标Xy
- 屏幕坐标Y
-
setCurrentPartID
public void setCurrentPartID(java.lang.Integer[] currentPartID)
设置当前面的索引ID- 参数:
currentPartID
-
-
getTopVertices
public java.util.ArrayList<Point3D> getTopVertices()
获取所挖坑洞的的顶部的顶点集- 返回:
-
getBottomVertices
public java.util.ArrayList<Point3D> getBottomVertices()
获取所挖坑洞的底部的顶点集- 返回:
-
getArGeometry
public ARGeometry getArGeometry()
获取AR几何对象- 返回:
-
calculate
public void calculate(ExcavationParameter parameter)
计算- 参数:
parameter
- 开挖参数
-
getScreenPoint
public java.util.ArrayList<int[]> getScreenPoint(ErrorCallback errorCallback)
获取屏幕点- 返回:
-
getBottomMeshScreenPoint
public java.util.ArrayList<int[]> getBottomMeshScreenPoint(ErrorCallback errorCallback)
获取由底面转换的屏幕顶点- 参数:
errorCallback
-- 返回:
-
getCurrentExcavationParameter
public ExcavationParameter getCurrentExcavationParameter()
获取当前时刻的开挖参数- 返回:
-
getCurrentPartID
public java.lang.Integer[] getCurrentPartID()
-
toScreenPoint
public java.util.ArrayList<int[]> toScreenPoint(java.util.List<Point3D> point3DList, ErrorCallback errorCallback)
转为屏幕坐标- 参数:
point3DList
- 首尾相连的待转换的点集- 返回:
-
-