com.onespatial.dwglib.objects.DimensionLinear Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dwg-lib Show documentation
Show all versions of dwg-lib Show documentation
dwg-lib is a Java library for reading AutoCad files version 2010 and later
The newest version!
package com.onespatial.dwglib.objects;
import com.onespatial.dwglib.FileVersion;
import com.onespatial.dwglib.bitstreams.BitBuffer;
import com.onespatial.dwglib.bitstreams.Handle;
import com.onespatial.dwglib.bitstreams.Point3D;
public class DimensionLinear extends Dimension {
public DimensionLinear(ObjectMap objectMap) {
super(objectMap);
}
@Override
public void readDimensionSpecificData(BitBuffer dataStream, BitBuffer stringStream, BitBuffer handleStream, FileVersion fileVersion) {
// 19.4.23 DIMENSION (LINEAR) (21) page 121
Point3D thirteenPoint = dataStream.get3BD();
Point3D fourteenPoint = dataStream.get3BD();
Point3D tenPoint = dataStream.get3BD();
double extensionLineRotation = dataStream.getBD();
double dimensionRotation = dataStream.getBD();
// Read all handles (until we figure out what they are)
Handle dimstyleHandle = handleStream.getHandle();
Handle anonymousBlockHandle = handleStream.getHandle();
handleStream.advanceToByteBoundary();
dataStream.assertEndOfStream();
stringStream.assertEndOfStream();
handleStream.assertEndOfStream();
}
public String toString() {
return "DIMENSION (LINEAR)";
}
}