com.supermap.ar.areffect.preset

Class ARGeoRegion2



  • public class ARGeoRegion2
    extends ARGeometry
    Plane geometry object This class is used to describe planar entities, typically represented by a set of one or more ordered coordinate points.
    • Constructor Detail

      • ARGeoRegion2

        public ARGeoRegion2()
        A constructor
      • ARGeoRegion2

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

      • addPart

        public void addPart(java.util.List<Point3D> pointList)
      • drawRegion

        public void drawRegion(java.util.List<Point3D> pointList)
        temp
        Parameters:
        pointList - Set of points end to end
      • drawRegion

        public void drawRegion(GeoRegion geometry)
        Draw geometric objects
        Parameters:
        geometry - Plane geometry object
      • drawRegion

        public void drawRegion(float startUpAzimuth,
                               Location startUpLocation,
                               GeoRegion geometry)
        Draw geometric objects
        Parameters:
        startUpAzimuth - Azimuth of the device at startup
        startUpLocation - Position when the device is started
        geometry - geometric objects
      • getGeoRegion

        public GeoRegion getGeoRegion()
        Get face object
        Returns:
      • getRenderHeight

        public float getRenderHeight()
        Get render Height
        Returns:
      • setRenderHeight

        public void setRenderHeight(float renderHeight)
        Set render Height
        Parameters:
        renderHeight -
      • clear

        public void clear()
        Remove the object
        Overrides:
        clear in class ARGeometry
      • getPart

        public Point2Ds getPart(int index)
        Returns a child object of the specified ordinal number as a set of ordered points
        Parameters:
        index -
        Returns:
      • getPartCount

        public int getPartCount()
        Returns the number of children of this object
        Overrides:
        getPartCount in class ARGeometry
        Returns:
      • getPartArea

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

        public Point3D getPartCenterPoint(int partIndex)
        Gets the geometric center of the child object of the specified index
        Parameters:
        partIndex -
        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: