public abstract class AbstractSpline extends AbstractCurve
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractSpline.SplineIterator |
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus| Modifier and Type | Field and Description |
|---|---|
protected PointJTS |
anyVertex |
protected ArrayListCoordinateSequence |
coordinates |
protected static double |
SUBSEGMENTS |
LOGGERBEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, JOIN_STYLE_BEVEL, JOIN_STYLE_MITRE, JOIN_STYLE_ROUND, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W| Constructor and Description |
|---|
AbstractSpline(int type,
int subtype) |
AbstractSpline(int type,
int subtype,
Coordinate[] coordinates,
PointJTS aVertex) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMoveToVertex(Point point)
Adds a vertex (or direct position) to the curve
|
OrientablePrimitive |
addVertex(Point point)
Adds a vertex (or direct position) to the curve
|
boolean |
canBeReprojected(ICoordTrans ct)
Return true if the geometry can be reprojected by the coordinate
transformation
|
boolean |
canBeTransformed(java.awt.geom.AffineTransform at)
Return true if the geometry can be transformed by the affine transform
|
protected ArrayListCoordinateSequence |
cloneCoordinates() |
void |
closePrimitive()
Closes the geometry
|
OrientablePrimitive |
ensureCapacity(int capacity) |
protected abstract Point |
fixPoint(Point point) |
void |
flip()
Flip the coordinates of the geometry.
|
Geometry |
force2D() |
Geometry |
force2DM() |
Geometry |
force3D() |
Geometry |
force3DM() |
double |
getCoordinateAt(int index,
int dimension)
Gets the one of the values of a coordinate (direct position) in a
concrete dimension.
|
int |
getDimension()
Returns the largest number n such that each direct position in a
geometric set can be associated with a subset that has the direct
position in its interior and is similar (isomorphic) to Rn, Euclidean
n-space.
|
GeneralPathX |
getGeneralPath()
Get GeneralPathIterator, to do registered operations to it.
|
com.vividsolutions.jts.geom.Geometry |
getJTS() |
int |
getNumVertices()
Gets the number of vertices (direct positions) of the curve
|
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at)
If applies an affine transformation and returns the GeneralPathXIterator
with this geometry's information.
|
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at,
double flatness)
If applies an affine transformation and returns the GeneralPathXIterator
with this geometry's information.
|
java.awt.Shape |
getShape() |
java.awt.Shape |
getShape(java.awt.geom.AffineTransform affineTransform) |
protected abstract ArrayListCoordinateSequence |
getSplineCoordinates() |
OrientablePrimitive |
insertVertex(int index,
Point p)
Inserts a vertex (direct position) to the curve.
|
boolean |
is3D() |
protected boolean |
isClosed() |
void |
removeVertex(int index)
Remove a vertex (direct position) to the curve
|
void |
reProject(ICoordTrans ct)
Reprojects this geometry by the coordinate transformer passed as
parameter.
|
OrientablePrimitive |
setCoordinateAt(int index,
int dimension,
double value)
Sets the value of a coordinate (direct position) in a concrete dimension
|
void |
setGeneralPath(GeneralPathX generalPathX)
Sets all the coordinates of the curve
|
void |
setPoints(Point initialPoint,
Point endPoint) |
OrientablePrimitive |
setVertex(int index,
Point p)
Sets a vertex in a concrete position and replaces the
previous one that was in this position.
|
void |
transform(java.awt.geom.AffineTransform at)
It applies an affine transformation to the geometry.
|
get, isEmpty, sizegetHandlersarea, boundary, buffer, buffer, centroid, clone, closestPoints, compareTo, contains, contains, contains, contains, contains, convertTo, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToGeoJson, convertToGeoJson, convertToHexEWKB, convertToHexEWKBQuietly, convertToHexWKB, convertToHexWKBQuietly, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKBQuietly, convertToWKT, convertToWKTQuietly, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, equals, fastIntersects, fix, forceSubtype, getBounds, getBounds2D, getEnvelope, getGeometryType, getInteriorPoint, getInternalShape, getManager, getProjection, getType, getValidationStatus, intersection, intersects, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, notifyDeprecated, out, overlaps, perimeter, rotate, scale, setGeometryType, setProjection, setProjection, setProjectionIffNull, snapTo, toString, touches, union, withinfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddVertex, addVertex, getVertexarea, boundary, buffer, buffer, centroid, clone, cloneGeometry, closestPoints, contains, convertTo, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToGeoJson, convertToHexEWKB, convertToHexEWKBQuietly, convertToHexWKB, convertToHexWKBQuietly, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKBQuietly, convertToWKT, convertToWKTQuietly, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, equals, fastIntersects, fix, forceSubtype, getBounds2D, getEnvelope, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getProjection, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, offset, out, overlaps, perimeter, rotate, scale, setProjection, setProjection, setProjectionIffNull, snapTo, toLines, toPoints, toPolygons, touches, union, withincontains, contains, contains, contains, getBounds, intersectsisEmpty, isEmpty, isEmptyQuietlyprotected ArrayListCoordinateSequence coordinates
protected PointJTS anyVertex
protected static final double SUBSEGMENTS
public AbstractSpline(int type,
int subtype)
type - subtype - public AbstractSpline(int type,
int subtype,
Coordinate[] coordinates,
PointJTS aVertex)
type - subtype - coordinates - aVertex - public com.vividsolutions.jts.geom.Geometry getJTS()
protected abstract ArrayListCoordinateSequence getSplineCoordinates()
public OrientablePrimitive addVertex(Point point)
OrientablePrimitivepoint - The new point to addpublic double getCoordinateAt(int index,
int dimension)
OrientablePrimitiveindex - The index of the direct position to set.dimension - The dimension of the direct position.public OrientablePrimitive setCoordinateAt(int index, int dimension, double value)
OrientablePrimitiveindex - The index of the direct position to setdimension - The dimension of the direct positionvalue - The value to setpublic void removeVertex(int index)
OrientablePrimitiveindex - The index of the vertex to removepublic int getNumVertices()
OrientablePrimitivepublic OrientablePrimitive insertVertex(int index, Point p)
OrientablePrimitiveindex - The index of the vertex where the new point has to be added.p - The vertex to add.public OrientablePrimitive setVertex(int index, Point p)
OrientablePrimitiveindex - The index of the vertex where the new point has to be replaced.p - The vertex to set.public void setGeneralPath(GeneralPathX generalPathX)
OrientablePrimitivegeneralPathX - The generalPath that contains all the coordinatespublic void addMoveToVertex(Point point)
OrientablePrimitivepoint - The new point to addpublic void closePrimitive()
OrientablePrimitivepublic OrientablePrimitive ensureCapacity(int capacity)
public void reProject(ICoordTrans ct)
Geometryct - Coordinate Transformer.public void transform(java.awt.geom.AffineTransform at)
Geometryat - The transformation to apply.public int getDimension()
Geometrypublic java.awt.Shape getShape(java.awt.geom.AffineTransform affineTransform)
public java.awt.Shape getShape()
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
Geometryat - The transformation to apply.public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at,
double flatness)
Geometryat - The affine transformation.public GeneralPathX getGeneralPath()
Geometrypublic boolean is3D()
public void flip()
throws GeometryOperationNotSupportedException,
GeometryOperationException
Geometryprotected ArrayListCoordinateSequence cloneCoordinates()
public Geometry force2D() throws GeometryOperationNotSupportedException, GeometryOperationException
GeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic Geometry force2DM() throws GeometryOperationNotSupportedException, GeometryOperationException
force2DM in class AbstractGeometryGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic Geometry force3D() throws GeometryOperationNotSupportedException, GeometryOperationException
force3D in class AbstractGeometryGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic Geometry force3DM() throws GeometryOperationNotSupportedException, GeometryOperationException
force3DM in class AbstractGeometryGeometryOperationNotSupportedExceptionGeometryOperationExceptionprotected boolean isClosed()
public boolean canBeTransformed(java.awt.geom.AffineTransform at)
Geometryat - the affine transformpublic boolean canBeReprojected(ICoordTrans ct)
Geometryct - the coordinate transformation