public class DXFSpline extends DXFEntity
| Modifier and Type | Field and Description |
|---|---|
protected static int |
APPROXIMATION_STEPS |
protected int |
controlPointSize |
protected double |
controlPointTolerance |
protected int |
degree |
protected int |
fitPointSize |
protected double |
fitTolerance |
protected double[] |
knots |
protected double |
knotsTolerance |
protected int |
nodePointsSize |
protected java.util.List |
points |
protected double[] |
weights |
block, color, colorRGB, doc, extrusion, flags, id, layerID, lineType, linetypeScaleFactor, lineWeight, modelSpace, thickness, transparency, visibile| Constructor and Description |
|---|
DXFSpline() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSplinePoint(SplinePoint p) |
Bounds |
getBounds() |
int |
getControlPointSize() |
double |
getControlPointTolerance() |
int |
getDegree() |
int |
getFitPointSize() |
double |
getFitTolerance() |
double[] |
getKnots() |
double |
getKnotsTolerance() |
double |
getLength()
Returns the length of the entity or 0 if the entity has no length
|
int |
getNodePointsSize() |
java.util.Iterator |
getSplinePointIterator() |
java.lang.String |
getType() |
double[] |
getWeights() |
boolean |
isClosed() |
boolean |
isLinear() |
boolean |
isPeriodic() |
boolean |
isPlanar() |
boolean |
isRational() |
void |
setControlPointSize(int controlPointSize) |
void |
setControlPointTolerance(double controlPointTolerance) |
void |
setDegree(int degree) |
void |
setFitPointSize(int fitPointSize) |
void |
setFitTolerance(double fitTolerance) |
void |
setKnots(double[] knots) |
void |
setKnotsTolerance(double knotsTolerance) |
void |
setNodePointsSize(int nodePointsSize) |
void |
setWeights(double[] weights) |
protected DXFPolyline |
toDXFPolyline() |
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, setVisibileprotected static final int APPROXIMATION_STEPS
protected int degree
protected int nodePointsSize
protected int controlPointSize
protected int fitPointSize
protected double[] knots
protected double[] weights
protected java.util.List points
protected double fitTolerance
protected double knotsTolerance
protected double controlPointTolerance
public void addSplinePoint(SplinePoint p)
public java.util.Iterator getSplinePointIterator()
public boolean isRational()
public boolean isClosed()
public boolean isPeriodic()
public boolean isPlanar()
public boolean isLinear()
public int getControlPointSize()
public void setControlPointSize(int controlPointSize)
controlPointSize - The controlPointSize to set.public int getDegree()
public void setDegree(int degree)
degree - The degree to set.public int getFitPointSize()
public void setFitPointSize(int fitPointSize)
fitPointSize - The fitPointSize to set.public double getFitTolerance()
public void setFitTolerance(double fitTolerance)
fitTolerance - The fitTolerance to set.public double[] getKnots()
public void setKnots(double[] knots)
knots - The knots to set.public int getNodePointsSize()
public void setNodePointsSize(int nodePointsSize)
nodePointsSize - The nodePointsSize to set.public double[] getWeights()
public void setWeights(double[] weights)
weights - The weights to set.public double getControlPointTolerance()
public void setControlPointTolerance(double controlPointTolerance)
controlPointTolerance - The controlPointTolerance to set.public double getKnotsTolerance()
public void setKnotsTolerance(double knotsTolerance)
knotsTolerance - The knotsTolerance to set.public double getLength()
DXFEntityprotected DXFPolyline toDXFPolyline()