|
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.GeometryImpl
org.deegree.model.spatialschema.PrimitiveImpl
org.deegree.model.spatialschema.OrientablePrimitiveImpl
org.deegree.model.spatialschema.OrientableCurveImpl
org.deegree.model.spatialschema.CurveImpl
class CurveImpl
default implementation of
Curve
Field Summary | |
---|---|
protected ArrayList<CurveSegment> |
segments
|
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 |
Constructor Summary | |
---|---|
CurveImpl(char orientation,
CurveSegment[] segments)
initialize the curve by submitting a spatial reference system, an array of curve segments and the orientation of the curve |
|
CurveImpl(CurveSegment segments)
initialize the curve by submitting a spatial reference system and an array of curve segments. |
|
CurveImpl(CurveSegment[] segments)
initialize the curve by submitting a spatial reference system and an array of curve segments. |
|
CurveImpl(CurveSegment[] segments,
CoordinateSystem crs)
initialize the curve by submitting a spatial reference system and an array of curve segments. |
Method Summary | |
---|---|
protected void |
calculateParam()
recalculates internal parameters |
Object |
clone()
returns a shallow copy of the geometry |
boolean |
equals(Object other)
checks if this curve is completly equal to the submitted geometry |
LineString |
getAsLineString()
returns the curve as LineString. if there isn't a curve segment within the curve null will be returned |
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 boundary of the curve |
CurveSegment |
getCurveSegmentAt(int index)
returns the curve segment at the submitted index |
CurveSegment[] |
getCurveSegments()
|
int |
getDimension()
The operation "dimension" shall return the inherent dimension of this Geometry, which shall be less than or equal to the coordinate dimension. |
Point |
getEndPoint()
returns the last point of the curve.if the curve doesn't contain a segment or the last segment doesn't contain a point null will be returned |
double |
getLength()
returns the length of the curve in units of the related spatial reference system |
int |
getNumberOfCurveSegments()
returns the number of segments building the curve |
Point |
getStartPoint()
returns the first point of the curve. if the curve doesn't contain a segment or the first segment doesn't contain a point null will be returned |
boolean |
intersects(Geometry gmo)
The Boolean valued operation "intersects" shall return TRUE if this Geometry intersects another Geometry. |
boolean |
isEmpty()
returns true if no segment is within the curve |
String |
toString()
|
void |
translate(double[] d)
translate each point of the curve with the values of the submitted double array. |
Methods inherited from class org.deegree.model.spatialschema.OrientablePrimitiveImpl |
---|
getOrientation, setOrientation |
Methods inherited from class org.deegree.model.spatialschema.GeometryImpl |
---|
contains, contains, difference, distance, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isValid, isWithinDistance, setCoordinateSystem, setEmpty, setTolerance, setValid, 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 |
---|
contains, contains, difference, distance, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isWithinDistance, setTolerance, union |
Field Detail |
---|
protected ArrayList<CurveSegment> segments
Constructor Detail |
---|
public CurveImpl(CurveSegment segments) throws GeometryException
segments
- array of CurveSegment
GeometryException
public CurveImpl(CurveSegment[] segments) throws GeometryException
segments
- array of CurveSegment
GeometryException
public CurveImpl(CurveSegment[] segments, CoordinateSystem crs) throws GeometryException
segments
- array of CurveSegmentcrs
-
GeometryException
public CurveImpl(char orientation, CurveSegment[] segments) throws GeometryException
segments
- array of CurveSegmentorientation
- of the curve
GeometryException
Method Detail |
---|
protected void calculateParam()
GeometryImpl
calculateParam
in class GeometryImpl
public CurveBoundary getCurveBoundary()
getCurveBoundary
in interface OrientableCurve
public int getDimension()
getDimension
in interface Geometry
public int getCoordinateDimension()
getCoordinateDimension
in interface Geometry
public boolean intersects(Geometry gmo)
dummy implementation
intersects
in interface Geometry
intersects
in class GeometryImpl
gmo
- the Geometry to intersect with
public double getLength()
getLength
in interface GenericCurve
public int getNumberOfCurveSegments()
getNumberOfCurveSegments
in interface Curve
public Point getStartPoint()
getStartPoint
in interface GenericCurve
public Point getEndPoint()
getEndPoint
in interface GenericCurve
public LineString getAsLineString() throws GeometryException
getAsLineString
in interface GenericCurve
GeometryException
public CurveSegment getCurveSegmentAt(int index) throws GeometryException
getCurveSegmentAt
in interface Curve
index
- index of the curve segment that should be returned
GeometryException
- a exception will be thrown if index is smaller than '0' or larger
than getNumberOfCurveSegments()-1public CurveSegment[] getCurveSegments() throws GeometryException
getCurveSegments
in interface Curve
GeometryException
public boolean isEmpty()
isEmpty
in interface Geometry
isEmpty
in class GeometryImpl
public void translate(double[] d)
translate
in interface Geometry
translate
in class GeometryImpl
public boolean equals(Object other)
equals
in class GeometryImpl
other
- object to compare to
public Object clone()
clone
in class GeometryImpl
public String toString()
toString
in class GeometryImpl
|
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