|
deegree 2.1 (2007/11/08 09:57 build-328-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 pointpublic PointImpl(double x, double y, CoordinateSystem crs)
x
- x-value of the pointy
- y-value of the pointcrs
- spatial reference system of the pointpublic 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_Pointpublic PointImpl(Position gmo, CoordinateSystem crs)
gmo
- existing GM_Pointcrs
- spatial reference system of the pointMethod Detail |
---|
public boolean equals(Object other)
equals
in class GeometryImpl
other
- the Geometry to test for equality
public int getDimension()
getDimension
in interface Geometry
public int getCoordinateDimension()
getCoordinateDimension
in interface Geometry
public Object clone()
clone
in class GeometryImpl
public double getX()
getX
in interface Point
public double getY()
getY
in interface Point
public double getZ()
getZ
in interface Point
public double[] getAsArray()
getAsArray
in interface Point
public void translate(double[] d)
dz
- value will be ignored.
translate
in interface Geometry
translate
in class GeometryImpl
public Position getPosition()
Point
getPosition
in interface Point
public boolean intersects(Geometry gmo)
dummy implementation
intersects
in interface Geometry
intersects
in class GeometryImpl
gmo
- the Geometry to intersect with
public boolean contains(Geometry gmo)
contains
in interface Geometry
contains
in class GeometryImpl
gmo
- the Geometry to test (whether is is contained)
protected void calculateParam()
calculateParam
in class GeometryImpl
public String toString()
toString
in class GeometryImpl
|
deegree 2.1 (2007/11/08 09:57 build-328-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