com.supermap.ar.areffect.excavator

Class Excavator

  • java.lang.Object
    • com.supermap.ar.areffect.excavator.Excavator
    • 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 X
        y - 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: