Fields inherited from class org.kabeja.dxf.DXFEntity |
block, color, colorRGB, doc, extrusion, flags, id, layerID, lineType, linetypeScaleFactor, lineWeight, modelSpace, thickness, transparency, visibile |
Methods inherited from class org.kabeja.dxf.DXFEntity |
getColor, getColorRGB, getDXFDocument, getExtrusion, getFlags, getID, getLayerName, getLineType, getLinetypeScaleFactor, getLineWeight, getThickness, getTransparency, isBlockEntity, isModelSpace, isOmitLineType, isVisibile, setBlockEntity, setColor, setColorRGB, setDXFDocument, setExtrusion, setExtrusionX, setExtrusionY, setExtrusionZ, setFlags, setID, setLayerName, setLineType, setLinetypeScaleFactor, setLineWeight, setModelSpace, setThickness, setTransparency, setVisibile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
APPROXIMATION_STEPS
protected static final int APPROXIMATION_STEPS
- See Also:
- Constant Field Values
degree
protected int degree
nodePointsSize
protected int nodePointsSize
controlPointSize
protected int controlPointSize
fitPointSize
protected int fitPointSize
knots
protected double[] knots
weights
protected double[] weights
points
protected java.util.List points
fitTolerance
protected double fitTolerance
knotsTolerance
protected double knotsTolerance
controlPointTolerance
protected double controlPointTolerance
DXFSpline
public DXFSpline()
getBounds
public Bounds getBounds()
- Specified by:
getBounds
in class DXFEntity
getType
public java.lang.String getType()
- Specified by:
getType
in class DXFEntity
addSplinePoint
public void addSplinePoint(SplinePoint p)
getSplinePointIterator
public java.util.Iterator getSplinePointIterator()
isRational
public boolean isRational()
isClosed
public boolean isClosed()
isPeriodic
public boolean isPeriodic()
isPlanar
public boolean isPlanar()
isLinear
public boolean isLinear()
getControlPointSize
public int getControlPointSize()
- Returns:
- Returns the controlPointSize.
setControlPointSize
public void setControlPointSize(int controlPointSize)
- Parameters:
controlPointSize
- The controlPointSize to set.
getDegree
public int getDegree()
- Returns:
- Returns the degree.
setDegree
public void setDegree(int degree)
- Parameters:
degree
- The degree to set.
getFitPointSize
public int getFitPointSize()
- Returns:
- Returns the fitPointSize.
setFitPointSize
public void setFitPointSize(int fitPointSize)
- Parameters:
fitPointSize
- The fitPointSize to set.
getFitTolerance
public double getFitTolerance()
- Returns:
- Returns the fitTolerance.
setFitTolerance
public void setFitTolerance(double fitTolerance)
- Parameters:
fitTolerance
- The fitTolerance to set.
getKnots
public double[] getKnots()
- Returns:
- Returns the knots.
setKnots
public void setKnots(double[] knots)
- Parameters:
knots
- The knots to set.
getNodePointsSize
public int getNodePointsSize()
- Returns:
- Returns the nodePointsSize.
setNodePointsSize
public void setNodePointsSize(int nodePointsSize)
- Parameters:
nodePointsSize
- The nodePointsSize to set.
getWeights
public double[] getWeights()
- Returns:
- Returns the weights.
setWeights
public void setWeights(double[] weights)
- Parameters:
weights
- The weights to set.
getControlPointTolerance
public double getControlPointTolerance()
- Returns:
- Returns the controlPointTolerance.
setControlPointTolerance
public void setControlPointTolerance(double controlPointTolerance)
- Parameters:
controlPointTolerance
- The controlPointTolerance to set.
getKnotsTolerance
public double getKnotsTolerance()
- Returns:
- Returns the knotsTolerance.
setKnotsTolerance
public void setKnotsTolerance(double knotsTolerance)
- Parameters:
knotsTolerance
- The knotsTolerance to set.
getLength
public double getLength()
- Description copied from class:
DXFEntity
- Returns the length of the entity or 0 if the entity has no length
- Specified by:
getLength
in class DXFEntity
- Returns:
toDXFPolyline
protected DXFPolyline toDXFPolyline()