com.supermap.ar.areffect.preset

Class BaseCatchManager

  • java.lang.Object
    • com.supermap.ar.areffect.preset.BaseCatchManager


  • public abstract class BaseCatchManager
    extends java.lang.Object
    Basic geometric object capturing manager.
    • Constructor Detail

      • BaseCatchManager

        public BaseCatchManager()
        The constructor.
    • Method Detail

      • clear

        public void clear()
      • setCurrentPosition

        public void setCurrentPosition(Point3D currentPoint)
        Sets instant positions
        Parameters:
        currentPoint -
      • getCurrentPosition

        public Point3D getCurrentPosition()
        Gets instant positions. If you didn't set it in advance, it will return null
        Returns:
      • bindView

        public void bindView(EffectView arView)
        Binds view
        Parameters:
        arView -
      • getView

        public EffectView getView()
        Gets the view
        Returns:
      • addObject

        public int addObject(AREffectElement element)
        Adds objects to be captured
        Parameters:
        element -
        Returns:
      • addObject

        public int addObject(ARGeometry arGeometry)
        Adds objects to be captured
        Parameters:
        arGeometry -
        Returns:
      • addObject

        public int addObject(ARCatchObject arCatchObject)
        Adds objects to be captured
        Parameters:
        arCatchObject -
        Returns:
      • addObjects

        public void addObjects(java.util.List<ARCatchObject> arCatchObjectList)
        Adds objects to be captured
        Parameters:
        arCatchObjectList -
      • removeObject

        public void removeObject(int index)
        Removes the captured objects
        Parameters:
        index - sequence number
      • getArCatchObjects

        public java.util.List<ARCatchObject> getArCatchObjects()
      • getArCatchObject

        public ARCatchObject getArCatchObject(int index)
        Gets the objects that allows to capture their vertexes.
        Parameters:
        index -
        Returns:
      • getTolerance

        public float getTolerance()
        Gets the capture tolerance.
        Returns:
      • setTolerance

        public void setTolerance(float tolerance)
        Sets snap tolerance
        Parameters:
        tolerance -