|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.shape.GeometricShapeBuilder
com.vividsolutions.jts.shape.random.RandomPointsInGridBuilder
public class RandomPointsInGridBuilder
Creates random point sets where the points are constrained to lie in the cells of a grid.
Field Summary |
---|
Fields inherited from class com.vividsolutions.jts.shape.GeometricShapeBuilder |
---|
extent, geomFactory, numPts |
Constructor Summary | |
---|---|
RandomPointsInGridBuilder()
Create a builder which will create shapes using the default GeometryFactory . |
|
RandomPointsInGridBuilder(GeometryFactory geomFact)
Create a builder which will create shapes using the given GeometryFactory . |
Method Summary | |
---|---|
Geometry |
getGeometry()
Gets the MultiPoint containing the generated point |
void |
setConstrainedToCircle(boolean isConstrainedToCircle)
Sets whether generated points are constrained to lie within a circle contained within each grid cell. |
void |
setGutterFraction(double gutterFraction)
Sets the fraction of the grid cell side which will be treated as a gutter, in which no points will be created. |
Methods inherited from class com.vividsolutions.jts.shape.GeometricShapeBuilder |
---|
createCoord, getCentre, getDiameter, getExtent, getRadius, getSquareBaseLine, getSquareExtent, setExtent, setNumPoints |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomPointsInGridBuilder()
GeometryFactory
.
public RandomPointsInGridBuilder(GeometryFactory geomFact)
GeometryFactory
.
geomFact
- the factory to useMethod Detail |
---|
public void setConstrainedToCircle(boolean isConstrainedToCircle)
The default is to not be constrained to a circle.
isConstrainedToCircle
- public void setGutterFraction(double gutterFraction)
gutterFraction
- public Geometry getGeometry()
MultiPoint
containing the generated point
getGeometry
in class GeometricShapeBuilder
|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |