|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.model.geometry.GM_Object_Impl
org.deegree_impl.model.geometry.GM_Primitive_Impl
org.deegree_impl.model.geometry.GM_Point_Impl
default implementation of the GM_Point interface.
------------------------------------------------------------
Field Summary | |
private GM_Position |
position
|
private static long |
serialVersionUID
Use serialVersionUID for interoperability. |
Fields inherited from class org.deegree_impl.model.geometry.GM_Object_Impl |
boundary, centroid, convexHull, crs, empty, envelope, mute, valid |
Constructor Summary | |
GM_Point_Impl(CS_CoordinateSystem crs)
constructor. initializes a point to the coordinate 0/0 |
|
GM_Point_Impl(double x,
double y,
CS_CoordinateSystem crs)
constructor for initializing a point within a two-dimensional coordinate system |
|
GM_Point_Impl(double x,
double y,
double z,
CS_CoordinateSystem crs)
constructor for initializing a point within a three-dimensional coordinate system |
|
GM_Point_Impl(GM_Point gmo)
constructor |
|
GM_Point_Impl(GM_Position gmo,
CS_CoordinateSystem crs)
constructor |
Method Summary | |
protected void |
calculateParam()
recalculates internal parameters |
java.lang.Object |
clone()
returns a shallow copy of the geometry. |
boolean |
contains(GM_Object gmo)
The Boolean valued operation "contains" shall return TRUE if this GM_Object contains another GM_Object. |
boolean |
equals(java.lang.Object other)
checks if this point is completly equal to the submitted geometry |
double[] |
getAsArray()
returns the x- and y-value of the point as a two dimensional array the first field contains the x- the second field the y-value. |
int |
getCoordinateDimension()
The operation "coordinateDimension" shall return the dimension of the coordinates that define this GM_Object, which must be the same as the coordinate dimension of the coordinate reference system for this GM_Object. |
int |
getDimension()
The operation "dimension" shall return the inherent dimension of this GM_Object, which shall be less than or equal to the coordinate dimension. |
GM_Position |
getPosition()
returns the position of the point |
double |
getX()
returns the x-value of this point |
double |
getY()
returns the y-value of this point |
double |
getZ()
returns the y-value of this point |
boolean |
intersects(GM_Object gmo)
The Boolean valued operation "intersects" shall return TRUE if this GM_Object intersects another GM_Object. |
private boolean |
intersectsAggregate(GM_Aggregate mprim)
the operations returns true if the submitted multi primitive intersects with the curve segment |
java.lang.String |
toString()
|
void |
translate(double[] d)
translate the point by the submitted values. the dz -
value will be ignored. |
Methods inherited from class org.deegree_impl.model.geometry.GM_Object_Impl |
contains, difference, distance, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, intersection, isEmpty, isValid, isWithinDistance, setCoordinateSystem, setEmpty, setValid, union |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.deegree.model.geometry.GM_Object |
contains, difference, distance, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, intersection, isEmpty, isWithinDistance, union |
Field Detail |
private static final long serialVersionUID
private GM_Position position
Constructor Detail |
public GM_Point_Impl(CS_CoordinateSystem crs)
crs
- spatial reference system of the pointpublic GM_Point_Impl(double x, double y, CS_CoordinateSystem crs)
x
- x-value of the pointy
- y-value of the pointcrs
- spatial reference system of the pointpublic GM_Point_Impl(double x, double y, double z, CS_CoordinateSystem crs)
x
- x-value of the pointy
- y-value of the pointz
- z-value of the pointcrs
- spatial reference system of the pointpublic GM_Point_Impl(GM_Point gmo)
gmo
- existing GM_Pointpublic GM_Point_Impl(GM_Position gmo, CS_CoordinateSystem crs)
gmo
- existing GM_Pointcrs
- spatial reference system of the pointMethod Detail |
public boolean equals(java.lang.Object other)
equals
in class GM_Object_Impl
other
- the GM_Object to test for equality
public int getDimension()
getDimension
in interface GM_Object
public int getCoordinateDimension()
getCoordinateDimension
in interface GM_Object
public java.lang.Object clone()
clone
in class GM_Object_Impl
public double getX()
getX
in interface GM_Point
public double getY()
getY
in interface GM_Point
public double getZ()
getZ
in interface GM_Point
public double[] getAsArray()
getAsArray
in interface GM_Point
public void translate(double[] d)
dz
-
value will be ignored.
translate
in interface GM_Object
translate
in class GM_Object_Impl
public GM_Position getPosition()
GM_Point
getPosition
in interface GM_Point
public boolean intersects(GM_Object gmo)
intersects
in interface GM_Object
intersects
in class GM_Object_Impl
gmo
- the GM_Object to intersect with
private boolean intersectsAggregate(GM_Aggregate mprim) throws java.lang.Exception
java.lang.Exception
public boolean contains(GM_Object gmo)
contains
in interface GM_Object
contains
in class GM_Object_Impl
gmo
- the GM_Object to test (whether is is contained)
protected void calculateParam()
calculateParam
in class GM_Object_Impl
public java.lang.String toString()
toString
in class GM_Object_Impl
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |