Class DwgPolyline2D


  • public class DwgPolyline2D
    extends DwgObject
    The DwgPolyline2D class represents a DWG Polyline2D
    Author:
    jmorell
    • Constructor Detail

      • DwgPolyline2D

        public DwgPolyline2D()
    • Method Detail

      • readDwgPolyline2DV15

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

        public int getFirstVertexHandle()
        Returns:
        Returns the firstVertexHandle.
      • setFirstVertexHandle

        public void setFirstVertexHandle​(int firstVertexHandle)
        Parameters:
        firstVertexHandle - The firstVertexHandle to set.
      • getFlags

        public int getFlags()
        Returns:
        Returns the flags.
      • setFlags

        public void setFlags​(int flags)
        Parameters:
        flags - The flags to set.
      • getLastVertexHandle

        public int getLastVertexHandle()
        Returns:
        Returns the lastVertexHandle.
      • setLastVertexHandle

        public void setLastVertexHandle​(int lastVertexHandle)
        Parameters:
        lastVertexHandle - The lastVertexHandle to set.
      • getPts

        public Point2D[] getPts()
        Returns:
        Returns the pts.
      • setPts

        public void setPts​(Point2D[] pts)
        Parameters:
        pts - The pts to set.
      • getBulges

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

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

        public double getInitWidth()
        Returns:
        Returns the initWidth.
      • setInitWidth

        public void setInitWidth​(double initWidth)
        Parameters:
        initWidth - The initWidth to set.
      • getSeqendHandle

        public int getSeqendHandle()
        Returns:
        Returns the seqendHandle.
      • setSeqendHandle

        public void setSeqendHandle​(int seqendHandle)
        Parameters:
        seqendHandle - The seqendHandle to set.
      • getThickness

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

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

        public int getCurveType()
        Returns:
        Returns the curveType.
      • setCurveType

        public void setCurveType​(int curveType)
        Parameters:
        curveType - The curveType to set.
      • getElevation

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

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

        public double getEndWidth()
        Returns:
        Returns the endWidth.
      • setEndWidth

        public void setEndWidth​(double endWidth)
        Parameters:
        endWidth - The endWidth to set.
      • getExtrusion

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

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