Class DwgLine
- java.lang.Object
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.objects.DwgLine
-
public class DwgLine extends DwgObject
The DwgLine class represents a DWG Line- Author:
- jmorell
-
-
Field Summary
-
Fields inherited from class org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
color, extendedData, graphicData, graphicsFlag, handle, layerHandle, layerHandleCode, linetypeFlags, mode, noLinks, numReactors, plotstyleFlags, sizeInBits, subEntityHandle, type, version, xDicObjHandle
-
-
Constructor Summary
Constructors Constructor Description DwgLine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()double[]getExtrusion()double[]getP1()double[]getP2()doublegetThickness()booleanisZflag()voidreadDwgLineV15(int[] data, int offset)Read a Line in the DWG format Version 15voidsetExtrusion(double[] extrusion)voidsetP1(double[] p1)voidsetP2(double[] p2)voidsetThickness(double thickness)voidsetZflag(boolean zflag)-
Methods inherited from class org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
getColor, getExtendedData, getGraphicData, getHandle, getLayerHandle, getLayerHandleCode, getLinetypeFlags, getMode, getNumReactors, getPlotstyleFlags, getSizeInBits, getSubEntityHandle, getType, getVersion, getXDicObjHandle, isGraphicsFlag, isNoLinks, readObjectHeaderV15, readObjectTailV15, setColor, setExtendedData, setGraphicData, setGraphicsFlag, setHandle, setLayerHandle, setLayerHandleCode, setLinetypeFlags, setMode, setNoLinks, setNumReactors, setPlotstyleFlags, setSizeInBits, setSubEntityHandle, setType, setVersion, setXDicObjHandle
-
-
-
-
Method Detail
-
readDwgLineV15
public void readDwgLineV15(int[] data, int offset) throws ExceptionRead a Line in the DWG format Version 15- Parameters:
data- Array of unsigned bytes obtained from the DWG binary fileoffset- The current bit offset where the value begins- Throws:
Exception- If an unexpected bit value is found in the DWG file. Occurs when we are looking for LwPolylines.
-
getP1
public double[] getP1()
- Returns:
- Returns the p1.
-
setP1
public void setP1(double[] p1)
- Parameters:
p1- The p1 to set.
-
getP2
public double[] getP2()
- Returns:
- Returns the p2.
-
setP2
public void setP2(double[] p2)
- Parameters:
p2- The p2 to set.
-
getExtrusion
public double[] getExtrusion()
- Returns:
- Returns the extrusion.
-
setExtrusion
public void setExtrusion(double[] extrusion)
- Parameters:
extrusion- The extrusion to set.
-
getThickness
public double getThickness()
- Returns:
- Returns the thickness.
-
setThickness
public void setThickness(double thickness)
- Parameters:
thickness- The thickness to set.
-
isZflag
public boolean isZflag()
- Returns:
- Returns the zflag.
-
setZflag
public void setZflag(boolean zflag)
- Parameters:
zflag- The zflag to set.
-
-