Class DwgVertex2D
- java.lang.Object
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.objects.DwgVertex2D
-
public class DwgVertex2D extends DwgObject
The DwgVertex2D class represents a DWG Vertex2D- 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 DwgVertex2D()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetBulge()intgetFlags()double[]getPoint()voidreadDwgVertex2DV15(int[] data, int offset)Read a Vertex2D in the DWG format Version 15voidsetBulge(double bulge)voidsetFlags(int flags)voidsetPoint(double[] point)-
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
-
readDwgVertex2DV15
public void readDwgVertex2DV15(int[] data, int offset) throws ExceptionRead a Vertex2D 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.
-
getBulge
public double getBulge()
- Returns:
- Returns the bulge.
-
setBulge
public void setBulge(double bulge)
- Parameters:
bulge- The bulge to set.
-
getFlags
public int getFlags()
- Returns:
- Returns the flags.
-
setFlags
public void setFlags(int flags)
- Parameters:
flags- The flags to set.
-
getPoint
public double[] getPoint()
- Returns:
- Returns the point.
-
setPoint
public void setPoint(double[] point)
- Parameters:
point- The point to set.
-
-