com.supermap.data

Class GeoBox



  • public class GeoBox
    extends Geometry3D

    ????????,??? Geometry3D ???????????????????,??? Geometry3D ??

    • Constructor Detail

      • GeoBox

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

        public GeoBox(GeoBox geoBox)
        Initializes a new instance of the Route class which is a copy of the specified GeoBox object.
        Parameters:
        geoBox - the specified GeoBox object
      • GeoBox

        public GeoBox(Point3D position,
                      Size2D bottomSize,
                      double height)
        Creates a new GeoBox object according to the specified arguments.
        Parameters:
        position - The position of the cuboid geometry object
        bottomSize - The size of the bottom surface of the cuboid geometry object
        height - The height of the cuboid geometry object, the unit is meters
    • Method Detail

      • getCenter

        public Point3D getCenter()
        obtains the center point of the cuboid geometry object, the default is null
        Returns:
        obtains the center point of the cuboid geometry object
        Default:
        The default value is null.
      • getHeight

        public double getHeight()
        obtains or sets the height of the cuboid geometry object, that is the length in Z axis, the unit is meter, and the default is 0.0
        Returns:
        obtains or sets the height of the cuboid geometry object, that is the length in Z axis, the unit is meter
        Default:
        The default value is 0.0.
      • setHeight

        public void setHeight(double value)
        obtains or sets the height of the cuboid geometry object, that is the length in Z axis, the unit is meter
        Parameters:
        value - the height of the cuboid geometry object
      • getBottomSize

        public Size2D getBottomSize()
        obtains or sets the size of the bottom of the cuboid, the default value is null.
        Returns:
        obtains or sets the size of the bottom of the cuboid
        Default:
        The default value is null.
      • setBottomSize

        public void setBottomSize(Size2D value)
        obtains or sets the size of the bottom of the cuboid
        Parameters:
        value - the size of the bottom of the cuboid
      • clone

        public GeoBox clone()
        return the current GeoBox object
        Specified by:
        clone in class Geometry
        Returns:
        Gets a GeoBox object generated from the clone operation.
        Default:
        The default value is null.
      • dispose

        public void dispose()
        Release the resource occupy by this object.
        Overrides:
        dispose in class Geometry