public abstract class AbstractEllipse extends AbstractSurface
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus
Modifier and Type | Field and Description |
---|---|
protected Point |
end |
protected Point |
init |
protected double |
ydist |
logger
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W
Modifier | Constructor and Description |
---|---|
protected |
AbstractEllipse(int type,
int subtype) |
Modifier and Type | Method and Description |
---|---|
void |
addInteriorRing(Line ring)
Creates a ring from the coordinates of the line and adds it to the surface like an inner ring.
|
void |
addInteriorRing(Polygon polygon)
Creates a ring from the coordinates of the shell of the polygon and adds it to the surface like an inner ring.
|
void |
addInteriorRing(Ring ring) |
void |
addMoveToVertex(Point point)
Adds a vertex (or direct position) to the curve
|
void |
addVertex(double x,
double y)
Utility method for add a vertex
|
void |
addVertex(double x,
double y,
double z)
Utility method for add a vertex
|
void |
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(AffineTransform at)
Return true if the geometry can be transformed by the affine transform
|
void |
closePrimitive()
Closes the geometry
|
void |
ensureCapacity(int capacity) |
protected abstract Point |
fixPoint(Point point) |
void |
flip()
Flip the coordinates of the geometry.
|
protected double |
getAxis1Angle() |
Point |
getAxis1End() |
Point |
getAxis1Start() |
double |
getAxis2Dist() |
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.
|
Ring |
getInteriorRing(int index) |
int |
getNumInteriorRings() |
int |
getNumVertices()
Gets the number of vertices (direct positions) of the curve
|
PathIterator |
getPathIterator(AffineTransform at)
If applies an affine transformation and returns the GeneralPathXIterator
with this geometry's information.
|
PathIterator |
getPathIterator(AffineTransform at,
double flatness)
If applies an affine transformation and returns the GeneralPathXIterator
with this geometry's information.
|
Shape |
getShape() |
Shape |
getShape(AffineTransform affineTransform) |
Point |
getVertex(int index)
Gets a vertex (direct position)
|
void |
insertVertex(int index,
Point p)
Inserts a vertex (direct position) to the curve.
|
boolean |
is3D() |
void |
removeInteriorRing(int index) |
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.
|
void |
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 axis1Start,
Point axis1End,
double axis2Length) |
void |
setVertex(int index,
Point p)
Sets a vertex in a concrete position and replaces the
previous one that was in this position.
|
void |
transform(AffineTransform at)
It applies an affine transformation to the geometry.
|
getSurfaceAppearance, setSurfaceAppearance
getHandlers
area, buffer, centroid, closestPoints, compareTo, contains, contains, contains, contains, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, equals, fastIntersects, getBounds, getBounds2D, getEnvelope, getGeometryType, getInteriorPoint, getInternalShape, getManager, getType, getValidationStatus, intersection, intersects, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, notifyDeprecated, out, overlaps, perimeter, rotate, scale, snapTo, toString, touches, union, within
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
area, buffer, centroid, cloneGeometry, closestPoints, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, fastIntersects, getBounds2D, getEnvelope, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, out, overlaps, perimeter, rotate, scale, snapTo, toLines, toPoints, toPolygons, touches, union, within
contains, contains, contains, contains, getBounds, intersects
compareTo
getJTS
protected AbstractEllipse(int type, int subtype)
type
- subtype
- public int getNumInteriorRings()
public Ring getInteriorRing(int index)
public void addInteriorRing(Ring ring)
public void addInteriorRing(Line ring)
Surface
public void addInteriorRing(Polygon polygon)
Surface
public void removeInteriorRing(int index)
public double getCoordinateAt(int index, int dimension)
OrientablePrimitive
index
- The index of the direct position to set.dimension
- The dimension of the direct position.public void setCoordinateAt(int index, int dimension, double value)
OrientablePrimitive
index
- The index of the direct position to setdimension
- The dimension of the direct positionvalue
- The value to setpublic void addVertex(Point point)
OrientablePrimitive
point
- The new point to addpublic void addVertex(double x, double y)
OrientablePrimitive
OrientablePrimitive.addVertex(Point)
public void addVertex(double x, double y, double z)
OrientablePrimitive
OrientablePrimitive.addVertex(Point)
public void removeVertex(int index)
OrientablePrimitive
index
- The index of the vertex to removepublic Point getVertex(int index)
OrientablePrimitive
index
- The index of the vertex to getpublic int getNumVertices()
OrientablePrimitive
public void insertVertex(int index, Point p)
OrientablePrimitive
index
- The index of the vertex where the new point has to be added.p
- The vertex to add.public void setVertex(int index, Point p)
OrientablePrimitive
index
- The index of the vertex where the new point has to be replaced.p
- The vertex to set.public void setGeneralPath(GeneralPathX generalPathX)
OrientablePrimitive
generalPathX
- The generalPath that contains all the coordinatespublic void addMoveToVertex(Point point)
OrientablePrimitive
point
- The new point to addpublic void closePrimitive()
OrientablePrimitive
public void ensureCapacity(int capacity)
public void reProject(ICoordTrans ct)
Geometry
ct
- Coordinate Transformer.public void transform(AffineTransform at)
Geometry
at
- The transformation to apply.public int getDimension()
Geometry
public Shape getShape(AffineTransform affineTransform)
public Shape getShape()
public PathIterator getPathIterator(AffineTransform at)
Geometry
at
- The transformation to apply.public PathIterator getPathIterator(AffineTransform at, double flatness)
Geometry
at
- The affine transformation.public GeneralPathX getGeneralPath()
Geometry
public boolean is3D()
public Point getAxis1Start()
public Point getAxis1End()
public double getAxis2Dist()
public void flip() throws GeometryOperationNotSupportedException, GeometryOperationException
Geometry
protected double getAxis1Angle() throws GeometryOperationNotSupportedException, GeometryOperationException
public boolean canBeTransformed(AffineTransform at)
Geometry
at
- the affine transformpublic boolean canBeReprojected(ICoordTrans ct)
Geometry
ct
- the coordinate transformation