|
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.AggregateImpl
org.deegree.model.spatialschema.MultiPrimitiveImpl
org.deegree.model.spatialschema.MultiCurveImpl
final class MultiCurveImpl
default implementation of the MultiCurve interface from package jago.model. ------------------------------------------------------------
| Field Summary |
|---|
| Fields inherited from class org.deegree.model.spatialschema.AggregateImpl |
|---|
aggregate |
| Fields inherited from class org.deegree.model.spatialschema.GeometryImpl |
|---|
boundary, centroid, convexHull, crs, empty, envelope, mute, valid |
| Constructor Summary | |
|---|---|
MultiCurveImpl(CoordinateSystem crs)
Creates a new MultiCurveImpl object. |
|
MultiCurveImpl(Curve[] gmc)
Creates a new MultiCurveImpl object. |
|
MultiCurveImpl(Curve[] gmc,
CoordinateSystem crs)
Creates a new MultiCurveImpl object. |
|
| Method Summary | |
|---|---|
void |
addCurve(Curve gmc)
adds a Curve to the aggregation |
protected void |
calculateCentroid()
calculates the centroid of the aggregation |
protected void |
calculateEnvelope()
calculates the bounding box / envelope of the aggregation |
protected void |
calculateParam()
calculates the centroid and envelope of the aggregation |
Object |
clone()
returns a shallow copy of the geometry |
Curve[] |
getAllCurves()
returns all Curves as array |
Boundary |
getBoundary()
returns the boundary of the MultiCurve not implemented yet |
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. |
Curve |
getCurveAt(int index)
returns the Curve at the submitted index. |
int |
getDimension()
The operation "dimension" shall return the inherent dimension of this Geometry, which shall be less than or equal to the coordinate dimension. |
void |
insertCurveAt(Curve gmc,
int index)
inserts a Curve in the aggregation. all elements with an index equal or larger index will be moved. if index is larger then getSize() - 1 or smaller then 0 or gmc equals null an exception will be thrown. |
boolean |
isMember(Curve gmc)
returns true if the submitted Curve is within the aggregation |
void |
removeAll()
removes all Curve from the aggregation. |
Curve |
removeCurve(Curve gmc)
removes the submitted Curve from the aggregation |
Curve |
removeCurveAt(int index)
removes the Curve at the submitted index from the aggregation. if index is larger then getSize() - 1 or smaller then 0 an exception will be thrown. |
void |
setCurveAt(Curve gmc,
int index)
sets the submitted Curve at the submitted index. the element at the position index will be removed. if index is larger then getSize() - 1 or smaller then 0
or gmc equals null an exception will be thrown. |
| Methods inherited from class org.deegree.model.spatialschema.MultiPrimitiveImpl |
|---|
getAllPrimitives, getPrimitiveAt, merge |
| Methods inherited from class org.deegree.model.spatialschema.AggregateImpl |
|---|
add, equals, getAll, getIterator, getObjectAt, getSize, insertObjectAt, intersects, isEmpty, isMember, removeObject, removeObjectAt, setCoordinateSystem, setObjectAt, toString, translate |
| Methods inherited from class org.deegree.model.spatialschema.GeometryImpl |
|---|
contains, contains, difference, distance, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isValid, isWithinDistance, 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.MultiPrimitive |
|---|
getAllPrimitives, getPrimitiveAt |
| Methods inherited from interface org.deegree.model.spatialschema.Aggregate |
|---|
add, getAll, getIterator, getObjectAt, getSize, insertObjectAt, isMember, merge, removeObject, removeObjectAt, setObjectAt |
| Methods inherited from interface org.deegree.model.spatialschema.Geometry |
|---|
contains, contains, difference, distance, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, intersects, isEmpty, isWithinDistance, setTolerance, translate, union |
| Constructor Detail |
|---|
public MultiCurveImpl(CoordinateSystem crs)
crs - public MultiCurveImpl(Curve[] gmc)
gmc -
public MultiCurveImpl(Curve[] gmc,
CoordinateSystem crs)
gmc - crs - | Method Detail |
|---|
public void addCurve(Curve gmc)
addCurve in interface MultiCurve
public void insertCurveAt(Curve gmc,
int index)
throws GeometryException
insertCurveAt in interface MultiCurvegmc - Curve to insert.index - position where to insert the new Curve
GeometryException
public void setCurveAt(Curve gmc,
int index)
throws GeometryException
index will be removed. if index is larger then getSize() - 1 or smaller then 0
or gmc equals null an exception will be thrown.
setCurveAt in interface MultiCurvegmc - Curve to set.index - position where to set the new Curve
GeometryExceptionpublic Curve removeCurve(Curve gmc)
removeCurve in interface MultiCurve
public Curve removeCurveAt(int index)
throws GeometryException
removeCurveAt in interface MultiCurveGeometryExceptionpublic void removeAll()
removeAll in interface AggregateremoveAll in class AggregateImplpublic Curve getCurveAt(int index)
getCurveAt in interface MultiCurvepublic Curve[] getAllCurves()
getAllCurves in interface MultiCurvepublic boolean isMember(Curve gmc)
public Boundary getBoundary()
not implemented yet
getBoundary in interface GeometrygetBoundary in class GeometryImplprotected void calculateEnvelope()
protected void calculateCentroid()
protected void calculateParam()
calculateParam in class MultiPrimitiveImplpublic int getDimension()
getDimension in interface GeometrygetDimension in class MultiPrimitiveImplpublic int getCoordinateDimension()
getCoordinateDimension in interface GeometrygetCoordinateDimension in class MultiPrimitiveImplpublic Object clone()
clone 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