public class DXFPolyline extends DXFEntity
| Modifier and Type | Field and Description |
|---|---|
protected int |
columns |
protected boolean |
constantWidth |
protected double |
endWidth |
protected static double |
QUARTER_CIRCLE_ANGLE |
protected int |
rows |
protected double |
startWidth |
protected int |
surefaceDensityColumns |
protected int |
surefaceDensityRows |
protected int |
surefaceType |
protected java.util.ArrayList |
vertices |
block, color, colorRGB, doc, extrusion, flags, id, layerID, lineType, linetypeScaleFactor, lineWeight, modelSpace, thickness, transparency, visibile| Constructor and Description |
|---|
DXFPolyline() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToBounds(DXFVertex start,
DXFVertex end,
Bounds bounds) |
void |
addVertex(DXFVertex vertex) |
Bounds |
getBounds() |
int |
getColumns() |
double |
getEndWidth() |
double |
getLength()
Returns the length of the entity or 0 if the entity has no length
|
protected double |
getLength(DXFPoint start,
DXFPoint end)
Returns the distance between 2 DXFPoints
|
protected double |
getMeshLength() |
protected double |
getPolyfaceLength() |
DXFVertex |
getPolyFaceMeshVertex(int index) |
double |
getRadius(double bulge,
double length)
Caculate the radius of a cut circle segment between 2 DXFVertex
|
int |
getRows() |
protected double |
getSegmentLength(DXFVertex start,
DXFVertex end) |
protected double |
getSplineApproximationLength() |
double |
getStartWidth() |
int |
getSurefaceDensityColumns() |
int |
getSurefaceDensityRows() |
int |
getSurefaceType() |
java.lang.String |
getType() |
DXFVertex |
getVertex(int i) |
int |
getVertexCount() |
java.util.Iterator |
getVertexIterator() |
boolean |
is3DPolygon() |
boolean |
is3DPolygonMesh() |
boolean |
isBezierSurefaceMesh() |
boolean |
isClosed() |
boolean |
isClosedMeshMDirection() |
boolean |
isClosedMeshNDirection() |
boolean |
isConstantWidth() |
boolean |
isCubicSpline() |
boolean |
isCubicSurefaceMesh() |
boolean |
isCurveFitVerticesAdded() |
boolean |
isPolyfaceMesh() |
boolean |
isQuadSpline() |
boolean |
isQuadSurefaceMesh() |
boolean |
isSimpleMesh() |
boolean |
isSplineFitVerticesAdded() |
void |
removeVertex(DXFVertex vertex) |
void |
removeVertex(int index) |
void |
setColumns(int column) |
void |
setEndWidth(double endWidth) |
void |
setRows(int rows) |
void |
setStartWidth(double startWidth) |
void |
setSurefaceDensityColumns(int columns) |
void |
setSurefaceDensityRows(int rows) |
void |
setSurefaceType(int surefaceType) |
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 double QUARTER_CIRCLE_ANGLE
protected java.util.ArrayList vertices
protected double startWidth
protected double endWidth
protected boolean constantWidth
protected int surefaceType
protected int surefaceDensityRows
protected int surefaceDensityColumns
protected int rows
protected int columns
public void addVertex(DXFVertex vertex)
public int getVertexCount()
public java.util.Iterator getVertexIterator()
public void removeVertex(DXFVertex vertex)
public void removeVertex(int index)
public DXFVertex getVertex(int i)
protected double getLength(DXFPoint start, DXFPoint end)
start - end - public double getRadius(double bulge,
double length)
bulge - the vertex bulgelength - the length of the circle cutpublic double getEndWidth()
public void setEndWidth(double endWidth)
endWidth - The endWidth to set.public double getStartWidth()
public void setStartWidth(double startWidth)
startWidth - The startWidth to set.public boolean isClosed()
public boolean isCurveFitVerticesAdded()
public boolean isSplineFitVerticesAdded()
public boolean is3DPolygon()
public boolean is3DPolygonMesh()
public boolean isPolyfaceMesh()
public boolean isClosedMeshNDirection()
public boolean isClosedMeshMDirection()
public boolean isQuadSpline()
public boolean isCubicSpline()
public boolean isConstantWidth()
public int getSurefaceType()
public void setSurefaceType(int surefaceType)
surefaceType - The surefaceType to set.public int getSurefaceDensityColumns()
public void setSurefaceDensityColumns(int columns)
columns - The columns to set.public int getSurefaceDensityRows()
public void setSurefaceDensityRows(int rows)
rows - The rows to set.public DXFVertex getPolyFaceMeshVertex(int index)
public int getColumns()
public void setColumns(int column)
column - The column to set.public int getRows()
public void setRows(int rows)
rows - The rows to set.public boolean isSimpleMesh()
public boolean isQuadSurefaceMesh()
public boolean isCubicSurefaceMesh()
public boolean isBezierSurefaceMesh()
public double getLength()
DXFEntityprotected double getSplineApproximationLength()
protected double getPolyfaceLength()
protected double getMeshLength()