org.gvsig.fmap.geom.primitive.impl
Class Solid2DZ

java.lang.Object
  extended by org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive
      extended by org.gvsig.fmap.geom.primitive.impl.Solid2DZ
All Implemented Interfaces:
Shape, Serializable, Comparable, Geometry, FShape, Primitive, Solid

public class Solid2DZ
extends AbstractPrimitive
implements Solid

Author:
Jorge Piera Llodr� (jorge.piera@iver.es)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.gvsig.fmap.geom.Geometry
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES
 
Field Summary
 
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
Solid2DZ(GeometryType geometryType)
          The constructor with the GeometryType like and argument is used by the GeometryType#create() to create the geometry
 
Method Summary
 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(org.cresques.cts.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.
 
Methods inherited from class org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive
area, buffer, centroid, cloneGeometry, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, equals, fastIntersects, getGeometryType, getHandlers, getId, getInternalShape, getShape, getShape, getSRS, getType, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isSimple, moveGeom, overlaps, perimeter, rotateGeom, scaleGeom, 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, contains, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, fastIntersects, getGeometryType, getHandlers, getInternalShape, getShape, getShape, getType, intersection, intersects, invokeOperation, invokeOperation, isSimple, overlaps, perimeter, touches, union, within
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

Solid2DZ

public Solid2DZ(GeometryType geometryType)
The constructor with the GeometryType like and argument is used by the GeometryType#create() to create the geometry

Parameters:
type - The geometry type
Method Detail

cloneFShape

public FShape cloneFShape()
Description copied from interface: FShape
Creates and returns a shape equal and independent of this one.

Specified by:
cloneFShape in interface FShape
Returns:
the new shape.

getSelectHandlers

public Handler[] getSelectHandlers()
Description copied from interface: FShape
Returns the handlers used to select the geometries.

Specified by:
getSelectHandlers in interface FShape
Returns:
Handlers the handlers used to select the geometries

getShapeType

public int getShapeType()
Description copied from interface: FShape
Gets the geometry type of this shape.

Specified by:
getShapeType in interface FShape
Overrides:
getShapeType in class AbstractPrimitive
Returns:
int the geometry type of this shape.

getStretchingHandlers

public Handler[] getStretchingHandlers()
Description copied from interface: FShape
Returns the handlers they utilized to stretch the geometries.

Specified by:
getStretchingHandlers in interface FShape
Returns:
Handlers the handlers used to stretch the geometries

reProject

public void reProject(org.cresques.cts.ICoordTrans ct)
Description copied from interface: Geometry
Reprojects this geometry by the coordinate transformer passed as parameter.

Specified by:
reProject in interface Geometry
Specified by:
reProject in interface FShape
Parameters:
ct - Coordinate Transformer.

transform

public void transform(AffineTransform at)
Description copied from interface: Geometry
It applies an affine transformation to the geometry.

Specified by:
transform in interface Geometry
Specified by:
transform in interface FShape
Parameters:
at - The transformation to apply.
See Also:
AffineTransform

contains

public boolean contains(Point2D arg0)
Specified by:
contains in interface Shape

contains

public boolean contains(Rectangle2D arg0)
Specified by:
contains in interface Shape

contains

public boolean contains(double arg0,
                        double arg1)
Specified by:
contains in interface Shape

contains

public boolean contains(double arg0,
                        double arg1,
                        double arg2,
                        double arg3)
Specified by:
contains in interface Shape

getBounds

public Rectangle getBounds()
Specified by:
getBounds in interface Shape

getBounds2D

public Rectangle2D getBounds2D()
Description copied from interface: Geometry
Returns this geometry's boundary rectangle.

Specified by:
getBounds2D in interface Shape
Specified by:
getBounds2D in interface Geometry
Returns:
Boundary rectangle.

getPathIterator

public PathIterator getPathIterator(AffineTransform arg0)
Description copied from interface: Geometry
If applies an affine transformation and returns the GeneralPathXIterator with this geometry's information.

Specified by:
getPathIterator in interface Shape
Specified by:
getPathIterator in interface Geometry
Parameters:
arg0 - The transformation to apply.
Returns:
The GeneralPathXIterator with this geometry's information.

getPathIterator

public PathIterator getPathIterator(AffineTransform arg0,
                                    double arg1)
Description copied from interface: Geometry
If applies an affine transformation and returns the GeneralPathXIterator with this geometry's information.

Specified by:
getPathIterator in interface Shape
Specified by:
getPathIterator in interface Geometry
Parameters:
arg0 - The affine transformation.
Returns:
The GeneralPathXIterator with this geometry's information.

intersects

public boolean intersects(Rectangle2D arg0)
Description copied from interface: Geometry
Returns true if this geometry intersects the rectangle passed as parameter.

Specified by:
intersects in interface Shape
Specified by:
intersects in interface Geometry
Parameters:
arg0 - Rectangle.
Returns:
True, if this intersects r.

intersects

public boolean intersects(double arg0,
                          double arg1,
                          double arg2,
                          double arg3)
Specified by:
intersects in interface Shape

getDimension

public int getDimension()
Description copied from interface: Geometry
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.

Specified by:
getDimension in interface Geometry
Returns:
The dimension.

getEnvelope

public Envelope getEnvelope()
Description copied from interface: 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.

Specified by:
getEnvelope in interface Geometry
Returns:
The minimum bounding box for this Geometry.

getGeneralPath

public GeneralPathX getGeneralPath()
Description copied from interface: Geometry
Get GeneralPathIterator, to do registered operations to it.

Specified by:
getGeneralPath in interface Geometry
Returns:
The GeneralPathX.

getZs

public double[] getZs()

addSurface

public void addSurface(Surface surface)
Description copied from interface: Solid
Add a surface to the Solid

Specified by:
addSurface in interface Solid
Parameters:
surface - the surface to add

getAppearance

public Appearance getAppearance()
Description copied from interface: Solid
Gets the appearance of a solid

Specified by:
getAppearance in interface Solid
Returns:

getNumSurfaces

public int getNumSurfaces()
Description copied from interface: Solid
Get the number of surfaces in a solid

Specified by:
getNumSurfaces in interface Solid
Returns:
the number of surfaces

getSurfaceAt

public Surface getSurfaceAt(int position)
Description copied from interface: Solid
Gets a surface in a concrete position

Specified by:
getSurfaceAt in interface Solid
Parameters:
position - the concrete position
Returns:
the surface

removeSurface

public void removeSurface(int position)
Description copied from interface: Solid
Remove surface from solid at concrete position

Specified by:
removeSurface in interface Solid
Parameters:
position - the concrete position

setAppearance

public void setAppearance(Appearance app)
Description copied from interface: Solid
Sets the appearance of a Solid

Specified by:
setAppearance in interface Solid
Parameters:
app - the appearance


Copyright © 2004-2012 gvSIG. All Rights Reserved.