|
|||||||||||
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
default implementation of the GM_SurfacePatch interface from
package jago.model. the class is abstract because it should be
specialized by derived classes GM_Polygon
for example
------------------------------------------------------------
Field Summary | |
protected double |
area
|
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 | |
protected |
GM_SurfacePatch_Impl(GM_SurfaceInterpolation interpolation,
GM_Position[] exteriorRing,
GM_Position[][] interiorRings,
CS_CoordinateSystem crs)
Creates a new GM_SurfacePatch_Impl object. |
Method Summary | |
private double |
calculateArea(GM_Position[] point)
calculates the area of the surface patch taken from gems iv (modified) this method is only valid for the two-dimensional case. |
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. |
private void |
calculateCentroidArea()
calculates the centroid and area of the surface patch. this method is only valid for the two-dimensional case. |
private void |
calculateEnvelope()
|
protected void |
calculateParam()
calculates the centroid and the area of the surface patch |
boolean |
equals(java.lang.Object other)
|
double |
getArea()
The operation "area" shall return the area of this GM_GenericSurface. |
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. |
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 |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
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 |
protected GM_SurfacePatch_Impl(GM_SurfaceInterpolation interpolation, GM_Position[] exteriorRing, GM_Position[][] interiorRings, CS_CoordinateSystem crs) throws GM_Exception
interpolation
- exteriorRing
- interiorRings
- crs
-
GM_Exception
Method Detail |
protected void setValid(boolean valid)
protected boolean isValid()
private void calculateEnvelope()
public GM_SurfaceInterpolation getInterpolation()
public GM_Envelope getEnvelope()
getEnvelope
in interface GM_GenericSurface
public GM_Position[] getExteriorRing()
public GM_Position[][] getInteriorRings()
public double getPerimeter()
getPerimeter
in interface GM_GenericSurface
public CS_CoordinateSystem getCoordinateSystem()
public boolean equals(java.lang.Object other)
other
-
public GM_Point getCentroid()
public double getArea()
getArea
in interface GM_GenericSurface
private void calculateCentroidArea()
protected void calculateParam()
private double calculateArea(GM_Position[] point)
protected GM_Position calculateCentroid(GM_Position[] point)
taken from gems iv (modified)
this method is only valid for the two-dimensional case.
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |