deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.geometry.standard.surfacepatches
Class DefaultSphere

java.lang.Object
  extended by org.deegree.geometry.standard.surfacepatches.DefaultSphere
All Implemented Interfaces:
GriddedSurfacePatch, Sphere, SurfacePatch

public class DefaultSphere
extends Object
implements Sphere

TODO add class documentation here.

Version:
$Revision: $, $Date: $
Author:
Andrei Ionita, last edited by: $Author: ionita $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.patches.GriddedSurfacePatch
GriddedSurfacePatch.GriddedSurfaceType
 
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.patches.SurfacePatch
SurfacePatch.SurfacePatchType
 
Constructor Summary
DefaultSphere(List<Points> grid)
           
DefaultSphere(List<Points> grid, int rows, int columns)
           
 
Method Summary
 Measure getArea(Unit requestedBaseUnit)
          Returns the area covered by the patch.
 int getCoordinateDimension()
          Returns the coordinate dimension, i.e. the dimension of the space that the patch is embedded in.
 GriddedSurfacePatch.GriddedSurfaceType getGriddedSurfaceType()
          Must always return GriddedSurfacePatch.GriddedSurfaceType.SPHERE.
 int getNumColumns()
          Returns the number of columns in the parameter grid.
 int getNumRows()
          Returns the number of rows in the parameter grid.
 Points getRow(int rownum)
          Returns the specified row of the parameter grid.
 List<Points> getRows()
          Returns all rows of the parameter grid.
 SurfacePatch.SurfacePatchType getSurfacePatchType()
          Returns the type of surface patch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSphere

public DefaultSphere(List<Points> grid)

DefaultSphere

public DefaultSphere(List<Points> grid,
                     int rows,
                     int columns)
Method Detail

getGriddedSurfaceType

public GriddedSurfacePatch.GriddedSurfaceType getGriddedSurfaceType()
Description copied from interface: Sphere
Must always return GriddedSurfacePatch.GriddedSurfaceType.SPHERE.

Specified by:
getGriddedSurfaceType in interface GriddedSurfacePatch
Specified by:
getGriddedSurfaceType in interface Sphere
Returns:
GriddedSurfacePatch.GriddedSurfaceType.SPHERE

getNumColumns

public int getNumColumns()
Description copied from interface: GriddedSurfacePatch
Returns the number of columns in the parameter grid.

Specified by:
getNumColumns in interface GriddedSurfacePatch
Returns:
the number of columns

getNumRows

public int getNumRows()
Description copied from interface: GriddedSurfacePatch
Returns the number of rows in the parameter grid.

Specified by:
getNumRows in interface GriddedSurfacePatch
Returns:
the number of rows

getRow

public Points getRow(int rownum)
Description copied from interface: GriddedSurfacePatch
Returns the specified row of the parameter grid.

Specified by:
getRow in interface GriddedSurfacePatch
Parameters:
rownum - row to be returned
Returns:
the specified row

getRows

public List<Points> getRows()
Description copied from interface: GriddedSurfacePatch
Returns all rows of the parameter grid.

Specified by:
getRows in interface GriddedSurfacePatch
Returns:
all rows

getArea

public Measure getArea(Unit requestedBaseUnit)
Description copied from interface: SurfacePatch
Returns the area covered by the patch.

Specified by:
getArea in interface SurfacePatch
Returns:
area covered by the patch in the requested uom

getCoordinateDimension

public int getCoordinateDimension()
Description copied from interface: SurfacePatch
Returns the coordinate dimension, i.e. the dimension of the space that the patch is embedded in.

Specified by:
getCoordinateDimension in interface SurfacePatch
Returns:
the coordinate dimension

getSurfacePatchType

public SurfacePatch.SurfacePatchType getSurfacePatchType()
Description copied from interface: SurfacePatch
Returns the type of surface patch.

Specified by:
getSurfacePatchType in interface SurfacePatch
Returns:
the type of surface patch

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>