Revision 47432 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.jts/src/main/java/org/gvsig/fmap/geom/jts/primitive/surface/ellipse/AbstractEllipse.java
AbstractEllipse.java | ||
---|---|---|
25 | 25 |
import java.awt.Shape; |
26 | 26 |
import java.awt.geom.AffineTransform; |
27 | 27 |
import java.awt.geom.PathIterator; |
28 |
|
|
29 | 28 |
import org.cresques.cts.CoordTransRuntimeException; |
30 | 29 |
import org.cresques.cts.ICoordTrans; |
31 | 30 |
import org.gvsig.fmap.geom.Geometry; |
32 |
|
|
33 | 31 |
import org.gvsig.fmap.geom.jts.gputils.DefaultGeneralPathX; |
34 | 32 |
import org.gvsig.fmap.geom.jts.primitive.point.Point2D; |
35 | 33 |
import org.gvsig.fmap.geom.jts.primitive.point.PointJTS; |
... | ... | |
77 | 75 |
other.setProjection(this.getProjection()); |
78 | 76 |
return other; |
79 | 77 |
} |
78 |
|
|
79 |
@Override |
|
80 |
public Geometry force2DM() throws GeometryOperationNotSupportedException, GeometryOperationException { |
|
81 |
Ellipse2DM other = new Ellipse2DM(); |
|
82 |
other.setProjection(this.getProjection()); |
|
83 |
other.setPoints((Point)init.force2DM(), (Point)end.force2DM(), ydist); |
|
84 |
return other; |
|
85 |
} |
|
86 |
|
|
87 |
@Override |
|
88 |
public Geometry force3D() throws GeometryOperationNotSupportedException, GeometryOperationException { |
|
89 |
Ellipse2DZ other = new Ellipse2DZ(); |
|
90 |
other.setProjection(this.getProjection()); |
|
91 |
other.setPoints((Point)init.force3D(), (Point)end.force3D(), ydist); |
|
92 |
return other; |
|
93 |
} |
|
80 | 94 |
|
81 | 95 |
@Override |
96 |
public Geometry force3DM() throws GeometryOperationNotSupportedException, GeometryOperationException { |
|
97 |
Ellipse2DZM other = new Ellipse2DZM(); |
|
98 |
other.setProjection(this.getProjection()); |
|
99 |
other.setPoints((Point)init.force3DM(), (Point)end.force3DM(), ydist); |
|
100 |
return other; |
|
101 |
} |
|
102 |
|
|
103 |
|
|
104 |
|
|
105 |
@Override |
|
82 | 106 |
public int getNumInteriorRings() { |
83 | 107 |
String message = "Calling deprecated method getInteriorRing of a ellipse"; |
84 | 108 |
notifyDeprecated(message); |
Also available in: Unified diff