com.supermap.data
Class GeoPoint3D
- java.lang.Object
-
- com.supermap.data.Geometry
-
- com.supermap.data.Geometry3D
-
- com.supermap.data.GeoPoint3D
-
public class GeoPoint3D extends Geometry3D
The GeoPoint3D class is derived from the
Geometry3Dclass.This class is mainly used to model point geographic entity.
-
-
Constructor Summary
Constructors Constructor and Description GeoPoint3D()Constructs a new GeoPoint3D object.GeoPoint3D(double x, double y, double z)Creates a new GeoPoint object according to the specified arguments.GeoPoint3D(GeoPoint3D geoPoint3D)Initializes a new instance identical to the given GeoPoint3D object.GeoPoint3D(Point3D point)Creates a new GeoPoint object according to the specified arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description GeoPoint3Dclone()Returns a copy of the current GeoPoint3D object.voiddispose()Release the resource occupy by this object.doublegetX()Returns the X-coordinate of the GeoPoint object.doublegetY()Returns the Y-coordinate of the GeoPoint object.doublegetZ()Returns the Z-coordinate of the GeoPoint object.booleanisEmpty()Determines whether the current point object is null or not.voidsetX(double x)Sets the X-coordinate of the GeoPoint object.voidsetY(double y)Sets the Y-coordinate of the GeoPoint object.voidsetZ(double z)Sets the Z-coordinate of the GeoPoint object.-
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
-
GeoPoint3D
public GeoPoint3D()
Constructs a new GeoPoint3D object.
-
GeoPoint3D
public GeoPoint3D(double x, double y, double z)Creates a new GeoPoint object according to the specified arguments.- Parameters:
x- The x-coordinate of the specified GeoPoint.y- The y-coordinate of the specified GeoPoint.z- The z-coordinate of the specified GeoPoint.
-
GeoPoint3D
public GeoPoint3D(GeoPoint3D geoPoint3D)
Initializes a new instance identical to the given GeoPoint3D object.- Parameters:
geoPoint3D- The specified GeoPoint3D object.
-
GeoPoint3D
public GeoPoint3D(Point3D point)
Creates a new GeoPoint object according to the specified arguments.- Parameters:
point- The specified Point3D object.
-
-
Method Detail
-
dispose
public void dispose()
Release the resource occupy by this object.
-
getX
public double getX()
Returns the X-coordinate of the GeoPoint object.- Returns:
- The X-coordinate of the GeoPoint object.
- Default:
- The defaulr value is :-1.79769313486232E+308
-
setX
public void setX(double x)
Sets the X-coordinate of the GeoPoint object.- Parameters:
x- Used to set the X-coordinate of the GeoPoint object.
-
getY
public double getY()
Returns the Y-coordinate of the GeoPoint object.- Returns:
- The Y-coordinate of the GeoPoint object.
- Default:
- The defaulr value is :-1.79769313486232E+308
-
setY
public void setY(double y)
Sets the Y-coordinate of the GeoPoint object.- Parameters:
y- Used to set the Y-coordinate of the GeoPoint object.
-
getZ
public double getZ()
Returns the Z-coordinate of the GeoPoint object. Z value of the point object constructed using non-parameter constructor is the default value.- Returns:
- The Z-coordinate of the GeoPoint object.
- Default:
- The default value is 0.0.
-
setZ
public void setZ(double z)
Sets the Z-coordinate of the GeoPoint object. Z value of the point object constructed using non-parameter constructor is the default value.- Parameters:
z- Used to set the Z-coordinate of the GeoPoint object.
-
clone
public GeoPoint3D clone()
Returns a copy of the current GeoPoint3D object.
-
-