| | |
| | | * |
| | | * @author Ulysses |
| | | * @version 0.1 |
| | | * @since 2006/5/18 �W�� 11:14:50 |
| | | */ |
| | | public class Element { |
| | | public static final int CONSTRUCTION_CLASS = 0; |
| | |
| | | raw[5] = (short) (temp >> 16 & 0x0000ffff); |
| | | raw[4] = (short) (temp & 0x0000ffff); |
| | | |
| | | // lowZ |
| | | raw[7] = 0; |
| | | raw[8] = 0; |
| | | |
| | | int highCoorX = DgnUtility.converCoordToUnit(bbox.getMaxX()); |
| | | temp = DgnUtility.converToDGN(highCoorX); |
| | | raw[9] = (short) (temp >> 16 & 0x0000ffff); |
| | |
| | | temp = DgnUtility.converToDGN(highCoorY); |
| | | raw[11] = (short) (temp >> 16 & 0x0000ffff); |
| | | raw[10] = (short) (temp & 0x0000ffff); |
| | | |
| | | // highZ |
| | | raw[13] = (short) 0xffff; |
| | | raw[12] = (short) 0xffff; |
| | | |
| | | } |
| | | |
| | | public boolean isComponentElement() { |
| | |
| | | } |
| | | } |
| | | |
| | | public short getFollowLength() { |
| | | return raw[1]; |
| | | } |
| | | |
| | | protected void setFollowLength(short value) { |
| | | assert (raw.length >= value + 2); |
| | | raw[1] = value; |
| | | } |
| | | |
| | | public void addUserAttributeData(byte[] pDataBlock, Class dataClass, int iLinkageId) throws Element.Exception { |
| | | } |
| | | |
| | |
| | | return true; |
| | | } |
| | | |
| | | public int getUserAttributeDataOffset() { |
| | | return (raw[15] + 16); |
| | | } |
| | | |
| | | public List<UserAttributeData> getUserAttributeData() { |
| | | short[] data; |
| | | short length, nextAttribute; |