com.supermap.ar.areffect.excavator
Class Excavator
- java.lang.Object
-
- com.supermap.ar.areffect.excavator.Excavator
-
- Direct Known Subclasses:
- CeilingExcavator, GroundExcavator, WallExcavator
public abstract class Excavator extends java.lang.Object
excavation tool
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description void
calculate(ExcavationParameter parameter)
Calculateabstract Point3D
generateHitPoint(EffectView arView, int x, int y)
Get the collision pointARGeometry
getArGeometry()
Gets AR geometry objectjava.util.ArrayList<int[]>
getBottomMeshScreenPoint(ErrorCallback errorCallback)
Gets the screen vertices transformed by the bottomjava.util.ArrayList<Point3D>
getBottomVertices()
Gets the set of vertices at the bottom of the dug holeExcavationParameter
getCurrentExcavationParameter()
Gets the excavation parameters at the current momentjava.lang.Integer[]
getCurrentPartID()
EffectView
getEffectView()
java.util.ArrayList<int[]>
getScreenPoint(ErrorCallback errorCallback)
gets screen pointjava.util.ArrayList<Point3D>
getTopVertices()
Gets the set of vertices at the top of the dug holevoid
setCurrentPartID(java.lang.Integer[] currentPartID)
Sets the current index IDjava.util.ArrayList<int[]>
toScreenPoint(java.util.List<Point3D> point3DList, ErrorCallback errorCallback)
Converts to screen coordinates
-
-
-
Method Detail
-
getEffectView
public EffectView getEffectView()
-
generateHitPoint
public abstract Point3D generateHitPoint(EffectView arView, int x, int y)
Get the collision point- Parameters:
x
- screen coordinate Xy
- screen coordinate Y
-
setCurrentPartID
public void setCurrentPartID(java.lang.Integer[] currentPartID)
Sets the current index ID- Parameters:
currentPartID
-
-
getTopVertices
public java.util.ArrayList<Point3D> getTopVertices()
Gets the set of vertices at the top of the dug hole- Returns:
-
getBottomVertices
public java.util.ArrayList<Point3D> getBottomVertices()
Gets the set of vertices at the bottom of the dug hole- Returns:
-
getArGeometry
public ARGeometry getArGeometry()
Gets AR geometry object- Returns:
-
calculate
public void calculate(ExcavationParameter parameter)
Calculate- Parameters:
parameter
- Excavation parameters
-
getScreenPoint
public java.util.ArrayList<int[]> getScreenPoint(ErrorCallback errorCallback)
gets screen point- Returns:
-
getBottomMeshScreenPoint
public java.util.ArrayList<int[]> getBottomMeshScreenPoint(ErrorCallback errorCallback)
Gets the screen vertices transformed by the bottom- Parameters:
errorCallback
-- Returns:
-
getCurrentExcavationParameter
public ExcavationParameter getCurrentExcavationParameter()
Gets the excavation parameters at the current moment- Returns:
-
getCurrentPartID
public java.lang.Integer[] getCurrentPartID()
-
toScreenPoint
public java.util.ArrayList<int[]> toScreenPoint(java.util.List<Point3D> point3DList, ErrorCallback errorCallback)
Converts to screen coordinates- Parameters:
point3DList
- end-to-end sets of points to be converted- Returns:
-
-