Revision 27049 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Surface2DZ.java

View differences:

Surface2DZ.java
54 54
 * @author Vicente Caballero Navarro
55 55
 */
56 56
public class Surface2DZ extends Surface2D implements Surface {
57

  
58 57
	private static final long serialVersionUID = 1L;
59 58

  
60 59
	private static GeometryType geomType = GeometryLocator.getGeometryManager()
61 60
			.registerGeometryType(Surface2DZ.class, null, TYPES.SURFACE, SUBTYPES.GEOM2DZ);
62
	public static int CODE = geomType.getId();
63

  
61
	
64 62
	double[] pZ = null;
65 63

  
66 64
	/**
......
101 99
				(double[]) pZ.clone());
102 100
	}
103 101

  
104
	/**
105
	 * Devuelve un array con los valores de todas las Z.
106
	 *
107
	 * @return Array de Zs.
102
	/*
103
	 * (non-Javadoc)
104
	 * @see org.gvsig.fmap.geom.primitive.impl.Surface2D#getShapeType()
108 105
	 */
109
	public double[] getZs() {
110
		return pZ;
111
	}
112

  
113
	/**
114
	 * @see org.gvsig.fmap.geom.primitive.FShape#getShapeType()
115
	 */
116 106
	public int getShapeType() {
117 107
		return FShape.POLYGON | FShape.Z;
118 108
	}
......
124 114
		if (dimension == 2){
125 115
			pZ[index] = value;
126 116
		}else{		
127
			throw new UnsupportedOperationException("Use setGeneralPathX");
117
			super.setCoordinateAt(index, dimension, value);
128 118
		}	
129 119
	}
130 120
}

Also available in: Unified diff