com.supermap.data
Class GeoBox
- java.lang.Object
-
- com.supermap.data.Geometry
-
- com.supermap.data.Geometry3D
-
- com.supermap.data.GeoBox
-
public class GeoBox extends Geometry3D
????????,??? Geometry3D ???????????????????,???
Geometry3D
??
-
-
Constructor Summary
Constructors Constructor and Description GeoBox()
Constructs a new GeoBox object.GeoBox(GeoBox geoBox)
Initializes a new instance of the Route class which is a copy of the specified GeoBox object.GeoBox(Point3D position, Size2D bottomSize, double height)
Creates a new GeoBox object according to the specified arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description GeoBox
clone()
return the current GeoBox objectvoid
dispose()
Release the resource occupy by this object.Size2D
getBottomSize()
obtains or sets the size of the bottom of the cuboid, the default value is null.Point3D
getCenter()
obtains the center point of the cuboid geometry object, the default is nulldouble
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.0void
setBottomSize(Size2D value)
obtains or sets the size of the bottom of the cuboidvoid
setHeight(double value)
obtains or sets the height of the cuboid geometry object, that is the length in Z axis, the unit is meter-
Methods inherited from class com.supermap.data.Geometry3D
getGeoModel, getInnerPoint3D, getPosition, getRotationX, getRotationY, getRotationZ, getScaleX, getScaleY, getScaleZ, getStyle3D, getVolume, offset, setPosition, setRotationX, setRotationY, setRotationZ, setScaleX, setScaleY, setScaleZ, setStyle3D
-
-
-
-
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 objectbottomSize
- The size of the bottom surface of the cuboid geometry objectheight
- 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
-
-