Class DwgPoint
- java.lang.Object
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.objects.DwgPoint
-
public class DwgPoint extends DwgObject
The DwgPoint class represents a DWG Point- 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 DwgPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()double[]getExtrusion()double[]getPoint()doublegetThickness()doublegetXAxisAngle()voidreadDwgPointV15(int[] data, int offset)Read a Point in the DWG format Version 15voidsetExtrusion(double[] extrusion)voidsetPoint(double[] point)voidsetThickness(double thickness)voidsetXAxisAngle(double axisAngle)-
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
-
readDwgPointV15
public void readDwgPointV15(int[] data, int offset) throws ExceptionRead a Point 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.
-
getPoint
public double[] getPoint()
- Returns:
- Returns the point.
-
setPoint
public void setPoint(double[] point)
- Parameters:
point- The point 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.
-
getXAxisAngle
public double getXAxisAngle()
- Returns:
- Returns the xAxisAngle.
-
setXAxisAngle
public void setXAxisAngle(double axisAngle)
- Parameters:
axisAngle- The xAxisAngle to set.
-
-