Revision 177 trunk/libraries/libCq CMS for java.old/src/org/cresques/px/dxf/DxfFeatureMaker.java
DxfFeatureMaker.java | ||
---|---|---|
587 | 587 |
Double rotD = new Double(grp.getDataAsDouble(50)); |
588 | 588 |
String rotS = rotD.toString(); |
589 | 589 |
feature.setProp("textRotation", rotS); |
590 |
//System.out.println("rotS = " + rotS); |
|
590 | 591 |
} else { |
591 | 592 |
feature.setProp("textRotation", "0.0"); |
592 | 593 |
} |
... | ... | |
1207 | 1208 |
//blk.setBlkName(blockName); |
1208 | 1209 |
blk.setProp("blockName", blockName); |
1209 | 1210 |
} |
1210 |
if (grp.hasCode(3)) { |
|
1211 |
// 041001: Anulado porque provoca que no se visualizen bloques de la |
|
1212 |
// leyenda en m54643.dxf. |
|
1213 |
/*if (grp.hasCode(3)) { |
|
1211 | 1214 |
blockName = grp.getDataAsString(3); |
1212 | 1215 |
//blk.setBlkName(blockName); |
1213 | 1216 |
blk.setProp("blockName", blockName); |
1214 |
} |
|
1217 |
}*/
|
|
1215 | 1218 |
if (grp.hasCode(10)) { |
1216 | 1219 |
//basePoint.setLocation(grp.getDataAsDouble(10), basePoint.getY()); |
1217 | 1220 |
//blk.setBPoint(basePoint); |
... | ... | |
1422 | 1425 |
feature3.setProp("thickness", feature2.getProp("thickness")); |
1423 | 1426 |
if (point.isText) { |
1424 | 1427 |
feature3.setProp("text", feature2.getProp("text")); |
1428 |
feature3.setProp("textHeight", feature2.getProp("textHeight")); |
|
1429 |
double auxR = Double.parseDouble(feature2.getProp("textRotation")); |
|
1430 |
System.out.println("auxR = " + auxR); |
|
1431 |
auxR = auxR + rAngleGra; |
|
1432 |
feature3.setProp("textRotation", Double.toString(auxR)); |
|
1433 |
System.out.println("feature3.getProp(textRotation) = " + feature3.getProp("textRotation")); |
|
1425 | 1434 |
} |
1435 |
pointt.isText = true; |
|
1426 | 1436 |
feature3.setGeometry(pointt); |
1427 | 1437 |
|
1428 |
if (addingToBlock == false) { |
|
1438 |
//if (addingToBlock == false) {
|
|
1429 | 1439 |
features.add(feature3); |
1430 |
} |
|
1440 |
//}
|
|
1431 | 1441 |
} else { |
1432 | 1442 |
System.out.println("gestionaInserts: Encontrado elemento desconocido"); |
1433 | 1443 |
} |
Also available in: Unified diff