com.supermap.ar.areffect

Class ARMapElement

    • Constructor Detail

      • ARMapElement

        public ARMapElement(android.content.Context context)
        The constructor
        Parameters:
        context -
    • Method Detail

      • getArMapScale

        public float getArMapScale()
        Get the scale of the AR map to the real scene
        Returns:
      • isRealMode

        public boolean isRealMode()
        Determine if it is true mode (1:1 map)
        Returns:
      • setRealMode

        public void setRealMode(boolean realMode)
        Set true mode (with 1:1 map enabled or not)
        Parameters:
        realMode -
      • setScaleFactor

        public void setScaleFactor(float[] scales)
        Description copied from class: AREffectElement
        Sets the ratio of object in ar world
        Overrides:
        setScaleFactor in class AREffectElement
        Parameters:
        scales - including 3 values that are coefficients of x, y, and z
      • getRealScaleFactor

        public float[] getRealScaleFactor()
        Gets the true scale of the AR scene
        Returns:
      • checkPoint

        public boolean checkPoint(Point point,
                                  boolean change)
        Determine whether the point is out of range
        Parameters:
        point -
        change - Out of range, whether to update point coordinates
        Returns:
        Is the point within the boundary of the map container
      • convertToArPoint

        public Point3D convertToArPoint(Point point)
        Convert the MapView coordinates to the relative coordinates of the parent node in AR
        Parameters:
        point -
        Returns:
      • convertToMapPoint

        public Point convertToMapPoint(Point3D point)
        Convert AR coordinates to pixel coordinates in MapView, the return value can be null
        Parameters:
        point -
        Returns:
      • loadModel

        public void loadModel(MapView source)
        Resource to load
        Parameters:
        source -
      • updateArMap

        public void updateArMap()
        update ArMap
      • getArObjParent

        public AREffectElement getArObjParent()
        Gets the parent element of the corresponding AR object on the AR map to be bound Child objects on the AR map need to be bound to the parent element
        Returns:
      • getArMapParent

        public AREffectElement getArMapParent()
        Gets the parent element of the AR map
        Returns:
      • getArMapSelf

        public ARViewElement getArMapSelf()
        Get ARView
        Returns:
      • getArViewVertice

        public java.util.List<Point3D> getArViewVertice()
        Gets the vertex set of ARView Note: five points end to end
        Returns:
      • setActionType

        public void setActionType(ARMapElement.ActionType type)
        Sets the gesture action type
        Parameters:
        type -
      • isLoaded

        public boolean isLoaded()
        Whether the map has been loaded
        Returns: