Class DwgLwPolyline
- java.lang.Object
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.objects.DwgLwPolyline
-
public class DwgLwPolyline extends DwgObject
The DwgLwPolyline class represents a DWG LwPolyline- 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 DwgLwPolyline()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()double[]getBulges()doublegetConstWidth()doublegetElevation()intgetFlag()double[]getNormal()doublegetThickness()Point2D[]getVertices()double[][]getWidths()voidreadDwgLwPolylineV15(int[] data, int offset)Read a LwPolyline in the DWG format Version 15voidsetBulges(double[] bulges)voidsetConstWidth(double constWidth)voidsetElevation(double elevation)voidsetFlag(int flag)voidsetNormal(double[] normal)voidsetThickness(double thickness)voidsetVertices(Point2D[] vertices)voidsetWidths(double[][] widths)-
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
-
readDwgLwPolylineV15
public void readDwgLwPolylineV15(int[] data, int offset) throws ExceptionRead a LwPolyline 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.
-
getBulges
public double[] getBulges()
- Returns:
- Returns the bulges.
-
setBulges
public void setBulges(double[] bulges)
- Parameters:
bulges- The bulges to set.
-
getFlag
public int getFlag()
- Returns:
- Returns the flag.
-
setFlag
public void setFlag(int flag)
- Parameters:
flag- The flag to set.
-
getVertices
public Point2D[] getVertices()
- Returns:
- Returns the vertices.
-
setVertices
public void setVertices(Point2D[] vertices)
- Parameters:
vertices- The vertices to set.
-
getElevation
public double getElevation()
- Returns:
- Returns the elevation.
-
setElevation
public void setElevation(double elevation)
- Parameters:
elevation- The elevation to set.
-
getNormal
public double[] getNormal()
- Returns:
- Returns the normal.
-
getConstWidth
public double getConstWidth()
- Returns:
- Returns the constWidth.
-
setConstWidth
public void setConstWidth(double constWidth)
- Parameters:
constWidth- The constWidth to set.
-
getThickness
public double getThickness()
- Returns:
- Returns the thickness.
-
setThickness
public void setThickness(double thickness)
- Parameters:
thickness- The thickness to set.
-
getWidths
public double[][] getWidths()
- Returns:
- Returns the widths.
-
setWidths
public void setWidths(double[][] widths)
- Parameters:
widths- The widths to set.
-
setNormal
public void setNormal(double[] normal)
- Parameters:
normal- The normal to set.
-
-