com.iver.cit.jdwglib.dwg.objects
Class DwgSpline
java.lang.Object
com.iver.cit.jdwglib.dwg.DwgObject
com.iver.cit.jdwglib.dwg.objects.DwgSpline
- public class DwgSpline
- extends DwgObject
The DwgSpline class represents a DWG Spline
- Author:
- jmorell
Methods inherited from class com.iver.cit.jdwglib.dwg.DwgObject |
getColor, getExtendedData, getGraphicData, getHandle, getLayerHandle, getLayerHandleCode, getLinetypeFlags, getMode, getNumReactors, getPlotstyleFlags, getSizeInBits, getSubEntityHandle, getType, getVersion, getXDicObjHandle, isGraphicsFlag, isNoLinks, readObjectHeaderV15, readObjectTailV15, setColor, setExtendedData, setGraphicData, setGraphicsFlag, setHandle, setLayerHandle, setLayerHandleCode, setLinetypeFlags, setMode, setNoLinks, setNumReactors, setPlotstyleFlags, setSizeInBits, setSubEntityHandle, setType, setVersion, setXDicObjHandle |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DwgSpline
public DwgSpline()
readDwgSplineV15
public void readDwgSplineV15(int[] data,
int offset)
throws java.lang.Exception
- Read a Spline in the DWG format Version 15
- Parameters:
data
- Array of unsigned bytes obtained from the DWG binary fileoffset
- The current bit offset where the value begins
- Throws:
java.lang.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.
clone
public java.lang.Object clone()
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.