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

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

public class Point2DZ
extends Point2D
implements Point

3D point implementation.

Author:
Vicente Caballero Navarro, gvSIG team
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
static String PERSISTENCE_DEFINITION_NAME
           
 
Fields inherited from class org.gvsig.fmap.geom.primitive.impl.Point2D
COORDINATES_FIELD
 
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
Point2DZ(double x, double y, double z)
           
Point2DZ(GeometryType geomType)
          The constructor with the GeometryType like and argument is used by the GeometryType#create() to create the geometry
 
Method Summary
 FShape cloneFShape()
          Creates and returns a shape equal and independent of this one.
 boolean equals(Object other)
           
 double getCoordinateAt(int dimension)
          Gets the coordinate in a concrete dimension
 double[] getCoordinates()
          Returns an array of coordinates.
 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.
protected  String getFullTypeName()
           
 double getOrdinate(int dimension)
          Returns the ordinate of the given dimension.
 int getShapeType()
          Gets the geometry type of this shape.
 void setCoordinateAt(int dimension, double value)
          Sets a ordinate in a concrete dimension
 void setCoordinates(double[] values)
          Sets the point coordinates
 
Methods inherited from class org.gvsig.fmap.geom.primitive.impl.Point2D
contains, contains, contains, contains, getBounds, getBounds2D, getDirectPosition, getEnvelope, getGeneralPath, getPathIterator, getPathIterator, getSelectHandlers, getShape, getStretchingHandlers, getX, getY, intersects, intersects, reProject, setX, setY, toString, transform
 
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, fastIntersects, getGeometryType, getHandlers, getId, getInternalShape, getShape, getSRS, getType, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isSimple, moveGeom, overlaps, perimeter, rotateGeom, scaleGeom, 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.primitive.Point
getDirectPosition, getX, getY, setX, setY
 
Methods inherited from interface org.gvsig.fmap.geom.Geometry
area, buffer, centroid, cloneGeometry, contains, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, fastIntersects, getBounds2D, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, intersection, intersects, intersects, invokeOperation, invokeOperation, isSimple, overlaps, perimeter, reProject, touches, transform, union, within
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, intersects
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

PERSISTENCE_DEFINITION_NAME

public static final String PERSISTENCE_DEFINITION_NAME
See Also:
Constant Field Values
Constructor Detail

Point2DZ

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

Parameters:
type - The geometry type

Point2DZ

public Point2DZ(double x,
                double y,
                double z)
Method Detail

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 Point2D
Returns:
int the geometry type of this shape.

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
Overrides:
cloneFShape in class Point2D
Returns:
the new 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 DirectPosition
Specified by:
getDimension in interface Geometry
Overrides:
getDimension in class Point2D
Returns:
The dimension.

equals

public boolean equals(Object other)
Overrides:
equals in class Point2D

setCoordinates

public void setCoordinates(double[] values)
Description copied from interface: Point
Sets the point coordinates

Specified by:
setCoordinates in interface Point
Overrides:
setCoordinates in class Point2D

getFullTypeName

protected String getFullTypeName()
Overrides:
getFullTypeName in class Point2D

setCoordinateAt

public void setCoordinateAt(int dimension,
                            double value)
Description copied from interface: Point
Sets a ordinate in a concrete dimension

Specified by:
setCoordinateAt in interface Point
Overrides:
setCoordinateAt in class Point2D
Parameters:
dimension - The dimension to set
value - The value to set

getCoordinateAt

public double getCoordinateAt(int dimension)
Description copied from interface: Point
Gets the coordinate in a concrete dimension

Specified by:
getCoordinateAt in interface Point
Overrides:
getCoordinateAt in class Point2D
Parameters:
dimension - The ordinate dimension
Returns:
The value of the ordinate

getOrdinate

public double getOrdinate(int dimension)
Description copied from interface: DirectPosition
Returns the ordinate of the given dimension.

Specified by:
getOrdinate in interface DirectPosition
Overrides:
getOrdinate in class Point2D
Parameters:
dimension - The dimension to retrieve
Returns:
The value of the ordinate

getCoordinates

public double[] getCoordinates()
Description copied from interface: Point
Returns an array of coordinates. Don't use the provided array to modify the point coordinates, but use the #setCoordinateAt(int, double)) , #setX(double)) or #setY(double)) methods instead.

Specified by:
getCoordinates in interface Point
Overrides:
getCoordinates in class Point2D
Returns:
The point coordinates


Copyright © 2004-2012 gvSIG. All Rights Reserved.