org.deegree.model.geometry
Interface GM_Surface

All Superinterfaces:
GM_GenericSurface, GM_Object, GM_OrientablePrimitive, GM_OrientableSurface, GM_Primitive
All Known Implementing Classes:
GM_Surface_Impl

public interface GM_Surface
extends GM_OrientableSurface, GM_GenericSurface

Defining the surface geometry of the iso geometry model. a surface is made of 1..n surface patches. for convention it is defined that GM_Surface is a closed geometry. that means each surface patch a surface is made of must touch at least one other surface patch if a surface is made of more then one surface patch

-----------------------------------------------------

Version:
$Revision: 1.1.1.1 $ $Date: 2002/09/25 16:01:48 $

Author:
Andreas Poth

Method Summary
 void addSurfacePatch(GM_SurfacePatch segment)
          adds a surface patch at the end of the curve
 void deleteSurfacePatchAt(int index)
          deletes the surface patch at the submitted index
 int getNumberOfSurfacePatches()
          returns the number of patches building the surface
 GM_SurfacePatch getSurfacePatchAt(int index)
          returns the surface patch at the submitted index
 void insertSurfacePatchAt(GM_SurfacePatch segment, int index)
          inserts a surface patch in the curve at the submitted position. all points with a position that equals index or is higher will be shifted
 void setSurfacePatchAt(GM_SurfacePatch segment, int index)
          writes a surface patch to the surface at submitted position. the old patch will be deleted
 
Methods inherited from interface org.deegree.model.geometry.GM_OrientableSurface
getSurfaceBoundary
 
Methods inherited from interface org.deegree.model.geometry.GM_OrientablePrimitive
getOrientation, setOrientation
 
Methods inherited from interface org.deegree.model.geometry.GM_Object
contains, contains, difference, distance, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDimension, getEnvelope, intersection, intersects, isEmpty, isWithinDistance, translate, union
 
Methods inherited from interface org.deegree.model.geometry.GM_GenericSurface
getArea, getEnvelope, getPerimeter
 

Method Detail

getNumberOfSurfacePatches

public int getNumberOfSurfacePatches()
returns the number of patches building the surface


getSurfacePatchAt

public GM_SurfacePatch getSurfacePatchAt(int index)
                                  throws GM_Exception
returns the surface patch at the submitted index

Throws:
GM_Exception

setSurfacePatchAt

public void setSurfacePatchAt(GM_SurfacePatch segment,
                              int index)
                       throws GM_Exception
writes a surface patch to the surface at submitted position. the old patch will be deleted

Throws:
GM_Exception

insertSurfacePatchAt

public void insertSurfacePatchAt(GM_SurfacePatch segment,
                                 int index)
                          throws GM_Exception
inserts a surface patch in the curve at the submitted position. all points with a position that equals index or is higher will be shifted

Throws:
GM_Exception

addSurfacePatch

public void addSurfacePatch(GM_SurfacePatch segment)
adds a surface patch at the end of the curve


deleteSurfacePatchAt

public void deleteSurfacePatchAt(int index)
                          throws GM_Exception
deletes the surface patch at the submitted index

Throws:
GM_Exception