|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.fmap.geom.primitive.impl.AbstractPrimitive
org.gvsig.fmap.geom.aggregate.impl.BaseMultiPrimitive
public abstract class BaseMultiPrimitive
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.gvsig.fmap.geom.Geometry |
|---|
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES |
| Field Summary | |
|---|---|
protected ArrayList |
geometries
|
| Fields inherited from class org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive |
|---|
geometryType, geomManager, id, projection |
| Fields inherited from interface org.gvsig.fmap.geom.Geometry |
|---|
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W |
| Constructor Summary | |
|---|---|
BaseMultiPrimitive(GeometryType geometryType)
The constructor with the GeometryType like and argument is used by the GeometryType#create()
to create the geometry |
|
| Method Summary | |
|---|---|
void |
addPrimitive(Primitive primitive)
Adds a new primitive to the primitive |
FShape |
cloneFShape()
Creates and returns a shape equal and independent of this one. |
boolean |
contains(double x,
double y)
|
boolean |
contains(double x,
double y,
double w,
double h)
|
boolean |
contains(Point2D p)
|
boolean |
contains(Rectangle2D r)
|
boolean |
fastIntersects(double x,
double y,
double w,
double h)
Used by the drawing strategies to quickly test whether this geometry intersects with the visible rectangle. |
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. |
Geometry[] |
getGeometries()
Deprecated. |
Handler[] |
getHandlers(int type)
It returns the handlers of the geometry, these they can be of two types is straightening and of selection. |
Shape |
getInternalShape()
(non-Javadoc) |
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. |
Primitive |
getPrimitiveAt(int i)
Returns one of the Primitive's that is in
a concrete position. |
int |
getPrimitivesNumber()
Returns the number of Primitive's that composes
this multi geometry. |
Handler[] |
getSelectHandlers()
Returns the handlers used to select the geometries. |
Handler[] |
getStretchingHandlers()
Returns the handlers they utilized to stretch the geometries. |
boolean |
intersects(double x,
double y,
double w,
double h)
|
boolean |
intersects(Rectangle2D r)
Returns true if this geometry intersects the rectangle passed as parameter. |
boolean |
isSimple()
Returns true if this Geometry has no interior point of
self-intersection or self-tangency. |
void |
reProject(org.cresques.cts.ICoordTrans ct)
Reprojects this geometry by the coordinate transformer passed as parameter. |
void |
transform(AffineTransform at)
It applies an affine transformation to the geometry. |
| Methods inherited from class org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive |
|---|
area, buffer, centroid, cloneGeometry, closestPoints, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, equals, getGeometryType, getId, getInteriorPoint, getShape, getShape, getShapeType, getSRS, getType, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isWithinDistance, move, overlaps, perimeter, rotate, scale, snapTo, toString, touches, transform, union, within |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.gvsig.fmap.geom.Geometry |
|---|
area, buffer, centroid, cloneGeometry, closestPoints, contains, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, getGeometryType, getInteriorPoint, getShape, getShape, getType, intersection, intersects, invokeOperation, invokeOperation, isWithinDistance, move, overlaps, perimeter, rotate, scale, snapTo, touches, union, within |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
protected ArrayList geometries
| Constructor Detail |
|---|
public BaseMultiPrimitive(GeometryType geometryType)
GeometryType#create()
to create the geometry
type - The geometry type| Method Detail |
|---|
public boolean contains(double x,
double y)
contains in interface Shape
public boolean contains(double x,
double y,
double w,
double h)
contains in interface Shapepublic boolean contains(Point2D p)
contains in interface Shapepublic boolean contains(Rectangle2D r)
contains in interface Shapepublic int getDimension()
Geometry
getDimension in interface Geometry
public boolean fastIntersects(double x,
double y,
double w,
double h)
Geometry
fastIntersects in interface GeometryfastIntersects in class AbstractPrimitivex - The minimum X coordinate.y - The minimum Y coordinate.w - The width of the envelope.h - The height of the envelope.
this intersects the rectangle defined by the
parameters.public Rectangle getBounds()
getBounds in interface Shapepublic Rectangle2D getBounds2D()
Geometry
getBounds2D in interface ShapegetBounds2D in interface Geometrypublic Handler[] getHandlers(int type)
Geometry
getHandlers in interface GeometrygetHandlers in class AbstractPrimitivetype - Type of handlers.
public Shape getInternalShape()
AbstractPrimitive
getInternalShape in interface GeometrygetInternalShape in class AbstractPrimitivecom.iver.cit.gvsig.fmap.core.Geometry#getInternalShape()public PathIterator getPathIterator(AffineTransform at)
Geometry
getPathIterator in interface ShapegetPathIterator in interface Geometryat - The transformation to apply.
public PathIterator getPathIterator(AffineTransform at,
double flatness)
Geometry
getPathIterator in interface ShapegetPathIterator in interface Geometryat - The affine transformation.
public Primitive getPrimitiveAt(int i)
AggregatePrimitive's that is in
a concrete position.
getPrimitiveAt in interface Aggregatei - Geometry position.
public int getPrimitivesNumber()
AggregatePrimitive's that composes
this multi geometry.
getPrimitivesNumber in interface AggregatePrimitive's that composes
this multi geometry.
public boolean intersects(double x,
double y,
double w,
double h)
intersects in interface Shapepublic boolean intersects(Rectangle2D r)
Geometry
intersects in interface Shapeintersects in interface Geometryr - Rectangle.
this intersects r.public boolean isSimple()
Geometrytrue if this Geometry has no interior point of
self-intersection or self-tangency. In mathematical formalisms, this
means that every point in the interior of the object must have a metric
neighborhood whose intersection with the object is isomorphic to an
n-sphere, where n is the dimension of this Geometry.
isSimple in interface GeometryisSimple in class AbstractPrimitivepublic void reProject(org.cresques.cts.ICoordTrans ct)
Geometry
reProject in interface GeometryreProject in interface FShapect - Coordinate Transformer.public void transform(AffineTransform at)
Geometry
transform in interface Geometrytransform in interface FShapeat - The transformation to apply.AffineTransformpublic Envelope getEnvelope()
GeometryReturns 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 Geometrypublic Geometry[] getGeometries()
public FShape cloneFShape()
FShape
cloneFShape in interface FShapepublic Handler[] getSelectHandlers()
FShape
getSelectHandlers in interface FShapepublic Handler[] getStretchingHandlers()
FShape
getStretchingHandlers in interface FShapepublic GeneralPathX getGeneralPath()
Geometry
getGeneralPath in interface Geometrypublic void addPrimitive(Primitive primitive)
MultiPrimitive
addPrimitive in interface MultiPrimitiveprimitive - The primitive to add
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||