org.deegree.geometry.standard.surfacepatches
Class DefaultCylinder

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

public class DefaultCylinder
extends Object
implements Cylinder

TODO add class documentation here.

Version:
$Revision: 31641 $, $Date: 2011-08-24 21:24:55 +0200 (Wed, 24 Aug 2011) $
Author:
Andrei Ionita, last edited by: $Author: mschneider $

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
DefaultCylinder(List<Points> grid)
           
DefaultCylinder(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.CYLINDER.
 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

DefaultCylinder

public DefaultCylinder(List<Points> grid)

DefaultCylinder

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

getGriddedSurfaceType

public GriddedSurfacePatch.GriddedSurfaceType getGriddedSurfaceType()
Description copied from interface: Cylinder
Must always return GriddedSurfacePatch.GriddedSurfaceType.CYLINDER.

Specified by:
getGriddedSurfaceType in interface Cylinder
Specified by:
getGriddedSurfaceType in interface GriddedSurfacePatch
Returns:
GriddedSurfacePatch.GriddedSurfaceType.CYLINDER

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


Copyright © 2011. All Rights Reserved.