|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
java.lang.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(java.lang.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 |
java.lang.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 Ring
public boolean isSimple()
isSimple
in interface Ring
public int getDimension()
getDimension
in interface Geometry
public int getCoordinateDimension()
getCoordinateDimension
in interface Geometry
public Position[] getPositions()
getPositions
in interface Ring
protected void setPositions(Position[][] positions) throws GeometryException
positions
-
GeometryException
public CurveSegment getAsCurveSegment() throws GeometryException
getAsCurveSegment
in interface Ring
GeometryException
public CurveSegment[] getCurveSegments()
getCurveSegments
in interface Ring
public CurveBoundary getCurveBoundary()
getCurveBoundary
in interface OrientableCurve
public boolean equals(java.lang.Object other)
GeometryImpl
equals
in class GeometryImpl
other
- the Geometry to test for equality
public java.lang.Object clone()
clone
in class GeometryImpl
public boolean intersects(Geometry gmo)
GeometryImpl
intersects
in interface Geometry
intersects
in class GeometryImpl
gmo
- the Geometry to intersect with
public boolean contains(Geometry gmo)
At the moment the operation just works with point geometries
contains
in interface Geometry
contains
in class GeometryImpl
gmo
- the Geometry to test (whether is is contained)
public boolean contains(Position position)
GeometryImpl
contains
in interface Geometry
contains
in class GeometryImpl
position
- Position to test (whether is is contained)
protected void calculateCentroid()
protected void calculateParam()
GeometryImpl
calculateParam
in class GeometryImpl
public java.lang.String toString()
toString
in class GeometryImpl
|
deegree 2.5 (2011/06/29 09:44 build-8-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