Class DwgLwPolyline


  • public class DwgLwPolyline
    extends DwgObject
    The DwgLwPolyline class represents a DWG LwPolyline
    Author:
    jmorell
    • Constructor Detail

      • DwgLwPolyline

        public DwgLwPolyline()
    • Method Detail

      • readDwgLwPolylineV15

        public void readDwgLwPolylineV15​(int[] data,
                                         int offset)
                                  throws Exception
        Read a LwPolyline 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.
      • getBulges

        public double[] getBulges()
        Returns:
        Returns the bulges.
      • setBulges

        public void setBulges​(double[] bulges)
        Parameters:
        bulges - The bulges to set.
      • getFlag

        public int getFlag()
        Returns:
        Returns the flag.
      • setFlag

        public void setFlag​(int flag)
        Parameters:
        flag - The flag to set.
      • getVertices

        public Point2D[] getVertices()
        Returns:
        Returns the vertices.
      • setVertices

        public void setVertices​(Point2D[] vertices)
        Parameters:
        vertices - The vertices to set.
      • getElevation

        public double getElevation()
        Returns:
        Returns the elevation.
      • setElevation

        public void setElevation​(double elevation)
        Parameters:
        elevation - The elevation to set.
      • getNormal

        public double[] getNormal()
        Returns:
        Returns the normal.
      • getConstWidth

        public double getConstWidth()
        Returns:
        Returns the constWidth.
      • setConstWidth

        public void setConstWidth​(double constWidth)
        Parameters:
        constWidth - The constWidth to set.
      • getThickness

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

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

        public double[][] getWidths()
        Returns:
        Returns the widths.
      • setWidths

        public void setWidths​(double[][] widths)
        Parameters:
        widths - The widths to set.
      • setNormal

        public void setNormal​(double[] normal)
        Parameters:
        normal - The normal to set.