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

View differences:

EllipticArc2DZ.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.Curve;
12 11
import org.gvsig.fmap.geom.primitive.GeneralPathX;
13 12
import org.gvsig.fmap.geom.type.GeometryType;
......
18 17
 */
19 18
public class EllipticArc2DZ extends EllipticArc2D implements Curve {
20 19
	private static final long serialVersionUID = -7625487589450160319L;
21

  
22
	private static GeometryType geomType = GeometryLocator.getGeometryManager()
23
		.registerGeometryType(EllipticArc2DZ.class, null, TYPES.ELLIPTICARC, SUBTYPES.GEOM2DZ);
24
	
25 20
	private double z;
26 21

  
27 22
	/**
28
	 * Constructor without arguments. It is necessary to create
29
	 * geometries using the {@link GeometryType}{@link #create()}
30
	 * method
23
	 * The constructor with the GeometryType like and argument 
24
	 * is used by the {@link GeometryType}{@link #create()}
25
	 * to create the geometry
26
	 * @param type
27
	 * The geometry type
31 28
	 */
32
	public EllipticArc2DZ() {
33
		super();		
29
	public EllipticArc2DZ(GeometryType geometryType) {
30
		super(geometryType);		
34 31
	}
35 32
	
36
	public EllipticArc2DZ(String id, IProjection projection, GeneralPathX gpx, Point2D axis1Start,Point2D axis1End, double axis2Dist, double angSt, double andExt, double z) {
37
		super(id, projection, gpx, axis1Start, axis1End, axis2Dist, angSt, andExt);
33
	/**
34
	 * Constructor used in the {@link Geometry#cloneGeometry()} method
35
	 * @param geometryType
36
	 * @param id
37
	 * @param projection
38
	 * @param gpx
39
	 * @param axis1Start
40
	 * @param axis1End
41
	 * @param axis2Dist
42
	 * @param angSt
43
	 * @param andExt
44
	 * @param z
45
	 */
46
	EllipticArc2DZ(GeometryType geometryType, String id, IProjection projection, GeneralPathX gpx, Point2D axis1Start,Point2D axis1End, double axis2Dist, double angSt, double andExt, double z) {
47
		super(geometryType, id, projection, gpx, axis1Start, axis1End, axis2Dist, angSt, andExt);
38 48
		this.z = z;
39 49
	}
40 50
	

Also available in: Unified diff