Class DwgSpline


  • public class DwgSpline
    extends DwgObject
    The DwgSpline class represents a DWG Spline
    Author:
    jmorell
    • Constructor Detail

      • DwgSpline

        public DwgSpline()
    • Method Detail

      • readDwgSplineV15

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

        public boolean isClosed()
        Returns:
        Returns the closed.
      • setClosed

        public void setClosed​(boolean closed)
        Parameters:
        closed - The closed to set.
      • getControlPoints

        public double[][] getControlPoints()
        Returns:
        Returns the controlPoints.
      • setControlPoints

        public void setControlPoints​(double[][] controlPoints)
        Parameters:
        controlPoints - The controlPoints to set.
      • getFitPoints

        public double[][] getFitPoints()
        Returns:
        Returns the fitPoints.
      • setFitPoints

        public void setFitPoints​(double[][] fitPoints)
        Parameters:
        fitPoints - The fitPoints to set.
      • getKnotPoints

        public double[] getKnotPoints()
        Returns:
        Returns the knotPoints.
      • setKnotPoints

        public void setKnotPoints​(double[] knotPoints)
        Parameters:
        knotPoints - The knotPoints to set.
      • getScenario

        public int getScenario()
        Returns:
        Returns the scenario.
      • setScenario

        public void setScenario​(int scenario)
        Parameters:
        scenario - The scenario to set.
      • getBeginTanVector

        public double[] getBeginTanVector()
        Returns:
        Returns the beginTanVector.
      • setBeginTanVector

        public void setBeginTanVector​(double[] beginTanVector)
        Parameters:
        beginTanVector - The beginTanVector to set.
      • getControlTolerance

        public double getControlTolerance()
        Returns:
        Returns the controlTolerance.
      • setControlTolerance

        public void setControlTolerance​(double controlTolerance)
        Parameters:
        controlTolerance - The controlTolerance to set.
      • getDegree

        public int getDegree()
        Returns:
        Returns the degree.
      • setDegree

        public void setDegree​(int degree)
        Parameters:
        degree - The degree to set.
      • getEndTanVector

        public double[] getEndTanVector()
        Returns:
        Returns the endTanVector.
      • setEndTanVector

        public void setEndTanVector​(double[] endTanVector)
        Parameters:
        endTanVector - The endTanVector to set.
      • getFitTolerance

        public double getFitTolerance()
        Returns:
        Returns the fitTolerance.
      • setFitTolerance

        public void setFitTolerance​(double fitTolerance)
        Parameters:
        fitTolerance - The fitTolerance to set.
      • getKnotTolerance

        public double getKnotTolerance()
        Returns:
        Returns the knotTolerance.
      • setKnotTolerance

        public void setKnotTolerance​(double knotTolerance)
        Parameters:
        knotTolerance - The knotTolerance to set.
      • isPeriodic

        public boolean isPeriodic()
        Returns:
        Returns the periodic.
      • setPeriodic

        public void setPeriodic​(boolean periodic)
        Parameters:
        periodic - The periodic to set.
      • isRational

        public boolean isRational()
        Returns:
        Returns the rational.
      • setRational

        public void setRational​(boolean rational)
        Parameters:
        rational - The rational to set.
      • getWeights

        public double[] getWeights()
        Returns:
        Returns the weights.
      • setWeights

        public void setWeights​(double[] weights)
        Parameters:
        weights - The weights to set.