com.supermap.ar.areffect.preset

Class ARGeoPoint



  • public class ARGeoPoint
    extends ARGeometry
    AR point object
    • Constructor Detail

      • ARGeoPoint

        public ARGeoPoint()
        A constructor Transparent materials are used by default
      • ARGeoPoint

        public ARGeoPoint(BaseShape.MatType matType)
        A constructor
        Parameters:
        matType - Material Type (Transparent/opaque)
    • Method Detail

      • addPart

        public int addPart(Point3D arPoint)
        Parameters:
        arPoint -
        Returns:
        Returns the serial number of the object
      • addPart

        public int addPart(Point2D wgsPoint,
                           float height)
        Add the object
        Parameters:
        wgsPoint -
        height - Note, if it is a point on the ground, the height of the phone is usually set to positive (e.g. 1.3F), and this method is 0.0F
        Returns:
      • addPart

        public int addPart(GeoPoint geoPoint,
                           float height)
        Add the object
        Parameters:
        geoPoint -
        height -
        Returns:
      • removePart

        public boolean removePart(int index)
        Removes the specified ordinal child object from a point set
        Parameters:
        index -
        Returns:
      • reDrawByArPoint

        public void reDrawByArPoint()
        Redraw
      • reDrawByGeoPoint

        public void reDrawByGeoPoint()
        Redraw (height does not change)
      • getPartPoint3D

        public Point3D getPartPoint3D(int index)
      • removeLastPoint3D

        public void removeLastPoint3D()
      • getGeoPoint

        public java.util.List<GeoPoint> getGeoPoint()
        Gets a set of geographic points
        Returns:
      • getPartCount

        public int getPartCount()
        Description copied from class: ARGeometry
        Gets the number of child objects
        Overrides:
        getPartCount in class ARGeometry
        Returns:
      • drawPoint

        public void drawPoint(GeoPoint geometry)
        Draw geometric objects
        Parameters:
        GeoPoint - Plane geometry object
      • getPartPoint2Ds

        public Point2Ds getPartPoint2Ds(int index)
        Description copied from class: ARGeometry
        Gets the geographic coordinate point collection object of the child object of the specified index
        Returns:
      • setParentNode

        public void setParentNode(AREffectElement element)
        Setting the parent node
        Parameters:
        element -
      • setParentNode

        public void setParentNode(EffectView arView)
        Setting the parent node
        Parameters:
        arView -
      • getParentElement

        public AREffectElement getParentElement()
        Get the parent node
        Returns: