|
|||||||||||
| 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 point
public 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 point
public 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_Point
public GM_Point_Impl(GM_Position gmo,
CS_CoordinateSystem crs)
gmo - existing GM_Pointcrs - spatial reference system of the point| Method Detail |
public boolean equals(java.lang.Object other)
equals in class GM_Object_Implother - the GM_Object to test for equality
public int getDimension()
getDimension in interface GM_Objectpublic int getCoordinateDimension()
getCoordinateDimension in interface GM_Objectpublic java.lang.Object clone()
clone in class GM_Object_Implpublic double getX()
getX in interface GM_Pointpublic double getY()
getY in interface GM_Pointpublic double getZ()
getZ in interface GM_Pointpublic double[] getAsArray()
getAsArray in interface GM_Pointpublic void translate(double[] d)
dz-
value will be ignored.
translate in interface GM_Objecttranslate in class GM_Object_Implpublic GM_Position getPosition()
GM_Point
getPosition in interface GM_Pointpublic boolean intersects(GM_Object gmo)
intersects in interface GM_Objectintersects in class GM_Object_Implgmo - the GM_Object to intersect with
private boolean intersectsAggregate(GM_Aggregate mprim)
throws java.lang.Exception
java.lang.Exceptionpublic boolean contains(GM_Object gmo)
contains in interface GM_Objectcontains in class GM_Object_Implgmo - the GM_Object to test (whether is is contained)
protected void calculateParam()
calculateParam in class GM_Object_Implpublic 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 | ||||||||||