|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.model.spatialschema.GeometryImpl
org.deegree.model.spatialschema.PrimitiveImpl
org.deegree.model.spatialschema.OrientablePrimitiveImpl
org.deegree.model.spatialschema.OrientableCurveImpl
org.deegree.model.spatialschema.RingImpl
public class RingImpl
default implementation of the Ring interface of the
| Field Summary |
|---|
| Fields inherited from class org.deegree.model.spatialschema.OrientablePrimitiveImpl |
|---|
orientation |
| Fields inherited from class org.deegree.model.spatialschema.GeometryImpl |
|---|
boundary, centroid, convexHull, crs, empty, envelope, mute, valid |
| Fields inherited from interface org.deegree.model.spatialschema.Geometry |
|---|
BUFFER_CAP_BUTT, BUFFER_CAP_ROUND, BUFFER_CAP_SQUARE |
| Constructor Summary | |
|---|---|
protected |
RingImpl(CurveSegment[] segments,
CoordinateSystem crs,
char orientation)
Constructor, with curve segments, CoordinateSystem and Orientation |
protected |
RingImpl(Position[] points,
CoordinateSystem crs)
Constructor, with an array and CoordinateSystem |
protected |
RingImpl(Position[] points,
CoordinateSystem crs,
char orientation)
Constructor, with an array, CoordinateSystem and Orientation |
| Method Summary | |
|---|---|
protected void |
calculateCentroid()
calculates the centroid of the ring |
protected void |
calculateParam()
recalculates internal parameters |
Object |
clone()
|
boolean |
contains(Geometry gmo)
The Boolean valued operation "contains" shall return TRUE if this Geometry contains another Geometry. |
boolean |
contains(Position position)
The Boolean valued operation "contains" shall return TRUE if this Geometry contains a single point given by a coordinate. |
boolean |
equals(Object other)
Compares the Geometry to be equal to another Geometry. |
CurveSegment |
getAsCurveSegment()
returns the Ring as one CurveSegment |
int |
getCoordinateDimension()
The operation "coordinateDimension" shall return the dimension of the coordinates that define this Geometry, which must be the same as the coordinate dimension of the coordinate reference system for this Geometry. |
CurveBoundary |
getCurveBoundary()
returns the CurveBoundary of the Ring. |
CurveSegment[] |
getCurveSegments()
returns the Ring as a CurveSegments |
int |
getDimension()
The operation "dimension" shall return the inherent dimension of this Geometry, which shall be less than or equal to the coordinate dimension. |
Position[] |
getPositions()
gets the Ring as a Array of positions. |
boolean |
intersects(Geometry gmo)
The Boolean valued operation "intersects" shall return TRUE if this Geometry intersects another Geometry. |
boolean |
isCycle()
Ring must be closed, so isCycle returns TRUE. |
boolean |
isSimple()
Ring is a PrimitiveBoundary, so isSimple returns TRUE. |
protected void |
setPositions(Position[][] positions)
sets the Ring as a ArrayList of points |
String |
toString()
|
| Methods inherited from class org.deegree.model.spatialschema.OrientablePrimitiveImpl |
|---|
getOrientation, setOrientation |
| Methods inherited from class org.deegree.model.spatialschema.GeometryImpl |
|---|
difference, distance, getBoundary, getBuffer, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isEmpty, isValid, isWithinDistance, setCoordinateSystem, setEmpty, setTolerance, 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.spatialschema.OrientablePrimitive |
|---|
getOrientation, setOrientation |
| Methods inherited from interface org.deegree.model.spatialschema.Geometry |
|---|
difference, distance, getBoundary, getBuffer, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isEmpty, isWithinDistance, setTolerance, translate, union |
| Constructor Detail |
|---|
protected RingImpl(Position[] points,
CoordinateSystem crs)
throws GeometryException
points - crs -
GeometryException
protected RingImpl(Position[] points,
CoordinateSystem crs,
char orientation)
throws GeometryException
points - crs - orientation -
GeometryException
protected RingImpl(CurveSegment[] segments,
CoordinateSystem crs,
char orientation)
throws GeometryException
segments - crs - orientation -
GeometryException| Method Detail |
|---|
public boolean isCycle()
isCycle in interface Ringpublic boolean isSimple()
isSimple in interface Ringpublic int getDimension()
getDimension in interface Geometrypublic int getCoordinateDimension()
getCoordinateDimension in interface Geometrypublic Position[] getPositions()
getPositions in interface Ring
protected void setPositions(Position[][] positions)
throws GeometryException
positions -
GeometryException
public CurveSegment getAsCurveSegment()
throws GeometryException
getAsCurveSegment in interface RingGeometryExceptionpublic CurveSegment[] getCurveSegments()
getCurveSegments in interface Ringpublic CurveBoundary getCurveBoundary()
getCurveBoundary in interface OrientableCurvepublic boolean equals(Object other)
GeometryImpl
equals in class GeometryImplother - the Geometry to test for equality
public Object clone()
clone in class GeometryImplpublic boolean intersects(Geometry gmo)
GeometryImpl
intersects in interface Geometryintersects in class GeometryImplgmo - the Geometry to intersect with
public boolean contains(Geometry gmo)
At the moment the operation just works with point geometries
contains in interface Geometrycontains in class GeometryImplgmo - the Geometry to test (whether is is contained)
public boolean contains(Position position)
GeometryImpl
contains in interface Geometrycontains in class GeometryImplposition - Position to test (whether is is contained)
protected void calculateCentroid()
protected void calculateParam()
GeometryImpl
calculateParam in class GeometryImplpublic String toString()
toString in class GeometryImpl
|
deegree 2.3 (2010/04/09 10:10 build-4-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://www.deegree.org