|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.model.spatialschema.GeometryImpl
org.deegree.model.spatialschema.PrimitiveImpl
org.deegree.model.spatialschema.PointImpl
final class PointImpl
default implementation of the Point interface.
------------------------------------------------------------
| Field Summary |
|---|
| Fields inherited from class org.deegree.model.spatialschema.GeometryImpl |
|---|
boundary, centroid, convexHull, crs, empty, envelope, mute, valid |
| Constructor Summary | |
|---|---|
PointImpl(CoordinateSystem crs)
constructor. initializes a point to the coordinate 0/0 |
|
PointImpl(double x,
double y,
CoordinateSystem crs)
constructor for initializing a point within a two-dimensional coordinate system |
|
PointImpl(double x,
double y,
double z,
CoordinateSystem crs)
constructor for initializing a point within a three-dimensional coordinate system |
|
PointImpl(Point gmo)
constructor |
|
PointImpl(Position gmo,
CoordinateSystem crs)
constructor |
|
| Method Summary | |
|---|---|
protected void |
calculateParam()
recalculates internal parameters |
Object |
clone()
returns a shallow copy of the geometry. |
boolean |
contains(Geometry gmo)
The Boolean valued operation "contains" shall return TRUE if this Geometry contains another Geometry. |
boolean |
equals(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 Geometry, which must be the same as the coordinate dimension of the coordinate reference system for this Geometry. |
int |
getDimension()
The operation "dimension" shall return the inherent dimension of this Geometry, which shall be less than or equal to the coordinate dimension. |
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(Geometry gmo)
The Boolean valued operation "intersects" shall return TRUE if this Geometry intersects another Geometry. |
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.model.spatialschema.GeometryImpl |
|---|
contains, difference, distance, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isEmpty, isValid, isWithinDistance, setCoordinateSystem, setEmpty, setTolerance, setValid, union |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deegree.model.spatialschema.Geometry |
|---|
contains, difference, distance, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isEmpty, isWithinDistance, setTolerance, union |
| Constructor Detail |
|---|
public PointImpl(CoordinateSystem crs)
crs - spatial reference system of the point
public PointImpl(double x,
double y,
CoordinateSystem crs)
x - x-value of the pointy - y-value of the pointcrs - spatial reference system of the point
public PointImpl(double x,
double y,
double z,
CoordinateSystem crs)
x - x-value of the pointy - y-value of the pointz - z-value of the pointcrs - spatial reference system of the pointpublic PointImpl(Point gmo)
gmo - existing GM_Point
public PointImpl(Position gmo,
CoordinateSystem crs)
gmo - existing GM_Pointcrs - spatial reference system of the point| Method Detail |
|---|
public boolean equals(Object other)
equals in class GeometryImplother - the Geometry to test for equality
public int getDimension()
getDimension in interface Geometrypublic int getCoordinateDimension()
getCoordinateDimension in interface Geometrypublic Object clone()
clone in class GeometryImplpublic double getX()
getX in interface Pointpublic double getY()
getY in interface Pointpublic double getZ()
getZ in interface Pointpublic double[] getAsArray()
getAsArray in interface Pointpublic void translate(double[] d)
dz- value will be ignored.
translate in interface Geometrytranslate in class GeometryImplpublic Position getPosition()
Point
getPosition in interface Pointpublic boolean intersects(Geometry gmo)
dummy implementation
intersects in interface Geometryintersects in class GeometryImplgmo - the Geometry to intersect with
public boolean contains(Geometry gmo)
contains in interface Geometrycontains in class GeometryImplgmo - the Geometry to test (whether is is contained)
protected void calculateParam()
calculateParam in class GeometryImplpublic String toString()
toString in class GeometryImpl
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net