|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.geometry.standard.AbstractDefaultGeometry org.deegree.geometry.standard.primitive.DefaultTin
public class DefaultTin
Default implementation of Tin
.
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 | |
---|---|
DefaultTin(String id,
ICRS crs,
PrecisionModel pm,
List<List<LineStringSegment>> stopLines,
List<List<LineStringSegment>> breakLines,
Length maxLength,
Points controlPoints,
List<Triangle> patches)
Creates a new DefaultTin instance from the given parameters. |
|
DefaultTin(String id,
ICRS crs,
PrecisionModel pm,
List<Triangle> patches)
Creates a new DefaultTin instance from the given parameters. |
Method Summary | |
---|---|
Measure |
getArea(Unit requestedBaseUnit)
|
List<List<LineStringSegment>> |
getBreakLines()
Returns the break lines that must be respected by the triangulation. |
Point |
getCentroid()
Returns the centroid of the geometry. |
Points |
getControlPoints()
Returns the control points (vertices) of the triangles. |
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 . |
List<Points> |
getInteriorRingsCoordinates()
Convenience method for accessing the control points of the interior rings of a simple polygon surface. |
Measure |
getMaxLength(Unit requestedUnit)
Returns the maximum length of all triangle side. |
List<Triangle> |
getPatches()
Returns the patches that constitute this surface. |
Measure |
getPerimeter(Unit requestedUnit)
|
GeometricPrimitive.PrimitiveType |
getPrimitiveType()
Must always return GeometricPrimitive.PrimitiveType.Surface . |
List<List<LineStringSegment>> |
getStopLines()
Returns the stop lines that must be respected by the triangulation. |
Surface.SurfaceType |
getSurfaceType()
Must always return Surface.SurfaceType.Tin . |
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, isSFSCompliant, 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, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
Methods inherited from interface org.deegree.commons.tom.gml.GMLObject |
---|
getGMLProperties |
Constructor Detail |
---|
public DefaultTin(String id, ICRS crs, PrecisionModel pm, List<Triangle> patches)
DefaultTin
instance from the given parameters.
id
- identifier, may be nullcrs
- coordinate reference system, may be nullpm
- precision model, may be nullpatches
- the triangle that constitute the result of the triangulationpublic DefaultTin(String id, ICRS crs, PrecisionModel pm, List<List<LineStringSegment>> stopLines, List<List<LineStringSegment>> breakLines, Length maxLength, Points controlPoints, List<Triangle> patches)
DefaultTin
instance from the given parameters.
id
- identifier, may be nullcrs
- coordinate reference system, may be nullpm
- precision model, may be nullstopLines
- breakLines
- maxLength
- controlPoints
- patches
- the triangle that constitute the result of the triangulationMethod Detail |
---|
public int getCoordinateDimension()
Geometry
getCoordinateDimension
in interface Geometry
public Measure getArea(Unit requestedBaseUnit)
getArea
in interface Surface
public Point getCentroid()
Geometry
getCentroid
in interface Geometry
getCentroid
in class AbstractDefaultGeometry
Point
that is the centroid of this geometrypublic List<Triangle> getPatches()
TriangulatedSurface
getPatches
in interface Surface
getPatches
in interface TriangulatedSurface
public Measure getPerimeter(Unit requestedUnit)
getPerimeter
in interface Surface
public GeometricPrimitive.PrimitiveType getPrimitiveType()
Surface
GeometricPrimitive.PrimitiveType.Surface
.
getPrimitiveType
in interface GeometricPrimitive
getPrimitiveType
in interface Surface
GeometricPrimitive.PrimitiveType.Surface
public Surface.SurfaceType getSurfaceType()
Tin
Surface.SurfaceType.Tin
.
getSurfaceType
in interface Surface
getSurfaceType
in interface Tin
getSurfaceType
in interface TriangulatedSurface
Surface.SurfaceType.Tin
public Geometry.GeometryType getGeometryType()
GeometricPrimitive
Geometry.GeometryType#PRIMITIVE_GEOMETRY
.
getGeometryType
in interface Geometry
getGeometryType
in interface GeometricPrimitive
Geometry.GeometryType#PRIMITIVE_GEOMETRY
public List<List<LineStringSegment>> getStopLines()
Tin
getStopLines
in interface Tin
public List<List<LineStringSegment>> getBreakLines()
Tin
getBreakLines
in interface Tin
public Measure getMaxLength(Unit requestedUnit)
Tin
getMaxLength
in interface Tin
requestedUnit
- units-of-measure that the length shall be expressed as, or null for units of the underlying coordinate
system
public Points getControlPoints()
Tin
getControlPoints
in interface Tin
public Points getExteriorRingCoordinates()
Surface
NOTE: 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 Surface
public List<Points> getInteriorRingsCoordinates()
Surface
NOTE: 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 |