|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.deegree_impl.model.geometry.GM_CurveSegment_Impl
default implementation of the GM_CurveSegment interface from
package jago.model. the class is abstract because it should be
specialized by derived classes GM_LineString for example
---------------------------------------------------------------------------
| Field Summary | |
protected CS_CoordinateSystem |
crs
|
protected GM_Position[] |
points
|
private static long |
serialVersionUID
Use serialVersionUID for interoperability. |
| Constructor Summary | |
protected |
GM_CurveSegment_Impl(GM_Position[] gmps,
CS_CoordinateSystem crs)
Creates a new GM_CurveSegment_Impl object. |
| Method Summary | |
boolean |
contains(GM_Object gmo)
The Boolean valued operation "contains" shall return TRUE if this GM_Object contains another GM_Object. |
boolean |
equals(java.lang.Object other)
checks if this curve segment is completly equal to the submitted geometry |
CS_CoordinateSystem |
getCoordinateSystem()
returns the coordinate system of the curve segment |
GM_Point |
getEndPoint()
returns the last point of the curve. if the curve segment doesn't contain a point null will be returned |
int |
getNumberOfPoints()
returns the number of points building the curve or curve segment |
GM_Position |
getPositionAt(int index)
returns the curve segment position at the submitted index |
GM_Position[] |
getPositions()
returns all positions of the segement as array of GM_Position. |
GM_Point |
getStartPoint()
returns the first point of the curve. if the curve segment doesn't contain a point null will be returned |
void |
reverse()
reverses the direction of the curvesegment |
java.lang.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.geometry.GM_CurveSegment |
intersects |
| Methods inherited from interface org.deegree.model.geometry.GM_GenericCurve |
getAsLineString, getLength |
| Field Detail |
private static final long serialVersionUID
protected CS_CoordinateSystem crs
protected GM_Position[] points
| Constructor Detail |
protected GM_CurveSegment_Impl(GM_Position[] gmps,
CS_CoordinateSystem crs)
throws GM_Exception
gmps - crs -
GM_Exception| Method Detail |
public GM_Point getStartPoint()
null will be returned
getStartPoint in interface GM_GenericCurvepublic GM_Point getEndPoint()
null will be returned
getEndPoint in interface GM_GenericCurvepublic int getNumberOfPoints()
getNumberOfPoints in interface GM_CurveSegmentpublic GM_Position[] getPositions()
getPositions in interface GM_CurveSegmentpublic GM_Position getPositionAt(int index)
getPositionAt in interface GM_CurveSegmentpublic void reverse()
reverse in interface GM_CurveSegmentpublic CS_CoordinateSystem getCoordinateSystem()
getCoordinateSystem in interface GM_CurveSegmentpublic boolean equals(java.lang.Object other)
other - object to compare topublic boolean contains(GM_Object gmo)
contains in interface GM_CurveSegmentpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||