|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(String id,
ICRS crs,
PrecisionModel pm,
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(Collection<? extends Curve> c)
|
|
boolean |
addAll(int index,
Collection<? extends Curve> c)
|
|
protected com.vividsolutions.jts.geom.MultiLineString |
buildJTSGeometry()
|
|
void |
clear()
|
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(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. |
|
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(Object o)
|
|
boolean |
isClosed()
Returns whether the curve forms a closed loop. |
|
boolean |
isEmpty()
|
|
Iterator<Curve> |
iterator()
|
|
int |
lastIndexOf(Object o)
|
|
ListIterator<Curve> |
listIterator()
|
|
ListIterator<Curve> |
listIterator(int index)
|
|
Curve |
remove(int index)
|
|
boolean |
remove(Object o)
|
|
boolean |
removeAll(Collection<?> c)
|
|
boolean |
retainAll(Collection<?> c)
|
|
Curve |
set(int index,
Curve element)
|
|
int |
size()
|
|
List<Curve> |
subList(int fromIndex,
int toIndex)
|
|
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, isSFSCompliant, 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, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
Methods inherited from interface org.deegree.commons.tom.gml.GMLObject |
---|
getGMLProperties |
Methods inherited from interface java.util.List |
---|
equals, hashCode |
Constructor Detail |
---|
public DefaultCompositeCurve(String id, ICRS crs, PrecisionModel pm, 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 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 Collection<Curve>
add
in interface List<Curve>
public void add(int index, Curve element)
add
in interface List<Curve>
public boolean addAll(Collection<? extends Curve> c)
addAll
in interface Collection<Curve>
addAll
in interface List<Curve>
public boolean addAll(int index, Collection<? extends Curve> c)
addAll
in interface List<Curve>
public void clear()
clear
in interface Collection<Curve>
clear
in interface List<Curve>
public boolean contains(Object o)
contains
in interface Collection<Curve>
contains
in interface List<Curve>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<Curve>
containsAll
in interface List<Curve>
public Curve get(int index)
get
in interface List<Curve>
public int indexOf(Object o)
indexOf
in interface List<Curve>
public boolean isEmpty()
isEmpty
in interface Collection<Curve>
isEmpty
in interface List<Curve>
public Iterator<Curve> iterator()
iterator
in interface Iterable<Curve>
iterator
in interface Collection<Curve>
iterator
in interface List<Curve>
public int lastIndexOf(Object o)
lastIndexOf
in interface List<Curve>
public ListIterator<Curve> listIterator()
listIterator
in interface List<Curve>
public ListIterator<Curve> listIterator(int index)
listIterator
in interface List<Curve>
public Curve remove(int index)
remove
in interface List<Curve>
public boolean remove(Object o)
remove
in interface Collection<Curve>
remove
in interface List<Curve>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<Curve>
removeAll
in interface List<Curve>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<Curve>
retainAll
in interface List<Curve>
public Curve set(int index, Curve element)
set
in interface List<Curve>
public int size()
size
in interface Collection<Curve>
size
in interface List<Curve>
public List<Curve> subList(int fromIndex, int toIndex)
subList
in interface List<Curve>
public Object[] toArray()
toArray
in interface Collection<Curve>
toArray
in interface List<Curve>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<Curve>
toArray
in interface 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 |