Revision 29097 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Spline2DZ.java

View differences:

Spline2DZ.java
6 6
import java.awt.geom.Point2D;
7 7

  
8 8
import org.cresques.cts.IProjection;
9
import org.gvsig.fmap.geom.GeometryLocator;
10
import org.gvsig.fmap.geom.Geometry.SUBTYPES;
9
import org.gvsig.fmap.geom.Geometry;
11 10
import org.gvsig.fmap.geom.primitive.Spline;
12 11
import org.gvsig.fmap.geom.type.GeometryType;
13 12

  
......
16 15
 *
17 16
 */
18 17
public class Spline2DZ extends Spline2D implements Spline {
19

  
20

  
21
	/**
22
	 *
23
	 */
24 18
	private static final long serialVersionUID = 8745988712085629939L;
25
	private static GeometryType geomType = GeometryLocator.getGeometryManager()
26
		.registerGeometryType(Spline2DZ.class, null, TYPES.SPLINE, SUBTYPES.GEOM2DZ);
27
	
28 19
	private double z;
29 20

  
30 21
	/**
31
	 * Constructor without arguments. It is necessary to create
32
	 * geometries using the {@link GeometryType}{@link #create()}
33
	 * method
22
	 * The constructor with the GeometryType like and argument 
23
	 * is used by the {@link GeometryType}{@link #create()}
24
	 * to create the geometry
25
	 * @param type
26
	 * The geometry type
34 27
	 */
35
	public Spline2DZ() {
36
		super();		
28
	public Spline2DZ(GeometryType geometryType) {
29
		super(geometryType);		
37 30
	}
38 31
	
39
	public Spline2DZ(String id, IProjection projection, Point2D[] ps, double z) {
40
		super(id, projection, ps);
32
	/**
33
	 * Constructor used in the {@link Geometry#cloneGeometry()} method
34
	 * @param geometryType
35
	 * @param id
36
	 * @param projection
37
	 * @param ps
38
	 * @param z
39
	 */
40
	Spline2DZ(GeometryType geometryType, String id, IProjection projection, Point2D[] ps, double z) {
41
		super(geometryType, id, projection, ps);
41 42
		this.z = z;
42 43
	}
43 44

  

Also available in: Unified diff