|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.geometry.standard.AbstractDefaultGeometry
org.deegree.geometry.standard.primitive.DefaultTriangulatedSurface
public class DefaultTriangulatedSurface
Default implementation of TriangulatedSurface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.Surface |
|---|
Surface.SurfaceType |
| Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.GeometricPrimitive |
|---|
GeometricPrimitive.PrimitiveType |
| Nested classes/interfaces inherited from interface org.deegree.geometry.Geometry |
|---|
Geometry.GeometryType |
| Field Summary |
|---|
| Fields inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
|---|
crs, env, id, jtsFactory, jtsGeometry, pm |
| Constructor Summary | |
|---|---|
DefaultTriangulatedSurface(java.lang.String id,
CRS crs,
PrecisionModel pm,
java.util.List<Triangle> patches)
Creates a new DefaultTriangulatedSurface instance from the given parameters. |
|
| Method Summary | |
|---|---|
Measure |
getArea(Unit requestedBaseUnit)
|
Point |
getCentroid()
Returns the centroid of the geometry. |
int |
getCoordinateDimension()
Returns the coordinate dimension, i.e. the dimension of the space that the geometry is embedded in. |
Points |
getExteriorRingCoordinates()
Convenience method for accessing the control points of the exterior ring of a simple polygon surface. |
Geometry.GeometryType |
getGeometryType()
Must always return Geometry.GeometryType#PRIMITIVE_GEOMETRY. |
java.util.List<Points> |
getInteriorRingsCoordinates()
Convenience method for accessing the control points of the interior rings of a simple polygon surface. |
java.util.List<Triangle> |
getPatches()
Returns the patches that constitute this surface. |
Measure |
getPerimeter(Unit requestedUnit)
|
GeometricPrimitive.PrimitiveType |
getPrimitiveType()
Must always return GeometricPrimitive.PrimitiveType.Surface. |
Surface.SurfaceType |
getSurfaceType()
Must always return Surface.SurfaceType.TriangulatedSurface. |
| Methods inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
|---|
buildJTSGeometry, contains, createFromJTS, crosses, equals, getAsDefaultGeometry, getBuffer, getConvexHull, getCoordinateSystem, getDifference, getDistance, getEnvelope, getGMLProperties, getId, getIntersection, getJTSGeometry, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, toString, touches |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deegree.geometry.Geometry |
|---|
contains, crosses, equals, getBuffer, getConvexHull, getCoordinateSystem, getDifference, getDistance, getEnvelope, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
| Methods inherited from interface org.deegree.gml.GMLObject |
|---|
getGMLProperties |
| Constructor Detail |
|---|
public DefaultTriangulatedSurface(java.lang.String id,
CRS crs,
PrecisionModel pm,
java.util.List<Triangle> patches)
DefaultTriangulatedSurface instance from the given parameters.
id - identifier, may be nullcrs - coordinate reference system, may be nullpm - precision model, may be nullpatches - patches that constitute the surface| Method Detail |
|---|
public int getCoordinateDimension()
Geometry
getCoordinateDimension in interface Geometrypublic Measure getArea(Unit requestedBaseUnit)
getArea in interface Surfacepublic Point getCentroid()
Geometry
getCentroid in interface GeometrygetCentroid in class AbstractDefaultGeometryPoint that is the centroid of this geometrypublic java.util.List<Triangle> getPatches()
TriangulatedSurface
getPatches in interface SurfacegetPatches in interface TriangulatedSurfacepublic Measure getPerimeter(Unit requestedUnit)
getPerimeter in interface Surfacepublic GeometricPrimitive.PrimitiveType getPrimitiveType()
SurfaceGeometricPrimitive.PrimitiveType.Surface.
getPrimitiveType in interface GeometricPrimitivegetPrimitiveType in interface SurfaceGeometricPrimitive.PrimitiveType.Surfacepublic Surface.SurfaceType getSurfaceType()
TriangulatedSurfaceSurface.SurfaceType.TriangulatedSurface.
getSurfaceType in interface SurfacegetSurfaceType in interface TriangulatedSurfaceSurface.SurfaceType.TriangulatedSurfacepublic Geometry.GeometryType getGeometryType()
GeometricPrimitiveGeometry.GeometryType#PRIMITIVE_GEOMETRY.
getGeometryType in interface GeometrygetGeometryType in interface GeometricPrimitiveGeometry.GeometryType#PRIMITIVE_GEOMETRYpublic Points getExteriorRingCoordinates()
SurfaceNOTE: This method is only safe to use when the surface consists of a single planar patch that has a linear interpolated exterior ring.
getExteriorRingCoordinates in interface Surfacepublic java.util.List<Points> getInteriorRingsCoordinates()
SurfaceNOTE: This method is only safe to use when the surface consists of a single planar patch that has linear interpolated interior rings.
getInteriorRingsCoordinates in interface Surface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||