org.kabeja.dxf
Class DXFSpline

java.lang.Object
  extended by org.kabeja.dxf.DXFEntity
      extended by org.kabeja.dxf.DXFSpline

public class DXFSpline
extends DXFEntity

Author:
Field Summary
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
           
 
Fields inherited from class org.kabeja.dxf.DXFEntity
block, color, colorRGB, doc, extrusion, flags, id, layerID, lineType, linetypeScaleFactor, lineWeight, modelSpace, thickness, transparency, visibile
 
Constructor Summary
DXFSpline()
           
 
Method Summary
 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()
           
 
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
 

Field Detail

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
Constructor Detail

DXFSpline

public DXFSpline()
Method Detail

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()