Class DwgEllipse
- java.lang.Object
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.objects.DwgEllipse
-
public class DwgEllipse extends DwgObject
The DwgEllipse class represents a DWG Ellipse- 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 DwgEllipse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()doublegetAxisRatio()double[]getCenter()doublegetEndAngle()double[]getExtrusion()doublegetInitAngle()double[]getMajorAxisVector()voidreadDwgEllipseV15(int[] data, int offset)Read a Ellipse in the DWG format Version 15voidsetAxisRatio(double axisRatio)voidsetCenter(double[] center)voidsetEndAngle(double endAngle)voidsetExtrusion(double[] extrusion)voidsetInitAngle(double initAngle)voidsetMajorAxisVector(double[] majorAxisVector)-
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
-
readDwgEllipseV15
public void readDwgEllipseV15(int[] data, int offset) throws ExceptionRead a Ellipse 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.
-
getAxisRatio
public double getAxisRatio()
- Returns:
- Returns the axisRatio.
-
setAxisRatio
public void setAxisRatio(double axisRatio)
- Parameters:
axisRatio- The axisRatio to set.
-
getCenter
public double[] getCenter()
- Returns:
- Returns the center.
-
setCenter
public void setCenter(double[] center)
- Parameters:
center- The center to set.
-
getEndAngle
public double getEndAngle()
- Returns:
- Returns the endAngle.
-
setEndAngle
public void setEndAngle(double endAngle)
- Parameters:
endAngle- The endAngle to set.
-
getInitAngle
public double getInitAngle()
- Returns:
- Returns the initAngle.
-
setInitAngle
public void setInitAngle(double initAngle)
- Parameters:
initAngle- The initAngle to set.
-
getMajorAxisVector
public double[] getMajorAxisVector()
- Returns:
- Returns the majorAxisVector.
-
setMajorAxisVector
public void setMajorAxisVector(double[] majorAxisVector)
- Parameters:
majorAxisVector- The majorAxisVector to set.
-
getExtrusion
public double[] getExtrusion()
- Returns:
- Returns the extrusion.
-
setExtrusion
public void setExtrusion(double[] extrusion)
- Parameters:
extrusion- The extrusion to set.
-
-