Class DwgArc


  • public class DwgArc
    extends DwgObject
    The DwgArc class represents a DWG Arc
    Author:
    jmorell
    • Constructor Detail

      • DwgArc

        public DwgArc()
    • Method Detail

      • readDwgArcV15

        public void readDwgArcV15​(int[] data,
                                  int offset)
                           throws Exception
        Read an Arc in the DWG format Version 15
        Parameters:
        data - Array of unsigned bytes obtained from the DWG binary file
        offset - 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.
      • 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.
      • getRadius

        public double getRadius()
        Returns:
        Returns the radius.
      • setRadius

        public void setRadius​(double radius)
        Parameters:
        radius - The radius to set.
      • getExtrusion

        public double[] getExtrusion()
        Returns:
        Returns the extrusion.
      • getThickness

        public double getThickness()
        Returns:
        Returns the thickness.
      • setThickness

        public void setThickness​(double thickness)
        Parameters:
        thickness - The thickness to set.
      • setExtrusion

        public void setExtrusion​(double[] extrusion)
        Parameters:
        extrusion - The extrusion to set.