Class DwgSpline
- java.lang.Object
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.objects.DwgSpline
-
public class DwgSpline extends DwgObject
The DwgSpline class represents a DWG Spline- Author:
- jmorell
-
-
Field Summary
-
Fields inherited from class org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
color, extendedData, graphicData, graphicsFlag, handle, layerHandle, layerHandleCode, linetypeFlags, mode, noLinks, numReactors, plotstyleFlags, sizeInBits, subEntityHandle, type, version, xDicObjHandle
-
-
Constructor Summary
Constructors Constructor Description DwgSpline()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()double[]getBeginTanVector()double[][]getControlPoints()doublegetControlTolerance()intgetDegree()double[]getEndTanVector()double[][]getFitPoints()doublegetFitTolerance()double[]getKnotPoints()doublegetKnotTolerance()intgetScenario()double[]getWeights()booleanisClosed()booleanisPeriodic()booleanisRational()voidreadDwgSplineV15(int[] data, int offset)Read a Spline in the DWG format Version 15voidsetBeginTanVector(double[] beginTanVector)voidsetClosed(boolean closed)voidsetControlPoints(double[][] controlPoints)voidsetControlTolerance(double controlTolerance)voidsetDegree(int degree)voidsetEndTanVector(double[] endTanVector)voidsetFitPoints(double[][] fitPoints)voidsetFitTolerance(double fitTolerance)voidsetKnotPoints(double[] knotPoints)voidsetKnotTolerance(double knotTolerance)voidsetPeriodic(boolean periodic)voidsetRational(boolean rational)voidsetScenario(int scenario)voidsetWeights(double[] weights)-
Methods inherited from class org.hortonmachine.gears.io.dxfdwg.libs.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
-
-
-
-
Method Detail
-
readDwgSplineV15
public void readDwgSplineV15(int[] data, int offset) throws ExceptionRead 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:
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.
-
-