|
|||||||||
| 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.DxfVertex
public class DxfVertex
A DXF VERTEX entity.
A VERTEX is a point in a POLYLINE. Despite the name, POLYLINEs and their VERTEXes can represent all kinds of shapes, including curves, polygons and polyface meshes.
Primary reference is pages 109-110 of the AutoCAD 2007 DXF Reference, available from the AutoDesk website.
Copyright 2000-2006 Partner Software, Inc.
| Constructor Summary | |
|---|---|
DxfVertex()
|
|
| Method Summary | |
|---|---|
double |
getBulge()
Bulge, code 42, optional, default 0. |
double |
getCurveFitTangentDirection()
Curve fit tangent direction, code 50. |
double |
getEndWidth()
Ending width, code 41, optional, default 0. |
java.util.List<DxfGroup> |
getGroups(DxfVersion version)
Get the internal state as DXFGroups. |
int |
getPolyfaceMeshIndex1()
Polyface mesh vertex index, code 71, optional, default 0. |
int |
getPolyfaceMeshIndex2()
Polyface mesh vertex index, code 72, optional, default 0. |
int |
getPolyfaceMeshIndex3()
Polyface mesh vertex index, code 73, optional, default 0. |
int |
getPolyfaceMeshIndex4()
Polyface mesh vertex index, code 74, optional, default 0. |
double |
getStartWidth()
|
java.lang.String |
getType()
The type name of this structure. |
double |
getX()
Location X, code 10, required. |
double |
getY()
Location Y, code 10, required. |
double |
getZ()
Location Z, code 10, required. |
boolean |
isCurveFitDefined()
A curve-fit tangent is defined for this vertex. |
boolean |
isExtraVertex()
Vertex is an extra created by curve fitting. |
boolean |
isPolyfaceMesh()
Vertex is a polyface mesh vertex. |
boolean |
isPolygon3d()
Vertex is a polygon mesh vertex. |
boolean |
isPolyline3d()
Vertex is a 3D polyline vertex. |
boolean |
isSplineControlPoint()
Vertex is a spline control point. |
boolean |
isSplineVertex()
Vertex is a spline vertex created by spline-fitting. |
void |
setBulge(double bulge)
|
void |
setCurveFitDefined(boolean curveFitDefined)
|
void |
setCurveFitTangentDirection(double curveFitTangentDirection)
|
void |
setEndWidth(double endWidth)
|
void |
setExtraVertex(boolean extraVertex)
|
void |
setGroups(java.util.List<DxfGroup> groups)
Set the internal state based on the given groups. |
void |
setPolyfaceMesh(boolean polyfaceMesh)
|
void |
setPolyfaceMeshIndex1(int polyfaceMeshIndex1)
|
void |
setPolyfaceMeshIndex2(int polyfaceMeshIndex2)
|
void |
setPolyfaceMeshIndex3(int polyfaceMeshIndex3)
|
void |
setPolyfaceMeshIndex4(int polyfaceMeshIndex4)
|
void |
setPolygon3d(boolean polygon3d)
|
void |
setPolyline3d(boolean polyline3d)
|
void |
setSplineControlPoint(boolean splineControlPoint)
|
void |
setSplineVertex(boolean splineVertex)
|
void |
setStartWidth(double startWidth)
|
void |
setX(double x)
|
void |
setY(double y)
|
void |
setZ(double z)
|
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 DxfVertex()
| 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 double getBulge()
public void setBulge(double bulge)
public boolean isCurveFitDefined()
This is derived from the 2-bit of vertex flags (code 70).
public void setCurveFitDefined(boolean curveFitDefined)
public double getCurveFitTangentDirection()
public void setCurveFitTangentDirection(double curveFitTangentDirection)
public double getEndWidth()
public void setEndWidth(double endWidth)
public boolean isExtraVertex()
This is derived from the 1-bit of vertex flags (code 70).
public void setExtraVertex(boolean extraVertex)
public boolean isPolyfaceMesh()
This is derived from the 128-bit of vertex flags (code 70).
public void setPolyfaceMesh(boolean polyfaceMesh)
public int getPolyfaceMeshIndex1()
public void setPolyfaceMeshIndex1(int polyfaceMeshIndex1)
public int getPolyfaceMeshIndex2()
public void setPolyfaceMeshIndex2(int polyfaceMeshIndex2)
public int getPolyfaceMeshIndex3()
public void setPolyfaceMeshIndex3(int polyfaceMeshIndex3)
public int getPolyfaceMeshIndex4()
public void setPolyfaceMeshIndex4(int polyfaceMeshIndex4)
public boolean isPolygon3d()
This is derived from the 64-bit of vertex flags (code 70).
public void setPolygon3d(boolean polygon3d)
public boolean isPolyline3d()
This is derived from the 32-bit of vertex flags (code 70).
public void setPolyline3d(boolean polyline3d)
public boolean isSplineControlPoint()
This is derived from the 16-bit of vertex flags (code 70).
public void setSplineControlPoint(boolean splineControlPoint)
public boolean isSplineVertex()
This is derived from the 8-bit of vertex flags (code 70).
public void setSplineVertex(boolean splineVertex)
public double getStartWidth()
public void setStartWidth(double startWidth)
public double getX()
public void setX(double x)
public double getY()
public void setY(double y)
public double getZ()
public void setZ(double z)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||