Revision 10014 trunk/libraries/libDwg/src/com/iver/cit/jdwglib/dwg/readers/objreaders/v1314/DwgDictionaryVarReader1314.java
DwgDictionaryVarReader1314.java | ||
---|---|---|
45 | 45 |
* |
46 | 46 |
* $Id$ |
47 | 47 |
* $Log$ |
48 |
* Revision 1.1 2007-01-30 19:40:23 azabala |
|
48 |
* Revision 1.2 2007-01-31 18:11:06 fdiaz |
|
49 |
* Refactorizacion para usar la clase DwgHandleReference |
|
50 |
* |
|
51 |
* Revision 1.1 2007/01/30 19:40:23 azabala |
|
49 | 52 |
* *** empty log message *** |
50 | 53 |
* |
51 | 54 |
* |
... | ... | |
54 | 57 |
|
55 | 58 |
import java.util.List; |
56 | 59 |
|
60 |
import com.iver.cit.jdwglib.dwg.DwgHandleReference; |
|
57 | 61 |
import com.iver.cit.jdwglib.dwg.DwgObject; |
58 | 62 |
import com.iver.cit.jdwglib.dwg.DwgUtil; |
59 | 63 |
import com.iver.cit.jdwglib.dwg.objects.DwgDictionaryVar; |
... | ... | |
83 | 87 |
String text = ((String)val.get(1)); |
84 | 88 |
dic.setText(text); |
85 | 89 |
|
86 |
val = DwgUtil.getHandle(data, bitPos); |
|
87 |
bitPos = ((Integer)val.get(0)).intValue(); |
|
88 |
//TODO Tengo serias dudas de que los handles se puedan leer |
|
89 |
//asi (prueba para ver si nativeOrder permite prescindir de |
|
90 |
//poner BIG_ENDIAN |
|
91 |
int intHandle = DwgUtil.handleToInt(val); |
|
92 |
dic.setParentHandle(intHandle); |
|
93 |
|
|
94 |
for(int i = 0; i < numReactors; i++){ |
|
95 |
val = DwgUtil.getHandle(data, bitPos); |
|
96 |
bitPos = ((Integer)val.get(0)).intValue(); |
|
97 |
//no seteamos los reactors |
|
90 |
DwgHandleReference parentHandle = new DwgHandleReference(); |
|
91 |
bitPos = parentHandle.read(data, bitPos); |
|
92 |
dic.setParentHandle(parentHandle); |
|
93 |
|
|
94 |
DwgHandleReference reactorHandle; |
|
95 |
for (int i = 0; i < numReactors; i++) { |
|
96 |
reactorHandle = new DwgHandleReference(); |
|
97 |
bitPos = reactorHandle.read(data, bitPos); |
|
98 |
dic.addReactorHandle(reactorHandle); |
|
98 | 99 |
} |
99 |
val = DwgUtil.getHandle(data, bitPos); |
|
100 |
bitPos = ((Integer)val.get(0)).intValue(); |
|
101 |
int xdicHdl = DwgUtil.handleToInt(val); |
|
102 |
dic.setXDicObjHandle(xdicHdl); |
|
100 |
|
|
101 |
DwgHandleReference xDicObjHandle = new DwgHandleReference(); |
|
102 |
bitPos = xDicObjHandle.read(data, bitPos); |
|
103 |
dic.setXDicObjHandle(xDicObjHandle); |
|
104 |
|
|
103 | 105 |
} |
104 | 106 |
|
105 | 107 |
} |
Also available in: Unified diff