|
||||||||||
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 listMethod Detail |
---|
public Geometry.GeometryType getGeometryType()
GeometricPrimitive
Geometry.GeometryType#PRIMITIVE_GEOMETRY
.
getGeometryType
in interface Geometry
getGeometryType
in interface GeometricPrimitive
Geometry.GeometryType#PRIMITIVE_GEOMETRY
public GeometricPrimitive.PrimitiveType getPrimitiveType()
Curve
GeometricPrimitive.PrimitiveType.Curve
.
getPrimitiveType
in interface Curve
getPrimitiveType
in interface GeometricPrimitive
GeometricPrimitive.PrimitiveType.Curve
public Curve.CurveType getCurveType()
CompositeCurve
Curve.CurveType#CompositeCurve
.
getCurveType
in interface CompositeCurve
getCurveType
in interface Curve
Curve.CurveType#CompositeCurve
public Pair<Point,Point> getBoundary()
Curve
getBoundary
in interface Curve
List
shall
be retrunedpublic java.util.List<CurveSegment> getCurveSegments()
Curve
getCurveSegments
in interface Curve
public Point getStartPoint()
Curve
getStartPoint
in interface Curve
public Point getEndPoint()
Curve
getEndPoint
in interface Curve
public Measure getLength(Unit requestedUnit)
getLength
in interface Curve
public boolean isClosed()
Curve
isClosed
in interface Curve
public int getCoordinateDimension()
Geometry
getCoordinateDimension
in interface Geometry
protected com.vividsolutions.jts.geom.MultiLineString buildJTSGeometry()
buildJTSGeometry
in class AbstractDefaultGeometry
public 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 LineStringSegment
s. In any other case it will fail.
getAsLineString
in interface Curve
public Points getControlPoints()
Curve
NOTE: This method is only safe to use when the curve is a LineString
or LinearRing
or it only
consists of LineStringSegment
s. 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 |