|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.geometry.standard.AbstractDefaultGeometry
org.deegree.geometry.standard.composite.DefaultCompositeCurve
public class DefaultCompositeCurve
Default implementation of CompositeCurve.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.Curve |
|---|
Curve.CurveType |
| Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.GeometricPrimitive |
|---|
GeometricPrimitive.PrimitiveType |
| Nested classes/interfaces inherited from interface org.deegree.geometry.Geometry |
|---|
Geometry.GeometryType |
| Field Summary |
|---|
| Fields inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
|---|
crs, env, id, jtsFactory, jtsGeometry, pm |
| Constructor Summary | |
|---|---|
DefaultCompositeCurve(java.lang.String id,
CRS crs,
PrecisionModel pm,
java.util.List<Curve> memberCurves)
Creates a new DefaultCompositeCurve from the given parameters. |
|
| Method Summary | ||
|---|---|---|
boolean |
add(Curve e)
|
|
void |
add(int index,
Curve element)
|
|
boolean |
addAll(java.util.Collection<? extends Curve> c)
|
|
boolean |
addAll(int index,
java.util.Collection<? extends Curve> c)
|
|
protected com.vividsolutions.jts.geom.MultiLineString |
buildJTSGeometry()
|
|
void |
clear()
|
|
boolean |
contains(java.lang.Object o)
|
|
boolean |
containsAll(java.util.Collection<?> c)
|
|
Curve |
get(int index)
|
|
LineString |
getAsLineString()
Returns a linear interpolated representation of the curve. |
|
Pair<Point,Point> |
getBoundary()
The boundary of a curve is the set of points at either end of the curve. |
|
Points |
getControlPoints()
Convenience method for accessing the control points of linear interpolated curves. |
|
int |
getCoordinateDimension()
Returns the coordinate dimension, i.e. the dimension of the space that the geometry is embedded in. |
|
java.util.List<CurveSegment> |
getCurveSegments()
Returns the segments that constitute this curve. |
|
Curve.CurveType |
getCurveType()
Must always return Curve.CurveType#CompositeCurve. |
|
Point |
getEndPoint()
Returns the end point of the curve. |
|
Geometry.GeometryType |
getGeometryType()
Must always return Geometry.GeometryType#PRIMITIVE_GEOMETRY. |
|
Measure |
getLength(Unit requestedUnit)
|
|
GeometricPrimitive.PrimitiveType |
getPrimitiveType()
Must always return GeometricPrimitive.PrimitiveType.Curve. |
|
Point |
getStartPoint()
Returns the start point of the curve. |
|
int |
indexOf(java.lang.Object o)
|
|
boolean |
isClosed()
Returns whether the curve forms a closed loop. |
|
boolean |
isEmpty()
|
|
java.util.Iterator<Curve> |
iterator()
|
|
int |
lastIndexOf(java.lang.Object o)
|
|
java.util.ListIterator<Curve> |
listIterator()
|
|
java.util.ListIterator<Curve> |
listIterator(int index)
|
|
Curve |
remove(int index)
|
|
boolean |
remove(java.lang.Object o)
|
|
boolean |
removeAll(java.util.Collection<?> c)
|
|
boolean |
retainAll(java.util.Collection<?> c)
|
|
Curve |
set(int index,
Curve element)
|
|
int |
size()
|
|
java.util.List<Curve> |
subList(int fromIndex,
int toIndex)
|
|
java.lang.Object[] |
toArray()
|
|
|
toArray(T[] a)
|
|
| Methods inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
|---|
contains, createFromJTS, crosses, equals, getAsDefaultGeometry, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getDifference, getDistance, getEnvelope, getGMLProperties, getId, getIntersection, getJTSGeometry, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, toString, touches |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deegree.geometry.Geometry |
|---|
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getDifference, getDistance, getEnvelope, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
| Methods inherited from interface org.deegree.gml.GMLObject |
|---|
getGMLProperties |
| Methods inherited from interface java.util.List |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public DefaultCompositeCurve(java.lang.String id,
CRS crs,
PrecisionModel pm,
java.util.List<Curve> memberCurves)
DefaultCompositeCurve from the given parameters.
id - identifier, may be nullcrs - coordinate reference system, may be nullpm - precision model, may be nullmemberCurves - curves that constitute the composited curve, each curve must end at the start point of the subsequent
curve in the list| Method Detail |
|---|
public Geometry.GeometryType getGeometryType()
GeometricPrimitiveGeometry.GeometryType#PRIMITIVE_GEOMETRY.
getGeometryType in interface GeometrygetGeometryType in interface GeometricPrimitiveGeometry.GeometryType#PRIMITIVE_GEOMETRYpublic GeometricPrimitive.PrimitiveType getPrimitiveType()
CurveGeometricPrimitive.PrimitiveType.Curve.
getPrimitiveType in interface CurvegetPrimitiveType in interface GeometricPrimitiveGeometricPrimitive.PrimitiveType.Curvepublic Curve.CurveType getCurveType()
CompositeCurveCurve.CurveType#CompositeCurve.
getCurveType in interface CompositeCurvegetCurveType in interface CurveCurve.CurveType#CompositeCurvepublic Pair<Point,Point> getBoundary()
Curve
getBoundary in interface CurveList shall
be retrunedpublic java.util.List<CurveSegment> getCurveSegments()
Curve
getCurveSegments in interface Curvepublic Point getStartPoint()
Curve
getStartPoint in interface Curvepublic Point getEndPoint()
Curve
getEndPoint in interface Curvepublic Measure getLength(Unit requestedUnit)
getLength in interface Curvepublic boolean isClosed()
Curve
isClosed in interface Curvepublic int getCoordinateDimension()
Geometry
getCoordinateDimension in interface Geometryprotected com.vividsolutions.jts.geom.MultiLineString buildJTSGeometry()
buildJTSGeometry in class AbstractDefaultGeometrypublic boolean add(Curve e)
add in interface java.util.Collection<Curve>add in interface java.util.List<Curve>
public void add(int index,
Curve element)
add in interface java.util.List<Curve>public boolean addAll(java.util.Collection<? extends Curve> c)
addAll in interface java.util.Collection<Curve>addAll in interface java.util.List<Curve>
public boolean addAll(int index,
java.util.Collection<? extends Curve> c)
addAll in interface java.util.List<Curve>public void clear()
clear in interface java.util.Collection<Curve>clear in interface java.util.List<Curve>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<Curve>contains in interface java.util.List<Curve>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<Curve>containsAll in interface java.util.List<Curve>public Curve get(int index)
get in interface java.util.List<Curve>public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<Curve>public boolean isEmpty()
isEmpty in interface java.util.Collection<Curve>isEmpty in interface java.util.List<Curve>public java.util.Iterator<Curve> iterator()
iterator in interface java.lang.Iterable<Curve>iterator in interface java.util.Collection<Curve>iterator in interface java.util.List<Curve>public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<Curve>public java.util.ListIterator<Curve> listIterator()
listIterator in interface java.util.List<Curve>public java.util.ListIterator<Curve> listIterator(int index)
listIterator in interface java.util.List<Curve>public Curve remove(int index)
remove in interface java.util.List<Curve>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<Curve>remove in interface java.util.List<Curve>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<Curve>removeAll in interface java.util.List<Curve>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<Curve>retainAll in interface java.util.List<Curve>
public Curve set(int index,
Curve element)
set in interface java.util.List<Curve>public int size()
size in interface java.util.Collection<Curve>size in interface java.util.List<Curve>
public java.util.List<Curve> subList(int fromIndex,
int toIndex)
subList in interface java.util.List<Curve>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<Curve>toArray in interface java.util.List<Curve>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<Curve>toArray in interface java.util.List<Curve>public LineString getAsLineString()
Curve
NOTE: This method is only safe to use when the curve is a LineString or LinearRing or it only
consists of LineStringSegments. In any other case it will fail.
getAsLineString in interface Curvepublic Points getControlPoints()
Curve
NOTE: This method is only safe to use when the curve is a LineString or LinearRing or it only
consists of LineStringSegments. In any other case it will fail.
getControlPoints in interface Curve
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||