com.supermap.data

Class GeoCircle



  • public class GeoCircle
    extends Geometry
    The GeoCircle class.

    This class is mainly used in the CAD layer, it is the subobject of the Geometry object.

    • Constructor Detail

      • GeoCircle

        public GeoCircle()
        Constructs a new GeoCircle object.
      • GeoCircle

        public GeoCircle(GeoCircle geoCircle)
        Constructs a new object identical to the given GeoCircle object.
        Parameters:
        geoCircle - the specified GeoCircle object.
      • GeoCircle

        public GeoCircle(Point2D center,
                         double radius)
        Creates a new GeoCircle object according to the specified arguments.
        Parameters:
        center - Center
        radius - Radius
      • GeoCircle

        public GeoCircle(Point2D point1,
                         Point2D point2)
        Creates a new GeoCircle object according to the specified arguments.
        Parameters:
        point1 - One specified point which is one of the two end points of the diameter of the circle.
        point2 - Another specified point which is one of the two end points of the diameter of the circle.
      • GeoCircle

        public GeoCircle(Point2D point1,
                         Point2D point2,
                         Point2D point3)
        Creates a new GeoCircle object according to the specified arguments.

        Initializes a new instance of the GeoCircle class using three points on the circumference. The three points must not be on one line.

        Parameters:
        point1 - the first point
        point2 - the second point
        point3 - the third point
    • Method Detail

      • getCenter

        public Point2D getCenter()
        Returns the center of the GeoCircle object.
        Returns:
        the center of the ellipse.
        Default:
        The default value is {X = 0,Y = 0}.
      • setCenter

        public void setCenter(Point2D point2D)
        Sets the center of the GeoCircle object.
        Parameters:
        point2D - the center of the GeoEllipse object.
      • getRadius

        public double getRadius()
        Returns the radius of the GeoCircle object.
        Returns:
        the center of the GeoCircle object.
        Default:
        The default value is 1.
      • setRadius

        public void setRadius(double value)
        Sets the radius of the circle.
        Parameters:
        value - the center of the GeoCircle object.
      • getPerimeter

        public double getPerimeter()
        Returns the perimeter of the GeoCircle object.
        Returns:
        the perimeter of the ellipse.
        Default:
        The default value is 6.28318530717959.
      • getArea

        public double getArea()
        Returns the area of the GeoCircle object.
        Returns:
        the area of the ellipse.
        Default:
        The default value is 3.14159265358979.
      • convertToLine

        public GeoLine convertToLine(int segmentCount)
        Converts the GeoCircle object to the GeoLine object.
        Parameters:
        segmentCount - the count of segments in a circle
        Returns:
        The line geometrical object.
      • convertToRegion

        public GeoRegion convertToRegion(int segmentCount)
        Converts the GeoCircle object to the GeoRegion object.
        Parameters:
        segmentCount - the count of segments in a circle
        Returns:
        The region geometrical object.
      • clone

        public GeoCircle clone()
        Returns a copy of the current GeoCircle object.
        Specified by:
        clone in class Geometry
        Returns:
        The new GeoCircle object generated from the clone operation.
      • dispose

        public void dispose()
        Disposes the resources occupied by the object. After calling this method, this object will not be usable.
        Overrides:
        dispose in class Geometry