org.gvsig.fmap.geom.primitive.impl
Class Point3DGeometryType
java.lang.Object
org.gvsig.fmap.geom.type.AbstractGeometryType
org.gvsig.fmap.geom.primitive.impl.Point2DGeometryType
org.gvsig.fmap.geom.primitive.impl.Point3DGeometryType
- All Implemented Interfaces:
- PointGeometryType, GeometryType
public class Point3DGeometryType
- extends Point2DGeometryType
Geometry type implementation for the creation of Point3D objects.
- Author:
- gvSIG Team
Point3DGeometryType
public Point3DGeometryType()
getName
public String getName()
- Specified by:
getName in interface GeometryType- Overrides:
getName in class Point2DGeometryType
- Returns:
- the name of the geometry type.
getSubType
public int getSubType()
- Specified by:
getSubType in interface GeometryType- Overrides:
getSubType in class Point2DGeometryType
- Returns:
- the subtype of the geometry. It is a constant value
that has to be one of the values in
Geometry.SUBTYPES.
The subtype represents a set of geometries with a
dimensional relationship (2D, 3D, 2DM...)
isSubTypeOf
public boolean isSubTypeOf(int geometrySubType)
- Description copied from interface:
GeometryType
- Check if a geometry subType inherits of other subType. E.g:
the super Subtype of a geometry 3D could be a geometry 2D,
because the 3D extends the behavior of a geometry 2D.
- Specified by:
isSubTypeOf in interface GeometryType- Overrides:
isSubTypeOf in class Point2DGeometryType
- Parameters:
geometrySubType - the value of the Geometry.SUBTYPES to check if is
it super subType
- Returns:
- if the the parameter is a super subType of this
geometry type
create
public Geometry create()
throws CreateGeometryException
- Description copied from interface:
GeometryType
- This method creates a
Geometry with the type specified
by this class. The geometry is empty, and all the internal
attributes must be assigned to a value when the geometry has
been created.
- Specified by:
create in interface GeometryType- Overrides:
create in class Point2DGeometryType
- Returns:
- A empty geometry
- Throws:
CreateGeometryException
createPoint
public Point createPoint(double x,
double y)
- Description copied from interface:
PointGeometryType
- Creates a new point object
- Specified by:
createPoint in interface PointGeometryType- Overrides:
createPoint in class Point2DGeometryType
- Parameters:
x - the x coordinate of the pointy - the y coordinate of the point
- Returns:
- the new point
createPoint
public Point createPoint(double[] coordinates)
- Description copied from interface:
PointGeometryType
- Creates a new point object
- Specified by:
createPoint in interface PointGeometryType- Overrides:
createPoint in class Point2DGeometryType
- Parameters:
coordinates - the coordinates of the point
- Returns:
- the new point
Copyright © 2004-2013 gvSIG. All Rights Reserved.