Class DwgPolyline2D
- java.lang.Object
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.objects.DwgPolyline2D
-
public class DwgPolyline2D extends DwgObject
The DwgPolyline2D class represents a DWG Polyline2D- 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 DwgPolyline2D()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()double[]getBulges()intgetCurveType()doublegetElevation()doublegetEndWidth()double[]getExtrusion()intgetFirstVertexHandle()intgetFlags()doublegetInitWidth()intgetLastVertexHandle()Point2D[]getPts()intgetSeqendHandle()doublegetThickness()voidreadDwgPolyline2DV15(int[] data, int offset)Read a Polyline2D in the DWG format Version 15voidsetBulges(double[] bulges)voidsetCurveType(int curveType)voidsetElevation(double elevation)voidsetEndWidth(double endWidth)voidsetExtrusion(double[] extrusion)voidsetFirstVertexHandle(int firstVertexHandle)voidsetFlags(int flags)voidsetInitWidth(double initWidth)voidsetLastVertexHandle(int lastVertexHandle)voidsetPts(Point2D[] pts)voidsetSeqendHandle(int seqendHandle)voidsetThickness(double thickness)-
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
-
readDwgPolyline2DV15
public void readDwgPolyline2DV15(int[] data, int offset) throws ExceptionRead a Polyline2D 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.
-
getFirstVertexHandle
public int getFirstVertexHandle()
- Returns:
- Returns the firstVertexHandle.
-
setFirstVertexHandle
public void setFirstVertexHandle(int firstVertexHandle)
- Parameters:
firstVertexHandle- The firstVertexHandle to set.
-
getFlags
public int getFlags()
- Returns:
- Returns the flags.
-
setFlags
public void setFlags(int flags)
- Parameters:
flags- The flags to set.
-
getLastVertexHandle
public int getLastVertexHandle()
- Returns:
- Returns the lastVertexHandle.
-
setLastVertexHandle
public void setLastVertexHandle(int lastVertexHandle)
- Parameters:
lastVertexHandle- The lastVertexHandle to set.
-
getPts
public Point2D[] getPts()
- Returns:
- Returns the pts.
-
setPts
public void setPts(Point2D[] pts)
- Parameters:
pts- The pts to set.
-
getBulges
public double[] getBulges()
- Returns:
- Returns the bulges.
-
setBulges
public void setBulges(double[] bulges)
- Parameters:
bulges- The bulges to set.
-
getInitWidth
public double getInitWidth()
- Returns:
- Returns the initWidth.
-
setInitWidth
public void setInitWidth(double initWidth)
- Parameters:
initWidth- The initWidth to set.
-
getSeqendHandle
public int getSeqendHandle()
- Returns:
- Returns the seqendHandle.
-
setSeqendHandle
public void setSeqendHandle(int seqendHandle)
- Parameters:
seqendHandle- The seqendHandle to set.
-
getThickness
public double getThickness()
- Returns:
- Returns the thickness.
-
setThickness
public void setThickness(double thickness)
- Parameters:
thickness- The thickness to set.
-
getCurveType
public int getCurveType()
- Returns:
- Returns the curveType.
-
setCurveType
public void setCurveType(int curveType)
- Parameters:
curveType- The curveType to set.
-
getElevation
public double getElevation()
- Returns:
- Returns the elevation.
-
setElevation
public void setElevation(double elevation)
- Parameters:
elevation- The elevation to set.
-
getEndWidth
public double getEndWidth()
- Returns:
- Returns the endWidth.
-
setEndWidth
public void setEndWidth(double endWidth)
- Parameters:
endWidth- The endWidth to set.
-
getExtrusion
public double[] getExtrusion()
- Returns:
- Returns the extrusion.
-
setExtrusion
public void setExtrusion(double[] extrusion)
- Parameters:
extrusion- The extrusion to set.
-
-