org.gvsig.fmap.geom.primitive.impl
Class Point2DZ
java.lang.Object
org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive
org.gvsig.fmap.geom.primitive.impl.Point2D
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
| 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 |
|
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, getType, getX, getY, intersects, intersects, reProject, setX, setY, toString, transform |
| 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, fastIntersects, getGeometryType, getHandlers, getId, getInteriorPoint, getInternalShape, getShape, getSRS, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isSimple, isWithinDistance, move, overlaps, perimeter, rotate, scale, snapTo, touches, transform, union, within |
| Methods inherited from interface org.gvsig.fmap.geom.Geometry |
area, buffer, centroid, cloneGeometry, closestPoints, contains, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, fastIntersects, getBounds2D, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, intersection, intersects, intersects, invokeOperation, invokeOperation, isSimple, isWithinDistance, move, overlaps, perimeter, reProject, rotate, scale, snapTo, touches, transform, union, within |
PERSISTENCE_DEFINITION_NAME
public static final String PERSISTENCE_DEFINITION_NAME
- See Also:
- Constant Field Values
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,
GeometryType geometryType)
Point2DZ
public Point2DZ(double x,
double y,
double z)
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
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 setvalue - 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
getFullTypeName
protected String getFullTypeName()
- Overrides:
getFullTypeName in class Point2D
Copyright © 2004-2013 gvSIG. All Rights Reserved.