| | |
| | | import java.nio.BufferUnderflowException; |
| | | import java.nio.ByteBuffer; |
| | | import java.nio.ByteOrder; |
| | | import java.nio.ShortBuffer; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | import com.vividsolutions.jts.geom.Envelope; |
| | | |
| | | import com.ximple.util.DgnUtility; |
| | | |
| | | /** |
| | | * Record |
| | |
| | | { |
| | | int lowCoorX = (int) ((raw[3] << 16) & 0xffff0000) + (raw[2] & 0x0000ffff); |
| | | |
| | | lowCoorX = Utility.convertFromDGN(lowCoorX); |
| | | lowCoorX = DgnUtility.convertFromDGN(lowCoorX); |
| | | |
| | | int lowCoorY = (int) ((raw[5] << 16) & 0xffff0000) + (raw[4] & 0x0000ffff); |
| | | |
| | | lowCoorY = Utility.convertFromDGN(lowCoorY); |
| | | lowCoorY = DgnUtility.convertFromDGN(lowCoorY); |
| | | |
| | | int highCoorX = (int) ((raw[9] << 16) & 0xffff0000) + (raw[8] & 0x0000ffff); |
| | | |
| | | highCoorX = Utility.convertFromDGN(highCoorX); |
| | | highCoorX = DgnUtility.convertFromDGN(highCoorX); |
| | | |
| | | int highCoorY = (int) ((raw[11] << 16) & 0xffff0000) + (raw[10] & 0x0000ffff); |
| | | |
| | | highCoorY = Utility.convertFromDGN(highCoorY); |
| | | highCoorY = DgnUtility.convertFromDGN(highCoorY); |
| | | |
| | | return new Envelope(Utility.converUnitToCoord(lowCoorX), Utility.converUnitToCoord(highCoorX), |
| | | Utility.converUnitToCoord(lowCoorY), Utility.converUnitToCoord(highCoorY)); |
| | | return new Envelope(DgnUtility.converUnitToCoord(lowCoorX), DgnUtility.converUnitToCoord(highCoorX), |
| | | DgnUtility.converUnitToCoord(lowCoorY), DgnUtility.converUnitToCoord(highCoorY)); |
| | | } |
| | | |
| | | public boolean isComponentElement() |