|
|||||||||||
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
Default implementation of the GM_Object interface from package deegree.model. The implementation is abstract because only the management of the spatial reference system is unique for all geometries.
Field Summary | |
protected GM_Boundary |
boundary
|
protected GM_Point |
centroid
|
protected GM_Object |
convexHull
|
protected CS_CoordinateSystem |
crs
|
protected boolean |
empty
|
protected GM_Envelope |
envelope
|
protected static double |
mute
|
private static long |
serialVersionUID
Use serialVersionUID for interoperability. |
protected boolean |
valid
|
Constructor Summary | |
protected |
GM_Object_Impl(CS_CoordinateSystem crs)
constructor that sets the spatial reference system |
Method Summary | |
protected abstract void |
calculateParam()
recalculates internal parameters |
java.lang.Object |
clone()
returns a shallow copy of the geometry. this isn't realized at this level so a CloneNotSupportedException will be thrown. |
boolean |
contains(GM_Object that)
The Boolean valued operation "contains" shall return TRUE if this GM_Object contains another GM_Object. |
boolean |
contains(GM_Position position)
The Boolean valued operation "contains" shall return TRUE if this GM_Object contains a single point given by a coordinate. |
GM_Object |
difference(GM_Object that)
The "difference" operation shall return the set theoretic difference of this GM_Object and the passed GM_Object. |
double |
distance(GM_Object gmo)
The operation "distance" shall return the distance between this GM_Object and another GM_Object. |
boolean |
equals(java.lang.Object that)
Compares the GM_Object to be equal to another GM_Object. |
GM_Boundary |
getBoundary()
returns the boundary of the surface as general boundary |
GM_Object |
getBuffer(double distance)
The operation "buffer" shall return a GM_Object containing all points whose distance from this GM_Object is less than or equal to the "distance" passed as a parameter. |
GM_Point |
getCentroid()
The operation "centroid" shall return the mathematical centroid for this GM_Object. |
GM_Object |
getConvexHull()
The operation "convexHull" shall return a GM_Object that represents the convex hull of this GM_Object. |
CS_CoordinateSystem |
getCoordinateSystem()
returns the spatial reference system of a geometry |
GM_Envelope |
getEnvelope()
returns the bounding box / envelope of a geometry |
GM_Object |
intersection(GM_Object that)
The "intersection" operation shall return the set theoretic intersection of this GM_Object and the passed GM_Object. |
boolean |
intersects(GM_Object that)
The Boolean valued operation "intersects" shall return TRUE if this GM_Object intersects another GM_Object. |
boolean |
isEmpty()
returns true if no geometry values resp. points stored within the geometry. |
protected boolean |
isValid()
returns true if the calculated parameters of the GM_Object are valid and false if they must be recalculated |
boolean |
isWithinDistance(GM_Object that,
double distance)
|
void |
setCoordinateSystem(CS_CoordinateSystem crs)
sets the spatial reference system |
void |
setEmpty(boolean empty)
indicates the geometry as empty |
protected void |
setValid(boolean valid)
invalidates the calculated parameters of the GM_Object |
java.lang.String |
toString()
|
void |
translate(double[] d)
dummy implementation of this method |
GM_Object |
union(GM_Object that)
The "union" operation shall return the set theoretic union of this GM_Object and the passed GM_Object. |
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 |
getCoordinateDimension, getDimension |
Field Detail |
private static final long serialVersionUID
protected static double mute
protected CS_CoordinateSystem crs
protected GM_Boundary boundary
protected GM_Envelope envelope
protected GM_Object convexHull
protected GM_Point centroid
protected boolean empty
protected boolean valid
Constructor Detail |
protected GM_Object_Impl(CS_CoordinateSystem crs)
crs
- new spatial reference systemMethod Detail |
public CS_CoordinateSystem getCoordinateSystem()
getCoordinateSystem
in interface GM_Object
public void setCoordinateSystem(CS_CoordinateSystem crs)
crs
- new spatial reference systempublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public boolean isEmpty()
isEmpty
in interface GM_Object
public void setEmpty(boolean empty)
public GM_Boundary getBoundary()
getBoundary
in interface GM_Object
public void translate(double[] d)
translate
in interface GM_Object
public double distance(GM_Object gmo)
distance
in interface GM_Object
public GM_Point getCentroid()
getCentroid
in interface GM_Object
public GM_Envelope getEnvelope()
getEnvelope
in interface GM_Object
public GM_Object getConvexHull()
getConvexHull
in interface GM_Object
public GM_Object getBuffer(double distance)
getBuffer
in interface GM_Object
public boolean contains(GM_Object that)
contains
in interface GM_Object
that
- the GM_Object to test (whether is is contained)
public boolean contains(GM_Position position)
contains
in interface GM_Object
position
- GM_Position to test (whether is is contained)
public boolean intersects(GM_Object that)
intersects
in interface GM_Object
that
- the GM_Object to intersect with
public GM_Object union(GM_Object that)
union
in interface GM_Object
that
- the GM_Object to unify
public GM_Object intersection(GM_Object that)
intersection
in interface GM_Object
that
- the GM_Object to intersect with
public GM_Object difference(GM_Object that)
difference
in interface GM_Object
that
- the GM_Object to calculate the difference with
public boolean equals(java.lang.Object that)
that
- the GM_Object to test for equality
public boolean isWithinDistance(GM_Object that, double distance)
isWithinDistance
in interface GM_Object
protected void setValid(boolean valid)
protected boolean isValid()
protected abstract void calculateParam()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |