Class DwgSpline

java.lang.Object
org.gvsig.dwg.lib.DwgObject
org.gvsig.dwg.lib.objects.DwgSpline
All Implemented Interfaces:
Cloneable, IDwg2FMap, IDwg3DTestable

public class DwgSpline extends DwgObject implements IDwg3DTestable, IDwg2FMap
The DwgSpline class represents a DWG Spline
Author:
jmorell
  • Constructor Details

    • DwgSpline

      public DwgSpline(int index)
  • Method Details

    • 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.
    • has3DData

      public boolean has3DData()
      Specified by:
      has3DData in interface IDwg3DTestable
    • getZ

      public double getZ()
      Specified by:
      getZ in interface IDwg3DTestable
    • clone

      public Object clone()
      Overrides:
      clone in class DwgObject
    • fill

      protected void fill(DwgObject obj)
      Overrides:
      fill in class DwgObject
    • toFMapGeometry

      public org.gvsig.fmap.geom.Geometry toFMapGeometry(boolean is3DFile) throws org.gvsig.fmap.geom.exception.CreateGeometryException
      Specified by:
      toFMapGeometry in interface IDwg2FMap
      Throws:
      org.gvsig.fmap.geom.exception.CreateGeometryException
    • toFMapString

      public String toFMapString(boolean is3DFile)
      Specified by:
      toFMapString in interface IDwg2FMap
    • toString

      public String toString()
      Specified by:
      toString in interface IDwg2FMap
      Overrides:
      toString in class Object
    • getGeometryType

      public int getGeometryType()
      Specified by:
      getGeometryType in interface IDwg2FMap