|
|||||||||||
| 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
org.deegree_impl.model.geometry.GM_Primitive_Impl
org.deegree_impl.model.geometry.GM_OrientablePrimitive_Impl
org.deegree_impl.model.geometry.GM_OrientableCurve_Impl
org.deegree_impl.model.geometry.GM_Ring_Impl
default implementation of the GM_Ring interface of the
-----------------------------------------------------------------------
| Field Summary | |
protected char |
orientation
|
private GM_Position[] |
points
|
private static long |
serialVersionUID
Use serialVersionUID for interoperability. |
private GM_SurfacePatch |
sp
|
| Fields inherited from class org.deegree_impl.model.geometry.GM_Object_Impl |
boundary, centroid, convexHull, crs, empty, envelope, mute, valid |
| Constructor Summary | |
GM_Ring_Impl(GM_Position[] points,
CS_CoordinateSystem crs)
Constructor, with Array and CS_CoordinateSystem |
|
GM_Ring_Impl(GM_Position[] points,
CS_CoordinateSystem crs,
char orientation)
Constructor, with Array, CS_CoordinateSystem and Orientation |
|
| Method Summary | |
protected void |
calculateCentroid()
calculates the centroid of the ring |
private void |
calculateEnvelope()
calculates the envelope |
protected void |
calculateParam()
calculates the centroid and the envelope of the ring |
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. |
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. |
boolean |
equals(java.lang.Object other)
checks if this curve segment is completly equal to the submitted geometry |
GM_CurveSegment |
getAsCurveSegment()
returns the Ring as a CurveSegment |
int |
getCoordinateDimension()
The operation "coordinateDimension" shall return the dimension of the coordinates that define this GM_Object, which must be the same as the coordinate dimension of the coordinate reference system for this GM_Object. |
GM_CurveBoundary |
getCurveBoundary()
returns the CurveBoundary of the Ring. |
int |
getDimension()
The operation "dimension" shall return the inherent dimension of this GM_Object, which shall be less than or equal to the coordinate dimension. |
char |
getOrientation()
returns the orientation of a curve |
GM_Position[] |
getPositions()
gets the Ring as a Array of positions. |
boolean |
intersects(GM_Object gmo)
The Boolean valued operation "intersects" shall return TRUE if this GM_Object intersects another GM_Object. |
private boolean |
intersectsAggregate(GM_Aggregate mprim)
the operations returns true if the submitted multi primitive intersects with the curve segment |
boolean |
isCycle()
GM_Ring must be closed, so isCycle returns TRUE. |
boolean |
isSimple()
GM_Ring is a PrimitiveBoundary, so isSimple returns TRUE. |
void |
setOrientation(char orientation)
sets the curves orientation |
protected void |
setPositions(GM_Position[] positions)
sets the Ring as a ArrayList of points |
java.lang.String |
toString()
|
| Methods inherited from class org.deegree_impl.model.geometry.GM_Object_Impl |
difference, distance, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, intersection, isEmpty, isValid, isWithinDistance, setCoordinateSystem, setEmpty, setValid, translate, union |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deegree.model.geometry.GM_OrientablePrimitive |
getOrientation, setOrientation |
| Methods inherited from interface org.deegree.model.geometry.GM_Object |
difference, distance, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, intersection, isEmpty, isWithinDistance, translate, union |
| Field Detail |
private static final long serialVersionUID
private GM_Position[] points
private GM_SurfacePatch sp
protected char orientation
| Constructor Detail |
public GM_Ring_Impl(GM_Position[] points,
CS_CoordinateSystem crs)
throws GM_Exception
public GM_Ring_Impl(GM_Position[] points,
CS_CoordinateSystem crs,
char orientation)
throws GM_Exception
| Method Detail |
private void calculateEnvelope()
public boolean isCycle()
isCycle in interface GM_Ringpublic boolean isSimple()
isSimple in interface GM_Ringpublic int getDimension()
getDimension in interface GM_Objectpublic int getCoordinateDimension()
getCoordinateDimension in interface GM_Objectpublic GM_Position[] getPositions()
getPositions in interface GM_Ring
protected void setPositions(GM_Position[] positions)
throws GM_Exception
GM_Exception
public GM_CurveSegment getAsCurveSegment()
throws GM_Exception
getAsCurveSegment in interface GM_RingGM_Exceptionpublic GM_CurveBoundary getCurveBoundary()
getCurveBoundary in interface GM_OrientableCurvepublic boolean equals(java.lang.Object other)
equals in class GM_Object_Implother - object to compare to
public java.lang.Object clone()
clone in class GM_Object_Implpublic boolean intersects(GM_Object gmo)
intersects in interface GM_Objectintersects in class GM_Object_Implgmo - the GM_Object to intersect with
private boolean intersectsAggregate(GM_Aggregate mprim)
throws java.lang.Exception
java.lang.Exceptionpublic boolean contains(GM_Object gmo)
contains in interface GM_Objectcontains in class GM_Object_Implgmo - the GM_Object to test (whether is is contained)
public boolean contains(GM_Position position)
contains in interface GM_Objectcontains in class GM_Object_Implposition - GM_Position to test (whether is is contained)
protected void calculateCentroid()
protected void calculateParam()
calculateParam in class GM_Object_Implpublic java.lang.String toString()
toString in class GM_Object_Implpublic char getOrientation()
getOrientation in interface GM_OrientablePrimitive
public void setOrientation(char orientation)
throws GM_Exception
setOrientation in interface GM_OrientablePrimitiveorientation - orientation of the curve ('+'|'-')
GM_Exception - will be thrown if orientation is invalid
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||