Revision 3035 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/v02/FConverter.java
FConverter.java | ||
---|---|---|
100 | 100 |
|
101 | 101 |
private static GeneralPathX newGp = new GeneralPathX(); // Por rapidez |
102 | 102 |
private static double[] theData = new double[6]; |
103 |
private static double[] aux = new double[6]; |
|
103 | 104 |
|
104 | 105 |
private static PointConverter pointConverter = new PointConverter() { |
105 | 106 |
/* (non-Javadoc) |
... | ... | |
779 | 780 |
boolean bFirst = true; |
780 | 781 |
int xInt, yInt, antX = -1, antY = -1; |
781 | 782 |
|
783 |
|
|
782 | 784 |
theIterator = gp.getGeneralPathXIterator(); //, flatness); |
783 | 785 |
while (!theIterator.isDone()) { |
784 | 786 |
theType = theIterator.currentSegment(theData); |
... | ... | |
809 | 811 |
break; |
810 | 812 |
|
811 | 813 |
case PathIterator.SEG_QUADTO: |
812 |
System.out.println("Not supported here");
|
|
813 |
|
|
814 |
at.transform(theData,0,aux,0,2);
|
|
815 |
newGp.quadTo(aux[0], aux[1], aux[2], aux[3]); |
|
814 | 816 |
break; |
815 | 817 |
|
816 |
case PathIterator.SEG_CUBICTO: |
|
817 |
System.out.println("Not supported here");
|
|
818 |
|
|
818 |
case PathIterator.SEG_CUBICTO:
|
|
819 |
at.transform(theData,0,aux,0,3);
|
|
820 |
newGp.curveTo(aux[0], aux[1], aux[2], aux[3], aux[4], aux[5]); |
|
819 | 821 |
break; |
820 | 822 |
|
821 | 823 |
case PathIterator.SEG_CLOSE: |
Also available in: Unified diff