public class Solid2DZ extends AbstractPrimitive implements Solid
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus
geometryType, geomManager, id, logger, projection
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W
Constructor and Description |
---|
Solid2DZ(GeometryType geometryType)
The constructor with the GeometryType like and argument
is used by the
GeometryType #create()
to create the geometry |
Modifier and Type | Method and Description |
---|---|
void |
addSurface(Surface surface)
Add a surface to the Solid
|
FShape |
cloneFShape()
Creates and returns a shape equal and independent of this one.
|
boolean |
contains(double arg0,
double arg1) |
boolean |
contains(double arg0,
double arg1,
double arg2,
double arg3) |
boolean |
contains(Point2D arg0) |
boolean |
contains(Rectangle2D arg0) |
Appearance |
getAppearance()
Gets the appearance of a solid
|
Rectangle |
getBounds() |
Rectangle2D |
getBounds2D()
Returns this geometry's boundary rectangle.
|
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.
|
Envelope |
getEnvelope()
Returns the minimum bounding box for this Geometry.
|
GeneralPathX |
getGeneralPath()
Get GeneralPathIterator, to do registered operations to it.
|
int |
getNumSurfaces()
Get the number of surfaces in a solid
|
PathIterator |
getPathIterator(AffineTransform arg0)
If applies an affine transformation and returns the GeneralPathXIterator
with this geometry's information.
|
PathIterator |
getPathIterator(AffineTransform arg0,
double arg1)
If applies an affine transformation and returns the GeneralPathXIterator
with this geometry's information.
|
Handler[] |
getSelectHandlers()
Returns the handlers used to select the geometries.
|
int |
getShapeType()
Gets the geometry type of this shape.
|
Handler[] |
getStretchingHandlers()
Returns the handlers they utilized to stretch the geometries.
|
Surface |
getSurfaceAt(int position)
Gets a surface in a concrete position
|
double[] |
getZs() |
boolean |
intersects(double arg0,
double arg1,
double arg2,
double arg3) |
boolean |
intersects(Rectangle2D arg0)
Returns true if this geometry intersects the rectangle passed as
parameter.
|
void |
removeSurface(int position)
Remove surface from solid at concrete position
|
void |
reProject(ICoordTrans ct)
Reprojects this geometry by the coordinate transformer passed as
parameter.
|
void |
setAppearance(Appearance app)
Sets the appearance of a Solid
|
void |
transform(AffineTransform at)
It applies an affine transformation to the geometry.
|
area, buffer, centroid, cloneGeometry, closestPoints, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, equals, fastIntersects, getGeometryType, getHandlers, getId, getInteriorPoint, getInternalShape, getShape, getShape, getSRS, getType, getValidationStatus, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, overlaps, perimeter, rotate, scale, snapTo, toJTS, toString, touches, transform, union, within
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
area, buffer, canBeReprojected, canBeTransformed, centroid, cloneGeometry, closestPoints, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, fastIntersects, flip, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getShape, getShape, getType, getValidationStatus, intersection, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, out, overlaps, perimeter, rotate, scale, snapTo, toLines, toPoints, toPolygons, touches, union, within
compareTo
public Solid2DZ(GeometryType geometryType)
GeometryType
#create()
to create the geometrytype
- The geometry typepublic FShape cloneFShape()
FShape
cloneFShape
in interface FShape
public Handler[] getSelectHandlers()
FShape
getSelectHandlers
in interface FShape
public int getShapeType()
FShape
getShapeType
in interface FShape
getShapeType
in class AbstractPrimitive
public Handler[] getStretchingHandlers()
FShape
getStretchingHandlers
in interface FShape
public void reProject(ICoordTrans ct)
Geometry
public void transform(AffineTransform at)
Geometry
transform
in interface FShape
transform
in interface Geometry
at
- The transformation to apply.AffineTransform
public boolean contains(Rectangle2D arg0)
public boolean contains(double arg0, double arg1)
public boolean contains(double arg0, double arg1, double arg2, double arg3)
public Rectangle2D getBounds2D()
Geometry
getBounds2D
in interface Shape
getBounds2D
in interface Geometry
public PathIterator getPathIterator(AffineTransform arg0)
Geometry
getPathIterator
in interface Shape
getPathIterator
in interface Geometry
arg0
- The transformation to apply.public PathIterator getPathIterator(AffineTransform arg0, double arg1)
Geometry
getPathIterator
in interface Shape
getPathIterator
in interface Geometry
arg0
- The affine transformation.public boolean intersects(Rectangle2D arg0)
Geometry
intersects
in interface Shape
intersects
in interface Geometry
arg0
- Rectangle.this
intersects r
.public boolean intersects(double arg0, double arg1, double arg2, double arg3)
intersects
in interface Shape
public int getDimension()
Geometry
getDimension
in interface Geometry
public Envelope getEnvelope()
Geometry
Returns the minimum bounding box for this Geometry. This shall be the coordinate region spanning the minimum and maximum value for each ordinate taken on by DirectPositions in this Geometry. The simplest representation for an envelope consists of two DirectPositions, the first one containing all the minimums for each ordinate, and second one containing all the maximums.
getEnvelope
in interface Geometry
public GeneralPathX getGeneralPath()
Geometry
getGeneralPath
in interface Geometry
public double[] getZs()
public void addSurface(Surface surface)
Solid
addSurface
in interface Solid
surface
- the surface to addpublic Appearance getAppearance()
Solid
getAppearance
in interface Solid
public int getNumSurfaces()
Solid
getNumSurfaces
in interface Solid
public Surface getSurfaceAt(int position)
Solid
getSurfaceAt
in interface Solid
position
- the concrete positionpublic void removeSurface(int position)
Solid
removeSurface
in interface Solid
position
- the concrete positionpublic void setAppearance(Appearance app)
Solid
setAppearance
in interface Solid
app
- the appearance