Revision 29972 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/GeneralPathX.java
GeneralPathX.java | ||
---|---|---|
206 | 206 |
* taken from the specified <code>Shape</code> object. |
207 | 207 |
* @param s the specified <code>Shape</code> object |
208 | 208 |
*/ |
209 |
public GeneralPathX(Shape s) { |
|
209 |
public GeneralPathX(PathIterator piter) { // Shape s) {
|
|
210 | 210 |
// this(WIND_NON_ZERO, INIT_SIZE, INIT_SIZE); |
211 | 211 |
this(WIND_EVEN_ODD, INIT_SIZE, INIT_SIZE); |
212 |
PathIterator pi = s.getPathIterator(null); |
|
213 |
setWindingRule(pi.getWindingRule()); |
|
214 |
append(pi, false); |
|
212 |
// PathIterator pi = s.getPathIterator(null);
|
|
213 |
setWindingRule(piter.getWindingRule());
|
|
214 |
append(piter, false);
|
|
215 | 215 |
} |
216 | 216 |
|
217 | 217 |
private void needRoom(int newTypes, int newCoords, boolean needMove) { |
... | ... | |
412 | 412 |
* initial <code>moveTo</code> segment into a <code>lineTo</code> |
413 | 413 |
* segment to connect the new geometry to the existing path |
414 | 414 |
*/ |
415 |
/* |
|
415 | 416 |
public void append(Shape s, boolean connect) { |
416 | 417 |
PathIterator pi = s.getPathIterator(null); |
417 | 418 |
append(pi,connect); |
418 | 419 |
} |
420 |
*/ |
|
419 | 421 |
|
420 | 422 |
/** |
421 | 423 |
* Appends the geometry of the specified |
... | ... | |
900 | 902 |
} |
901 | 903 |
} |
902 | 904 |
reset(); |
903 |
append(newGp, false); |
|
905 |
append(newGp.getPathIterator(null), false);
|
|
904 | 906 |
} |
905 | 907 |
/** |
906 | 908 |
* Check if the first part is CCW. |
Also available in: Unified diff