|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.formats.dxf.DxfEntity
com.partnersoft.formats.dxf.DxfPolyline
public class DxfPolyline
A DXF POLYLINE entity.
A POLYLINE is a series of segments connecting vertices in 3D space. This is the older type of polyline in DXF; LWPOLYLINE has largely supplanted it.
POLYLINE can also be used to represent a number of other shapes, including various curves, polygons, and polyface meshes.
Primary reference is pages 89-91 of the AutoCAD 2007 DXF Reference, available from the AutoDesk website.
Copyright 2000-2006 Partner Software, Inc.
| Nested Class Summary | |
|---|---|
static class |
DxfPolyline.SurfaceType
|
| Constructor Summary | |
|---|---|
DxfPolyline()
|
|
| Method Summary | |
|---|---|
double |
getDefaultEndWidth()
Default end width, code 41, optional, default 0. |
double |
getDefaultStartWidth()
Default start width, code 40, optional, default 0. |
double |
getElevation()
Elevation, group 30, optional, default 0. |
double |
getExtrusionX()
Extrusion direction X, group 210, optional, default 0. |
double |
getExtrusionY()
Extrusion direction Y, group 220, optional, default 0. |
double |
getExtrusionZ()
Extrusion direction Z, group 230, optional, default 1. |
java.util.List<DxfGroup> |
getGroups(DxfVersion version)
Get the internal state as DXFGroups. |
int |
getMeshVertexCountM()
Polygon mesh M vertex count, code 71, optional default 0. |
int |
getMeshVertexCountN()
Polygon mesh N vertex count, code 72, optional default 0. |
double |
getSmoothSurfaceDensityM()
Smooth surface M density, code 73, optional default 0. |
double |
getSmoothSurfaceDensityN()
Smooth surface N density, code 74, optional default 0. |
DxfPolyline.SurfaceType |
getSurfaceType()
Curves and smooth surface type, code 75, optional, default NONE. |
double |
getThickness()
Thickness, group 39, optional, default 0. |
java.lang.String |
getType()
The type name of this structure. |
boolean |
isClosed()
Closed flag, optional, default false. |
boolean |
isCurved()
Curved flag, optional, default false. |
boolean |
isLinetypeContinuous()
Continuous linetype mesh flag, optional, default false. |
boolean |
isPolyfaceMesh()
Polyface mesh flag, optional, default false. |
boolean |
isPolygonMesh()
3D polygon mesh flag, optional, default false. |
boolean |
isPolygonMeshClosed()
Closed polygon mesh flag, optional, default false. |
boolean |
isPolyline3d()
3D polyline flag, optional, default false. |
boolean |
isSplined()
Splined flag, optional, default false. |
void |
setClosed(boolean closed)
|
void |
setCurved(boolean curved)
|
void |
setDefaultEndWidth(double defaultEndWidth)
|
void |
setDefaultStartWidth(double defaultStartWidth)
|
void |
setElevation(double elevation)
|
void |
setExtrusionX(double extrusionX)
|
void |
setExtrusionY(double extrusionY)
|
void |
setExtrusionZ(double extrusionZ)
|
void |
setGroups(java.util.List<DxfGroup> groups)
Set the internal state based on the given groups. |
void |
setLinetypeContinuous(boolean linetypeContinuous)
|
void |
setMeshVertexCountM(int meshVertexCountM)
|
void |
setMeshVertexCountN(int meshVertexCountN)
|
void |
setPolyfaceMesh(boolean polyfaceMesh)
|
void |
setPolygonMesh(boolean polygonMesh)
|
void |
setPolygonMeshClosed(boolean polygonMeshClosed)
|
void |
setPolyline3d(boolean polyline3d)
|
void |
setSmoothSurfaceDensityM(double smoothSurfaceDensityM)
|
void |
setSmoothSurfaceDensityN(double smoothSurfaceDensityN)
|
void |
setSplined(boolean splined)
|
void |
setSurfaceType(DxfPolyline.SurfaceType surfaceType)
|
void |
setThickness(double thickness)
|
java.lang.String |
toString()
|
| Methods inherited from class com.partnersoft.formats.dxf.DxfEntity |
|---|
getApplicationDefinedStructures, getColor, getColorName, getHandle, getLayer, getLinetype, getLinetypeScale, getLineWeight, getMaterial, getOwnerHandle, getPlotStyle, getProxyEntityGraphics, getRgbColor, getShadowMode, getTransparency, isInvisible, isPaperSpace, setApplicationDefinedStructures, setColor, setColorName, setHandle, setInvisible, setLayer, setLinetype, setLinetypeScale, setLineWeight, setMaterial, setOwnerHandle, setPaperSpace, setPlotStyle, setProxyEntityGraphics, setRgbColor, setShadowMode, setTransparency |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DxfPolyline()
| Method Detail |
|---|
public java.lang.String getType()
DxfStructure
\/**
* Type name of this structure. Always returns "POINT".
* \@return "POINT"
*\/
public String getType() {
return "POINT";
}
getType in interface DxfStructuregetType in class DxfEntitypublic java.util.List<DxfGroup> getGroups(DxfVersion version)
DxfStructure
getGroups in interface DxfStructuregetGroups in class DxfEntitypublic void setGroups(java.util.List<DxfGroup> groups)
DxfStructure
setGroups in interface DxfStructuresetGroups in class DxfEntitygroups - list of groups containing data for this structurepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isClosed()
This is derived from the 1-bit in group 70 (polyline flag).
public void setClosed(boolean closed)
public boolean isCurved()
This is derived from the 2-bit in group 70 (polyline flag).
public void setCurved(boolean curved)
public double getDefaultEndWidth()
public void setDefaultEndWidth(double defaultEndWidth)
public double getDefaultStartWidth()
public void setDefaultStartWidth(double defaultStartWidth)
public double getElevation()
public void setElevation(double elevation)
public double getExtrusionX()
public void setExtrusionX(double extrusionX)
public double getExtrusionY()
public void setExtrusionY(double extrusionY)
public double getExtrusionZ()
public void setExtrusionZ(double extrusionZ)
public boolean isLinetypeContinuous()
This is derived from the 128-bit in group 70 (polyline flag).
public void setLinetypeContinuous(boolean linetypeContinuous)
public int getMeshVertexCountM()
public void setMeshVertexCountM(int meshVertexCountM)
public int getMeshVertexCountN()
public void setMeshVertexCountN(int meshVertexCountN)
public boolean isPolyfaceMesh()
This is derived from the 64-bit in group 70 (polyline flag).
public void setPolyfaceMesh(boolean polyfaceMesh)
public boolean isPolygonMesh()
This is derived from the 16-bit in group 70 (polyline flag).
public void setPolygonMesh(boolean polygonMesh)
public boolean isPolygonMeshClosed()
This is derived from the 32-bit in group 70 (polyline flag).
public void setPolygonMeshClosed(boolean polygonMeshClosed)
public boolean isPolyline3d()
This is derived from the 8-bit in group 70 (polyline flag).
public void setPolyline3d(boolean polyline3d)
public double getSmoothSurfaceDensityM()
public void setSmoothSurfaceDensityM(double smoothSurfaceDensityM)
public double getSmoothSurfaceDensityN()
public void setSmoothSurfaceDensityN(double smoothSurfaceDensityN)
public boolean isSplined()
Indicates that spline-fit vertices have been added.
This is derived from the 4-bit in group 70 (polyline flag).
public void setSplined(boolean splined)
public DxfPolyline.SurfaceType getSurfaceType()
public void setSurfaceType(DxfPolyline.SurfaceType surfaceType)
public double getThickness()
public void setThickness(double thickness)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||