| | |
| | | */ |
| | | public class Element |
| | | { |
| | | public static final int CONSTRUCTION_CLASS = 0; |
| | | public static final int CONSTRUCTION_CLASS = 0; |
| | | public static final int CONSTRUCTION_RULE_CLASS = 0; |
| | | public static final int DIMENSION_CLASS = 0; |
| | | public static final int LINEAR_PATTERNED_CLASS = 0; |
| | | public static final int MAX_ELEMENT_SIZE = 0; |
| | | public static final int MAX_VERTICES = 100; |
| | | public static final int PATTERN_AREA = 0; |
| | | public static final int DIMENSION_CLASS = 0; |
| | | public static final int LINEAR_PATTERNED_CLASS = 0; |
| | | public static final int MAX_ELEMENT_SIZE = 0; |
| | | public static final int MAX_VERTICES = 100; |
| | | public static final int PATTERN_AREA = 0; |
| | | public static final int PATTERN_COMPONENT_CLASS = 0; |
| | | public static final int PATTERN_CROSSHATCH = 0; |
| | | public static final int PATTERN_HATCH = 0; |
| | | public static final int PRIMARY_CLASS = 0; |
| | | public static final int PRIMARY_RULE_CLASS = 0; |
| | | public static final int PATTERN_CROSSHATCH = 0; |
| | | public static final int PATTERN_HATCH = 0; |
| | | public static final int PRIMARY_CLASS = 0; |
| | | public static final int PRIMARY_RULE_CLASS = 0; |
| | | |
| | | protected short[] raw; |
| | | protected byte attrOffset = 0; |
| | | protected ByteBuffer rawBuffer; |
| | | protected short[] raw; |
| | | protected byte attrOffset = 0; |
| | | protected ByteBuffer rawBuffer; |
| | | |
| | | public Element(byte[] raw) |
| | | { |
| | |
| | | highCoorY = DgnUtility.convertFromDGN(highCoorY); |
| | | |
| | | return new Envelope(DgnUtility.converUnitToCoord(lowCoorX), DgnUtility.converUnitToCoord(highCoorX), |
| | | DgnUtility.converUnitToCoord(lowCoorY), DgnUtility.converUnitToCoord(highCoorY)); |
| | | DgnUtility.converUnitToCoord(lowCoorY), DgnUtility.converUnitToCoord(highCoorY)); |
| | | } |
| | | |
| | | public boolean isComponentElement() |
| | |
| | | public List<UserAttributeData> getUserAttributeData() |
| | | { |
| | | short[] data; |
| | | short length, nextAttribute; |
| | | short length, nextAttribute; |
| | | |
| | | if (raw[15] <= 0) |
| | | { |
| | |
| | | } |
| | | |
| | | nextAttribute = (short) (index + length + 1); |
| | | data = new short[length]; |
| | | data = new short[length]; |
| | | System.arraycopy(raw, index + 1, data, 0, length); |
| | | |
| | | if (data[0] == (short) 0x0020) |
| | |
| | | buffer.get(dst, 4, dst.length - 4); |
| | | } catch (BufferUnderflowException exception) |
| | | { |
| | | throw exception; |
| | | throw exception; |
| | | } |
| | | |
| | | ByteBuffer tmpBuffer = ByteBuffer.wrap(dst); |
| | |
| | | tmpBuffer.position(0); |
| | | tmpBuffer.putShort(signature); |
| | | tmpBuffer.putShort((short) ((length / 2) - 2)); |
| | | |
| | | |
| | | /* |
| | | ShortBuffer sbuffer = tmpBuffer.asShortBuffer(); |
| | | |