Revision 35475 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Ellipse2DZ.java
Ellipse2DZ.java | ||
---|---|---|
16 | 16 |
*/ |
17 | 17 |
public class Ellipse2DZ extends Ellipse2D implements Surface { |
18 | 18 |
private static final long serialVersionUID = -6678908069111004754L; |
19 |
private double z; |
|
20 |
|
|
19 |
|
|
21 | 20 |
/** |
22 | 21 |
* The constructor with the GeometryType like and argument |
23 | 22 |
* is used by the {@link GeometryType}{@link #create()} |
... | ... | |
39 | 38 |
*/ |
40 | 39 |
Ellipse2DZ(GeometryType geometryType, String id, IProjection projection, GeneralPathX gpx, |
41 | 40 |
Point2D i, Point2D e, double d, double z) { |
42 |
super(geometryType, id, projection, gpx, i, e, d); |
|
43 |
this.z = z; |
|
41 |
super(geometryType, id, projection, gpx, i, e, d); |
|
44 | 42 |
} |
45 |
|
|
46 |
/* (non-Javadoc) |
|
47 |
* @see org.gvsig.fmap.geom.primitive.Circle2D#setCoordinateAt(int, int, double) |
|
48 |
*/ |
|
49 |
public void setCoordinateAt(int index, int dimension, double value) { |
|
50 |
if (dimension == 2){ |
|
51 |
z = value; |
|
52 |
}else{ |
|
53 |
super.setCoordinateAt(index, dimension, value); |
|
54 |
} |
|
55 |
} |
|
56 |
|
|
57 | 43 |
} |
Also available in: Unified diff