Revision 2183 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/ShapeFactory.java

View differences:

ShapeFactory.java
40 40
 */
41 41
package com.iver.cit.gvsig.fmap.core;
42 42

  
43

  
43 44
/**
44 45
 * Clase que crea las geometr?as, contendra un m?todo create por cada tipo de
45 46
 * geometria que soporte gvSIG
......
56 57
	public static IGeometry createPoint2D(double x, double y) {
57 58
		return new FGeometry(new FPoint2D(x, y));
58 59
	}
60
	public static IGeometry createPoint2D(FPoint2D p) {
61
		return new FGeometry(p);
62
	}
59 63

  
64
	
60 65
	/**
61 66
	 * Crea una geometr?a que contiene como shape un Multipunto 2D.
62 67
	 *
......
118 123
	public static IGeometry createPolyline3D(GeneralPathX shape, double[] pZ) {
119 124
		return new FGeometry(new FPolyline3D(shape, pZ));
120 125
	}
126
	/**
127
	 * Crea una geometr?a que contiene como shape un Pol?gono 3D.
128
	 *
129
	 * @param shape GeneralPathX.
130
	 * @param pZ Vector de Z.
131
	 *
132
	 * @return Geometr?a.
133
	 */
134
	public static IGeometry createPolygon3D(GeneralPathX shape, double[] pZ) {
135
		return new FGeometry(new FPolygon3D(shape, pZ));
136
	}
121 137

  
122 138
	/**
123 139
	 * Crea una geometr?a que contiene como shape un Pol?gono 2D.
......
140 156
	public static FGeometry createGeometry(FShape shp) {
141 157
		return new FGeometry(shp);
142 158
	}
159
    
143 160
}

Also available in: Unified diff