|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.model.spatialschema.SurfacePatchImpl
abstract class SurfacePatchImpl
default implementation of the SurfacePatch interface from package jago.model. the class is
abstract because it should be specialized by derived classes Polygon for example
| Field Summary | |
|---|---|
protected double |
area
|
protected Point |
centroid
|
protected CoordinateSystem |
crs
|
protected Ring |
exteriorRing
|
protected Ring[] |
interiorRings
|
protected SurfaceInterpolation |
interpolation
|
protected boolean |
valid
|
| Constructor Summary | |
|---|---|
protected |
SurfacePatchImpl(Ring exteriorRing,
Ring[] interiorRings,
CoordinateSystem crs)
|
protected |
SurfacePatchImpl(SurfaceInterpolation interpolation,
Position[] exteriorRing,
Position[][] interiorRings,
CoordinateSystem crs)
Creates a new SurfacePatchImpl object. |
| Method Summary | |
|---|---|
protected Position |
calculateCentroid(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 |
boolean |
equals(Object other)
|
double |
getArea()
The operation "area" shall return the area of this GenericSurface. |
Point |
getCentroid()
The operation "centroid" shall return the mathematical centroid for this Geometry. |
CoordinateSystem |
getCoordinateSystem()
returns the coordinate system of the surface patch |
Envelope |
getEnvelope()
returns the bounding box of the surface patch |
Ring |
getExterior()
|
Position[] |
getExteriorRing()
returns a reference to the exterior ring of the surface |
Ring[] |
getInterior()
|
Position[][] |
getInteriorRings()
returns a reference to the interior rings of the surface |
SurfaceInterpolation |
getInterpolation()
The interpolation determines the surface interpolation mechanism used for this 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 Geometry are valid and false if they must be recalculated |
protected void |
setValid(boolean valid)
invalidates the calculated parameters of the Geometry |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deegree.model.spatialschema.SurfacePatch |
|---|
contains, intersects |
| Field Detail |
|---|
protected CoordinateSystem crs
protected Point centroid
protected SurfaceInterpolation interpolation
protected Ring exteriorRing
protected Ring[] interiorRings
protected double area
protected boolean valid
| Constructor Detail |
|---|
protected SurfacePatchImpl(Ring exteriorRing,
Ring[] interiorRings,
CoordinateSystem crs)
exteriorRing - interiorRings - crs -
protected SurfacePatchImpl(SurfaceInterpolation interpolation,
Position[] exteriorRing,
Position[][] interiorRings,
CoordinateSystem crs)
throws GeometryException
interpolation - exteriorRing - interiorRings - crs -
GeometryException| Method Detail |
|---|
protected void setValid(boolean valid)
protected boolean isValid()
public SurfaceInterpolation getInterpolation()
getInterpolation in interface SurfacePatchpublic Envelope getEnvelope()
getEnvelope in interface GenericSurfacepublic Position[] getExteriorRing()
getExteriorRing in interface SurfacePatchpublic Position[][] getInteriorRings()
getInteriorRings in interface SurfacePatchpublic Ring getExterior()
getExterior in interface SurfacePatchpublic Ring[] getInterior()
getInterior in interface SurfacePatchpublic double getPerimeter()
getPerimeter in interface GenericSurfacepublic CoordinateSystem getCoordinateSystem()
getCoordinateSystem in interface SurfacePatchpublic boolean equals(Object other)
equals in class Objectpublic Point getCentroid()
getCentroid in interface SurfacePatchpublic double getArea()
getArea in interface GenericSurfacegetArea in interface SurfacePatchprotected void calculateParam()
protected Position calculateCentroid(Position[] point)
taken from gems iv (modified)
this method is only valid for the two-dimensional case.
public String toString()
toString in class Object
|
deegree 2.2 (2008/12/22 11:33 build-3038-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