|
deegree 2.3 (2010/04/09 10:10 build-4-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
public 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 |
| Fields inherited from interface org.deegree.model.spatialschema.Geometry |
|---|
BUFFER_CAP_BUTT, BUFFER_CAP_ROUND, BUFFER_CAP_SQUARE |
| Constructor Summary | |
|---|---|
protected |
PointImpl(CoordinateSystem crs)
constructor. initializes a point to the coordinate 0/0 |
protected |
PointImpl(double x,
double y,
CoordinateSystem crs)
constructor for initializing a point within a two-dimensional coordinate system |
protected |
PointImpl(double x,
double y,
double z,
CoordinateSystem crs)
constructor for initializing a point within a three-dimensional coordinate system |
protected |
PointImpl(Point otherPoint)
constructor |
protected |
PointImpl(Position position,
CoordinateSystem crs)
constructor |
| Method Summary | |
|---|---|
protected void |
calculateParam()
recalculates internal parameters |
Object |
clone()
|
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 completely equal to the submitted geometry |
double[] |
getAsArray()
|
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()
|
double |
getX()
|
double |
getY()
|
double |
getZ()
|
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, 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, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isEmpty, isWithinDistance, setTolerance, union |
| Constructor Detail |
|---|
protected PointImpl(CoordinateSystem crs)
crs - spatial reference system of the point
protected PointImpl(double x,
double y,
CoordinateSystem crs)
x - x-value of the pointy - y-value of the pointcrs - spatial reference system of the point
protected 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 pointprotected PointImpl(Point otherPoint)
otherPoint - existing GM_Point
protected PointImpl(Position position,
CoordinateSystem crs)
position - existing positioncrs - 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()
Geometry
getDimension in interface Geometrypublic int getCoordinateDimension()
Geometry
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 GeometryImpld - vector to translate the geometry withpublic Position getPosition()
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.3 (2010/04/09 10:10 build-4-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://www.deegree.org