|
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.MultiSurfaceImpl
final class MultiSurfaceImpl
default implementation of the MultiSurface interface from
| 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 | |
|---|---|
MultiSurfaceImpl(CoordinateSystem crs)
Creates a new MultiSurfaceImpl object. |
|
MultiSurfaceImpl(Surface[] surface)
Creates a new MultiSurfaceImpl object. |
|
MultiSurfaceImpl(Surface[] surface,
CoordinateSystem crs)
Creates a new MultiSurfaceImpl object. |
|
| Method Summary | |
|---|---|
void |
addSurface(Surface gms)
adds an Surface to the aggregation |
protected void |
calculateParam()
calculates the centroid, area and envelope of the aggregation |
Object |
clone()
returns a shallow copy of the geometry |
Surface[] |
getAllSurfaces()
returns all Surfaces as array |
double |
getArea()
returns the area of the multi surface. this is calculate as the sum of all containing surface areas. |
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. |
int |
getDimension()
The operation "dimension" shall return the inherent dimension of this Geometry, which shall be less than or equal to the coordinate dimension. |
Surface |
getSurfaceAt(int index)
returns the Surface at the submitted index. |
void |
insertSurfaceAt(Surface gms,
int index)
inserts a Surface 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 gms equals null an exception will be thrown. |
Surface |
removeSurface(Surface gms)
removes the submitted Surface from the aggregation |
Surface |
removeSurfaceAt(int index)
removes the Surface at the submitted index from the aggregation. if index is larger then getSize() - 1 or smaller then 0 an exception will be thrown. |
void |
setSurfaceAt(Surface gms,
int index)
sets the submitted Surface 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 gms 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, removeAll, removeObject, removeObjectAt, setCoordinateSystem, setObjectAt, toString, translate |
| Methods inherited from class org.deegree.model.spatialschema.GeometryImpl |
|---|
contains, contains, difference, distance, getBoundary, 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, removeAll, removeObject, removeObjectAt, setObjectAt |
| Methods inherited from interface org.deegree.model.spatialschema.Geometry |
|---|
contains, contains, difference, distance, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, intersects, isEmpty, isWithinDistance, setTolerance, translate, union |
| Constructor Detail |
|---|
public MultiSurfaceImpl(CoordinateSystem crs)
crs - public MultiSurfaceImpl(Surface[] surface)
surface -
public MultiSurfaceImpl(Surface[] surface,
CoordinateSystem crs)
surface - crs - | Method Detail |
|---|
public void addSurface(Surface gms)
addSurface in interface MultiSurface
public void insertSurfaceAt(Surface gms,
int index)
throws GeometryException
insertSurfaceAt in interface MultiSurfacegms - Surface to insert.index - position where to insert the new Surface
GeometryException
public void setSurfaceAt(Surface gms,
int index)
throws GeometryException
index will be removed. if index is larger then getSize() - 1 or smaller then 0
or gms equals null an exception will be thrown.
setSurfaceAt in interface MultiSurfacegms - Surface to set.index - position where to set the new Surface
GeometryExceptionpublic Surface removeSurface(Surface gms)
removeSurface in interface MultiSurface
public Surface removeSurfaceAt(int index)
throws GeometryException
removeSurfaceAt in interface MultiSurfaceGeometryExceptionpublic Surface getSurfaceAt(int index)
getSurfaceAt in interface MultiSurfacepublic Surface[] getAllSurfaces()
getAllSurfaces in interface MultiSurfaceprotected void calculateParam()
calculateParam in class MultiPrimitiveImplpublic double getArea()
getArea in interface MultiSurfacepublic Object clone()
clone in class GeometryImplpublic int getDimension()
getDimension in interface GeometrygetDimension in class MultiPrimitiveImplpublic int getCoordinateDimension()
getCoordinateDimension in interface GeometrygetCoordinateDimension in class MultiPrimitiveImpl
|
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