com.supermap.ar.areffect.preset

Class ARGeoLine

    • Constructor Detail

      • ARGeoLine

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

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

      • addPart

        public int addPart(java.util.List<Point3D> pointList)
        Add child Objects
        Parameters:
        pointList -
        Returns:
      • addPart

        public int addPart(Point2Ds point2Ds,
                           java.util.List<java.lang.Float> heightList)
        Add child Objects
        Parameters:
        point2Ds -
        heightList -
        Returns:
      • addPart

        public int[] addPart(GeoLine geoLine,
                             java.util.List<java.util.List<java.lang.Float>> heightsList)
        Add child Objects
        Parameters:
        geoLine -
        heightsList -
        Returns:
        Adds an index array of subobjects back
      • drawLine

        public void drawLine(GeoLine geometry)
        Draw geometric objects
        Parameters:
        geometry - Plane geometry object
      • reDrawByArPoint

        public void reDrawByArPoint()
        redraw
      • reDrawByGeoPoint

        public void reDrawByGeoPoint()
        redraw
      • removePart

        public boolean removePart(int index)
        Removes the child object of the corresponding index
        Parameters:
        index -
        Returns:
      • clearDraw

        public void clearDraw()
      • clear

        public void clear()
        Clear all objects
        Overrides:
        clear in class ARGeometry
      • getGeoLine

        public GeoLine getGeoLine()
        Gets the geographic line object
        Returns:
      • getPartLength

        public float getPartLength(int partIndex)
        Gets the total length of the specified child object
        Parameters:
        partIndex -
        Returns:
      • getPartLength

        public float getPartLength(int partIndex,
                                   int index)
        Gets the total length of the specified child object
        Parameters:
        partIndex -
        index -
        Returns:
      • getPartCenterPoint

        public Point3D getPartCenterPoint(int partIndex)
        Gets the center of the specified child object (not the center of a line segment)
        Parameters:
        partIndex -
        Returns:
      • getPartCenterPoint

        public Point3D getPartCenterPoint(int partIndex,
                                          int index)
        Gets the midpoint of the line between the index point of the child object of the specified index and the next point
        Parameters:
        partIndex -
        index -
        Returns:
      • useStripeLine

        public void useStripeLine(boolean status)
        Replace the original style with a striped style Note: Strip styles only work when parallel to the XOY plane
        Parameters:
        status -
      • getStripeLineRadius

        public float getStripeLineRadius()
        Get strip fillet radius
        Returns:
      • setStripeLineRadius

        public void setStripeLineRadius(float radius)
        Set strip fillet radius
        Parameters:
        radius -
      • getStripeLineWidth

        public float getStripeLineWidth()
        Gets strip line width
        Returns:
      • setStripeLineWidth

        public void setStripeLineWidth(float width)
        Sets strip line width
        Parameters:
        width -
      • addPoint3D

        public void addPoint3D(int part,
                               Point3D point3D)
      • 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: