org.deegree.geometry.standard.surfacepatches
Class DefaultCone

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

public class DefaultCone
extends Object
implements Cone

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
DefaultCone(List<Points> grid)
           
DefaultCone(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.CONE.
 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

DefaultCone

public DefaultCone(List<Points> grid)

DefaultCone

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

getGriddedSurfaceType

public GriddedSurfacePatch.GriddedSurfaceType getGriddedSurfaceType()
Description copied from interface: Cone
Must always return GriddedSurfacePatch.GriddedSurfaceType.CONE.

Specified by:
getGriddedSurfaceType in interface Cone
Specified by:
getGriddedSurfaceType in interface GriddedSurfacePatch
Returns:
GriddedSurfacePatch.GriddedSurfaceType.CONE

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

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

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


Copyright © 2011. All Rights Reserved.