|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.deegree_impl.model.geometry.GM_SurfacePatch_Impl
org.deegree_impl.model.geometry.GM_Polygon_Impl
default implementierung of the GM_Polygon interface from package jago.model. ------------------------------------------------------------
| Field Summary | |
protected double |
area
|
private GM_SurfaceBoundary |
boundary
|
protected GM_Point |
centroid
|
protected CS_CoordinateSystem |
crs
|
protected GM_Envelope |
envelope
|
protected GM_Position[] |
exteriorRing
|
protected GM_Position[][] |
interiorRings
|
protected GM_SurfaceInterpolation |
interpolation
|
private static long |
serialVersionUID
Use serialVersionUID for interoperability. |
protected boolean |
valid
|
| Constructor Summary | |
GM_Polygon_Impl(GM_SurfaceInterpolation interpolation,
GM_Position[] exteriorRing,
GM_Position[][] interiorRings,
CS_CoordinateSystem crs)
Creates a new GM_Polygon_Impl object. |
|
| Method Summary | |
protected GM_Position |
calculateCentroid(GM_Position[] point)
calculates the centroid of the surface patch taken from gems iv (modified) this method is only valid for the two-dimensional case. |
protected void |
calculateParam()
calculates the centroid and the area of the surface patch |
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. |
private boolean |
containsMultiObject(GM_Aggregate gmo)
|
boolean |
equals(java.lang.Object other)
checks if this curve is completly equal to the submitted geometry |
double |
getArea()
The operation "area" shall return the area of this GM_GenericSurface. |
GM_SurfaceBoundary |
getBoundary()
The operation "boundary" shall return the boundary of this GM_SurfacePatch represented as a collection of GM_Curves organized as a GM_SurfaceBoundary, consisting of GM_Curve instances along the boundary of the aggregate GM_Surface, and interior to the GM_Surface where GM_SurfacePatches are adjacent. |
GM_Point |
getCentroid()
The operation "centroid" shall return the mathematical centroid for this GM_Object. |
CS_CoordinateSystem |
getCoordinateSystem()
returns the coordinate system of the surface patch |
GM_Envelope |
getEnvelope()
returns the bounding box of the surface patch |
GM_Position[] |
getExteriorRing()
returns a reference to the exterior ring of the surface |
GM_Position[][] |
getInteriorRings()
returns a reference to the interior rings of the surface |
GM_SurfaceInterpolation |
getInterpolation()
The interpolation determines the surface interpolation mechanism used for this GM_SurfacePatch. |
double |
getPerimeter()
returns the length of all boundaries of the surface in a reference system appropriate for measuring distances. |
boolean |
intersects(GM_Object gmo)
The Boolean valued operation "intersects" shall return TRUE if this GM_Object intersects another GM_Object. |
private boolean |
intersectsMultiObject(GM_Aggregate mprim)
the operations returns true if the submitted multi primitive intersects with the curve segment |
protected boolean |
isValid()
returns true if the calculated parameters of the GM_Object are valid and false if they must be recalculated |
protected void |
setValid(boolean valid)
invalidates the calculated parameters of the GM_Object |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deegree.model.geometry.GM_SurfacePatch |
getArea, getCentroid, getCoordinateSystem, getExteriorRing, getInteriorRings, getInterpolation |
| Methods inherited from interface org.deegree.model.geometry.GM_GenericSurface |
getEnvelope, getPerimeter |
| Field Detail |
private static final long serialVersionUID
private GM_SurfaceBoundary boundary
protected CS_CoordinateSystem crs
protected GM_Envelope envelope
protected GM_Point centroid
protected GM_SurfaceInterpolation interpolation
protected GM_Position[] exteriorRing
protected GM_Position[][] interiorRings
protected double area
protected boolean valid
| Constructor Detail |
public GM_Polygon_Impl(GM_SurfaceInterpolation interpolation,
GM_Position[] exteriorRing,
GM_Position[][] interiorRings,
CS_CoordinateSystem crs)
throws GM_Exception
interpolation - exteriorRing - interiorRings - crs -
GM_Exception| Method Detail |
public GM_SurfaceBoundary getBoundary()
public boolean equals(java.lang.Object other)
equals in class GM_SurfacePatch_Implother - object to compare to
public java.lang.String toString()
toString in class GM_SurfacePatch_Implpublic java.lang.Object clone()
public boolean intersects(GM_Object gmo)
intersects in interface GM_SurfacePatch
private boolean intersectsMultiObject(GM_Aggregate mprim)
throws java.lang.Exception
java.lang.Exceptionpublic boolean contains(GM_Object gmo)
contains in interface GM_SurfacePatchprivate boolean containsMultiObject(GM_Aggregate gmo)
gmo -
protected void setValid(boolean valid)
protected boolean isValid()
public GM_SurfaceInterpolation getInterpolation()
public GM_Envelope getEnvelope()
getEnvelope in interface GM_GenericSurfacepublic GM_Position[] getExteriorRing()
public GM_Position[][] getInteriorRings()
public double getPerimeter()
getPerimeter in interface GM_GenericSurfacepublic CS_CoordinateSystem getCoordinateSystem()
public GM_Point getCentroid()
public double getArea()
getArea in interface GM_GenericSurfaceprotected void calculateParam()
protected GM_Position calculateCentroid(GM_Position[] point)
taken from gems iv (modified)
this method is only valid for the two-dimensional case.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||