com.supermap.ar.areffect.preset

Class ARGeoVerticalRegion



  • public class ARGeoVerticalRegion
    extends ARGeometry
    AR vertical plane. Note: each point of the bottom (top) of the object locates its own level.
    • Constructor Detail

      • ARGeoVerticalRegion

        public ARGeoVerticalRegion()
        Construction method Transparent texture is by default.
      • ARGeoVerticalRegion

        public ARGeoVerticalRegion(BaseShape.MatType matType)
        Construction method
        Parameters:
        matType - texture type (transparent/opaque)
    • Method Detail

      • addParts

        public int addParts(java.util.List<Point3D> pointList,
                            float height)
        Adds sub objects
        Parameters:
        pointList - if you want to construct prism, please connect in order.
        height - prism height.
        Returns:
      • addParts

        public int addParts(Point2Ds point2Ds,
                            java.util.List<java.lang.Float> heightList,
                            float prismHeight)
        Adds sub objects
        Parameters:
        point2Ds -
        heightList -
        prismHeight - the prism height
        Returns:
      • addParts

        public int[] addParts(GeoRegion geoRegion,
                              java.util.List<java.util.List<java.lang.Float>> heightsList,
                              float prismHeight)
        Adds the sub object group
        Parameters:
        geoRegion -
        heightsList -
        prismHeight - the prism height
        Returns:
        Returns the index array that adds sub objects.
      • removePart

        public boolean removePart(int index)
        Removes the specified object
        Parameters:
        index -
        Returns:
      • clear

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

        public GeoLine getGeoLine()
        Gets geographic regional objects
        Returns:
      • 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:
      • getOutLine

        public BaseShape getOutLine()
        Gets outlines
        Returns:
      • setOutLine

        public void setOutLine(BaseShape outLine)
        Sets outlines
        Parameters:
        outLine -
      • setSelectionColor

        public void setSelectionColor(Color color)
        Description copied from class: BaseShape
        Sets the color of the rendering object under the selection status
        Overrides:
        setSelectionColor in class ARGeometry
      • unSelect

        public void unSelect()
        Description copied from class: BaseShape
        Cancel the selected status
        Overrides:
        unSelect in class ARGeometry
      • getPartArea

        public float getPartArea(int partIndex)
        Gets the area related to the index of the specified object
        Parameters:
        partIndex -
        Returns:
      • getPartCenterPoint

        public Point3D getPartCenterPoint(int partIndex)
        Gets the center of the specified sub object.
        Parameters:
        partIndex -
        Returns:
      • setRenderInnerShape

        public void setRenderInnerShape(boolean renderInnerShape)
        Whether to draw region

        For setOutLine(...),setRenderInnerShape(false, only the outline will be visible.

        Parameters:
        renderInnerShape -
      • 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: