Class AbstractSpline
java.lang.Object
org.gvsig.fmap.geom.jts.AbstractGeometry
org.gvsig.fmap.geom.jts.primitive.AbstractPrimitive
org.gvsig.fmap.geom.jts.primitive.curve.AbstractCurve
org.gvsig.fmap.geom.jts.primitive.curve.spline.AbstractSpline
- All Implemented Interfaces:
Shape,Serializable,Cloneable,Comparable,org.gvsig.fmap.geom.Geometry,GeometryJTS,org.gvsig.fmap.geom.primitive.OrientablePrimitive,org.gvsig.fmap.geom.primitive.Primitive,org.gvsig.tools.util.GetItem<org.gvsig.fmap.geom.primitive.Point>,org.gvsig.tools.util.IsEmpty,org.gvsig.tools.util.Size
- Direct Known Subclasses:
BaseSpline2D,BaseSpline2DM,BaseSpline3D,BaseSpline3DM
- Author:
- gvSIG Team
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.gvsig.fmap.geom.Geometry
org.gvsig.fmap.geom.Geometry.DIMENSIONS, org.gvsig.fmap.geom.Geometry.OPERATIONS, org.gvsig.fmap.geom.Geometry.SUBTYPES, org.gvsig.fmap.geom.Geometry.TYPES, org.gvsig.fmap.geom.Geometry.ValidationStatus -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PointJTSprotected ArrayListCoordinateSequenceprotected static final doubleFields inherited from class org.gvsig.fmap.geom.jts.AbstractGeometry
LOGGERFields inherited from interface org.gvsig.fmap.geom.Geometry
BEST, 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 Summary
ConstructorsConstructorDescriptionAbstractSpline(int type, int subtype) AbstractSpline(int type, int subtype, com.vividsolutions.jts.geom.Coordinate[] coordinates, PointJTS aVertex) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMoveToVertex(org.gvsig.fmap.geom.primitive.Point point) org.gvsig.fmap.geom.primitive.OrientablePrimitiveaddVertex(org.gvsig.fmap.geom.primitive.Point point) booleancanBeReprojected(org.gvsig.crs.projection.lib.CoordinateTransformation ct) booleanprotected ArrayListCoordinateSequencevoidorg.gvsig.fmap.geom.primitive.OrientablePrimitiveensureCapacity(int capacity) protected abstract org.gvsig.fmap.geom.primitive.PointfixPoint(org.gvsig.fmap.geom.primitive.Point point) voidflip()org.gvsig.fmap.geom.Geometryforce2D()org.gvsig.fmap.geom.Geometryforce2DM()org.gvsig.fmap.geom.Geometryforce3D()org.gvsig.fmap.geom.Geometryforce3DM()doublegetCoordinateAt(int index, int dimension) intorg.gvsig.fmap.geom.primitive.GeneralPathXcom.vividsolutions.jts.geom.GeometrygetJTS()intgetPathIterator(AffineTransform at, double flatness) getShape()getShape(AffineTransform affineTransform) protected abstract ArrayListCoordinateSequenceorg.gvsig.fmap.geom.primitive.OrientablePrimitiveinsertVertex(int index, org.gvsig.fmap.geom.primitive.Point p) booleanis3D()protected booleanisClosed()voidremoveVertex(int index) voidreProject(org.gvsig.crs.projection.lib.CoordinateTransformation ct) org.gvsig.fmap.geom.primitive.OrientablePrimitivesetCoordinateAt(int index, int dimension, double value) voidsetGeneralPath(org.gvsig.fmap.geom.primitive.GeneralPathX generalPathX) voidsetPoints(org.gvsig.fmap.geom.primitive.Point initialPoint, org.gvsig.fmap.geom.primitive.Point endPoint) org.gvsig.fmap.geom.primitive.OrientablePrimitivesetVertex(int index, org.gvsig.fmap.geom.primitive.Point p) voidMethods inherited from class org.gvsig.fmap.geom.jts.primitive.curve.AbstractCurve
get, isEmpty, sizeMethods inherited from class org.gvsig.fmap.geom.jts.primitive.AbstractPrimitive
getHandlersMethods inherited from class org.gvsig.fmap.geom.jts.AbstractGeometry
area, 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, withinMethods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gvsig.fmap.geom.Geometry
area, 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, withinMethods inherited from interface org.gvsig.fmap.geom.primitive.OrientablePrimitive
addVertex, addVertex, getVertex
-
Field Details
-
coordinates
-
anyVertex
-
SUBSEGMENTS
protected static final double SUBSEGMENTS- See Also:
-
-
Constructor Details
-
AbstractSpline
public AbstractSpline(int type, int subtype) - Parameters:
type-subtype-
-
AbstractSpline
public AbstractSpline(int type, int subtype, com.vividsolutions.jts.geom.Coordinate[] coordinates, PointJTS aVertex) - Parameters:
type-subtype-coordinates-aVertex-
-
-
Method Details
-
getJTS
public com.vividsolutions.jts.geom.Geometry getJTS()- Returns:
- the jts geometry.
-
getSplineCoordinates
-
addVertex
public org.gvsig.fmap.geom.primitive.OrientablePrimitive addVertex(org.gvsig.fmap.geom.primitive.Point point) -
setPoints
public void setPoints(org.gvsig.fmap.geom.primitive.Point initialPoint, org.gvsig.fmap.geom.primitive.Point endPoint) -
fixPoint
protected abstract org.gvsig.fmap.geom.primitive.Point fixPoint(org.gvsig.fmap.geom.primitive.Point point) - Parameters:
point-- Returns:
-
getCoordinateAt
public double getCoordinateAt(int index, int dimension) -
setCoordinateAt
public org.gvsig.fmap.geom.primitive.OrientablePrimitive setCoordinateAt(int index, int dimension, double value) -
removeVertex
public void removeVertex(int index) -
getNumVertices
public int getNumVertices() -
insertVertex
public org.gvsig.fmap.geom.primitive.OrientablePrimitive insertVertex(int index, org.gvsig.fmap.geom.primitive.Point p) -
setVertex
public org.gvsig.fmap.geom.primitive.OrientablePrimitive setVertex(int index, org.gvsig.fmap.geom.primitive.Point p) -
setGeneralPath
public void setGeneralPath(org.gvsig.fmap.geom.primitive.GeneralPathX generalPathX) -
addMoveToVertex
public void addMoveToVertex(org.gvsig.fmap.geom.primitive.Point point) -
closePrimitive
public void closePrimitive() -
ensureCapacity
public org.gvsig.fmap.geom.primitive.OrientablePrimitive ensureCapacity(int capacity) -
reProject
public void reProject(org.gvsig.crs.projection.lib.CoordinateTransformation ct) -
transform
-
getDimension
public int getDimension() -
getShape
-
getShape
-
getPathIterator
-
getPathIterator
-
getGeneralPath
public org.gvsig.fmap.geom.primitive.GeneralPathX getGeneralPath() -
is3D
public boolean is3D() -
flip
public void flip() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
cloneCoordinates
-
force2D
public org.gvsig.fmap.geom.Geometry force2D() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
force2DM
public org.gvsig.fmap.geom.Geometry force2DM() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException- Specified by:
force2DMin classAbstractGeometry- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
force3D
public org.gvsig.fmap.geom.Geometry force3D() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException- Specified by:
force3Din classAbstractGeometry- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
force3DM
public org.gvsig.fmap.geom.Geometry force3DM() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException- Specified by:
force3DMin classAbstractGeometry- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedExceptionorg.gvsig.fmap.geom.operation.GeometryOperationException
-
isClosed
protected boolean isClosed() -
canBeTransformed
-
canBeReprojected
public boolean canBeReprojected(org.gvsig.crs.projection.lib.CoordinateTransformation ct)
-