|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdelaunay.delaunay.geometries.Element
org.jdelaunay.delaunay.geometries.ConstraintPolygon
public final class ConstraintPolygon
Delaunay Package.
| Field Summary |
|---|
| Fields inherited from class org.jdelaunay.delaunay.geometries.Element |
|---|
WEIGHTED_PROPERTIES |
| Constructor Summary | |
|---|---|
ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon)
Generate a polygon. |
|
ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon,
boolean isEmpty)
Generate a polygon. |
|
ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon,
int property)
Generate a polygon with property. |
|
ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon,
int property,
boolean usePolygonZ)
Generate a polygon with property. |
|
ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon,
int property,
boolean usePolygonZ,
boolean isEmpty)
Generate a polygon with property. |
|
| Method Summary | |
|---|---|
boolean |
contains(com.vividsolutions.jts.geom.Coordinate coordinate)
check if this polygon contain the point given in argument. |
boolean |
contains(DEdge anEdge)
|
boolean |
contains(DPoint aPoint)
Check if this polygon contain the point given in argument. |
BoundaryBox |
getBoundingBox()
Get the minimum boundary of this element. |
List<DEdge> |
getEdges()
Get the edges structure. |
List<DPoint> |
getPoints()
Get points. |
com.vividsolutions.jts.geom.Polygon |
getPolygon()
|
DTriangle |
getRefTriangle()
|
boolean |
isEmpty()
|
boolean |
isIntersect(DEdge anEdge)
|
boolean |
isUsePolygonZ()
|
void |
setEmpty(boolean isEmpty)
True, if we remove triangle who are inside the polygon. |
void |
setRefTriangle(DTriangle refTriangle)
Set the reference triangle. |
| Methods inherited from class org.jdelaunay.delaunay.geometries.Element |
|---|
addProperty, getExternalGID, getGID, getHeight, getMaxWeight, getProperty, hasProperty, removeProperties, setExternalGID, setGID, setHeight, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon)
throws DelaunayError
polygon -
DelaunayError
public ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon,
boolean isEmpty)
throws DelaunayError
polygon - isEmpty - True, if we remove triangle who are inside the polygon.
DelaunayError
public ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon,
int property)
throws DelaunayError
polygon - property -
DelaunayError
public ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon,
int property,
boolean usePolygonZ)
throws DelaunayError
polygon - property - usePolygonZ - -
True, if we set Z coordinate of polygon to new point else set an average of polygon and mesh Z coordinate.
DelaunayError
public ConstraintPolygon(com.vividsolutions.jts.geom.Polygon polygon,
int property,
boolean usePolygonZ,
boolean isEmpty)
throws DelaunayError
polygon - property - usePolygonZ - True, if we set Z coordinate of polygon to new point else set an average of polygon and mesh Z coordinate.isEmpty - True, if we remove triangle who are inside the polygon.
DelaunayError| Method Detail |
|---|
public boolean isUsePolygonZ()
public boolean isEmpty()
public void setEmpty(boolean isEmpty)
isEmpty - public DTriangle getRefTriangle()
public void setRefTriangle(DTriangle refTriangle)
refTriangle - public com.vividsolutions.jts.geom.Polygon getPolygon()
public List<DEdge> getEdges()
public List<DPoint> getPoints()
throws DelaunayError
DelaunayErrorpublic BoundaryBox getBoundingBox()
getBoundingBox in class Elementpublic boolean contains(DPoint aPoint)
contains in class ElementaPoint -
public boolean contains(DEdge anEdge)
throws DelaunayError
DelaunayError
public boolean contains(com.vividsolutions.jts.geom.Coordinate coordinate)
throws DelaunayError
contains in class Elementcoordinate -
DelaunayError
public boolean isIntersect(DEdge anEdge)
throws DelaunayError
anEdge -
DelaunayError
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||