Revision 10097 trunk/libraries/libDwg/src/com/iver/cit/jdwglib/dwg/readers/objreaders/v1314/DwgAttribReader1314.java
DwgAttribReader1314.java | ||
---|---|---|
4 | 4 |
*/ |
5 | 5 |
package com.iver.cit.jdwglib.dwg.readers.objreaders.v1314; |
6 | 6 |
|
7 |
import com.iver.cit.jdwglib.dwg.CorruptedDwgEntityException; |
|
7 | 8 |
import com.iver.cit.jdwglib.dwg.DwgObject; |
8 | 9 |
import com.iver.cit.jdwglib.dwg.readers.IDwgFileReader; |
9 | 10 |
import com.iver.cit.jdwglib.dwg.readers.IDwgObjectReader; |
... | ... | |
14 | 15 |
* TODO To change the template for this generated type comment go to |
15 | 16 |
* Window - Preferences - Java - Code Style - Code Templates |
16 | 17 |
*/ |
17 |
public class DwgAttribReader1314 implements IDwgObjectReader {
|
|
18 |
public class DwgAttribReader1314 extends AbstractDwg1314Reader {
|
|
18 | 19 |
|
19 | 20 |
/* (non-Javadoc) |
20 | 21 |
* @see com.iver.cit.jdwglib.dwg.readers.IDwgObjectReader#readSpecificObj(int[], int, com.iver.cit.jdwglib.dwg.DwgObject) |
21 | 22 |
*/ |
22 |
public void readSpecificObj(int[] data, int offset, DwgObject dwgObj) { |
|
23 |
// TODO Auto-generated method stub |
|
24 |
|
|
23 |
public void readSpecificObj(int[] data, int offset, DwgObject dwgObj) throws RuntimeException, CorruptedDwgEntityException { |
|
24 |
int bitPos = offset; |
|
25 |
bitPos = headTailReader.readObjectHeader(data, offset, dwgObj); |
|
26 |
|
|
27 |
|
|
28 |
/* |
|
29 |
_bitpos = offset |
|
30 |
_bitpos = header_read(ent, data, _bitpos) |
|
31 |
_bitpos, _val = dwgutil.get_bit_double(data, _bitpos) |
|
32 |
ent.setEntityData('elevation', _val) |
|
33 |
_bitpos, _x = dwgutil.get_raw_double(data, _bitpos) |
|
34 |
_bitpos, _y = dwgutil.get_raw_double(data, _bitpos) |
|
35 |
ent.setEntityData('insertion_point', (_x, _y)) |
|
36 |
_bitpos, _x = dwgutil.get_raw_double(data, _bitpos) |
|
37 |
_bitpos, _y = dwgutil.get_raw_double(data, _bitpos) |
|
38 |
ent.setEntityData('alignment_point', (_x, _y)) |
|
39 |
_bitpos, _x = dwgutil.get_bit_double(data, _bitpos) |
|
40 |
_bitpos, _y = dwgutil.get_bit_double(data, _bitpos) |
|
41 |
_bitpos, _z = dwgutil.get_bit_double(data, _bitpos) |
|
42 |
ent.setEntityData('extrusion', (_x, _y, _z)) |
|
43 |
_bitpos, _val = dwgutil.get_bit_double(data, _bitpos) |
|
44 |
ent.setEntityData('thickness', _val) |
|
45 |
_bitpos, _val = dwgutil.get_bit_double(data, _bitpos) |
|
46 |
ent.setEntityData('oblique_angle', _val) |
|
47 |
_bitpos, _val = dwgutil.get_bit_double(data, _bitpos) |
|
48 |
ent.setEntityData('rotation_angle', _val) |
|
49 |
_bitpos, _val = dwgutil.get_bit_double(data, _bitpos) |
|
50 |
ent.setEntityData('height', _val) |
|
51 |
_bitpos, _val = dwgutil.get_bit_double(data, _bitpos) |
|
52 |
ent.setEntityData('width', _val) |
|
53 |
_bitpos, _text = dwgutil.get_text_string(data, _bitpos) |
|
54 |
ent.setEntityData('text', _text) |
|
55 |
_bitpos, _val = dwgutil.get_bit_short(data, _bitpos) |
|
56 |
ent.setEntityData('generation', _val) |
|
57 |
_bitpos, _val = dwgutil.get_bit_short(data, _bitpos) |
|
58 |
ent.setEntityData('halign', _val) |
|
59 |
_bitpos, _val = dwgutil.get_bit_short(data, _bitpos) |
|
60 |
ent.setEntityData('valign', _val) |
|
61 |
_bitpos, _text = dwgutil.get_text_string(data, _bitpos) |
|
62 |
ent.setEntityData('tag', _text) |
|
63 |
_bitpos, _val = dwgutil.get_bit_short(data, _bitpos) |
|
64 |
ent.setEntityData('field_length', _val) |
|
65 |
_bitpos, _val = dwgutil.get_raw_char(data, _bitpos) |
|
66 |
ent.setEntityData('flags', _val) |
|
67 |
_bitpos = tail_read(ent, data, _bitpos) |
|
68 |
_bitpos, _handle = dwgutil.get_handle(data, _bitpos) |
|
69 |
ent.setEntityData('style_handle', _handle) |
|
70 |
**/ |
|
25 | 71 |
} |
26 |
|
|
27 |
/* (non-Javadoc) |
|
28 |
* @see com.iver.cit.jdwglib.dwg.readers.IDwgObjectReader#setFileReader(com.iver.cit.jdwglib.dwg.readers.IDwgFileReader) |
|
29 |
*/ |
|
30 |
public void setFileReader(IDwgFileReader headTailReader) { |
|
31 |
// TODO Auto-generated method stub |
|
32 |
|
|
33 |
} |
|
34 |
|
|
35 | 72 |
} |
Also available in: Unified diff