Package org.gvsig.dwg.lib.objects
Class DwgLine
java.lang.Object
org.gvsig.dwg.lib.DwgObject
org.gvsig.dwg.lib.objects.DwgLine
- All Implemented Interfaces:
Cloneable,IDwg2FMap,IDwg3DTestable,IDwgBlockMember
The DwgLine class represents a DWG Line
- Author:
- jmorell, azabala
-
Field Summary
Fields inherited from class org.gvsig.dwg.lib.DwgObject
address, avanzarFlag, color, extendedData, graphicData, graphicsFlag, handle, index, layerHandle, linetypeFlags, mode, noLinks, numReactors, plotstyleFlags, plotStyleHandle, sizeInBits, subEntityHandle, type, version, xDicObjFlag, xDicObjHandle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclone()protected voiddouble[]intdouble[]getP1()double[]getP2()doubledoublegetZ()booleanbooleanisZflag()voidsetExtrusion(double[] extrusion) voidsetP1(double[] p1) voidsetP2(double[] p2) voidsetThickness(double thickness) voidsetZflag(boolean zflag) org.gvsig.fmap.geom.GeometrytoFMapGeometry(boolean is3DFile) toFMapString(boolean is3DFile) toString()voidtransform2Block(double[] bPoint, Point2D insPoint, double[] scale, double rot, List dwgObjectsWithoutBlocks, Map handleObjWithoutBlocks, DwgFile callBack) Methods inherited from class org.gvsig.dwg.lib.DwgObject
addReactorHandle, getAddress, getAvanzar, getColor, getExtendedData, getGeometrySubType, getGraphicData, getHandle, getIndex, getLayerHandle, getLinetypeFlags, getLineTypeHandle, getMode, getNextHandle, getNumReactors, getPlotstyleFlags, getPreviousHandle, getReactorsHandles, getSizeInBits, getSubEntityHandle, getType, getVersion, getXDicObjHandle, hasLayerHandle, hasLineTypeHandle, hasNextHandle, hasPlotStyleHandle, hasPreviousHandle, hasReactorsHandles, hasSubEntityHandle, hasXDicObjHandle, inserta, insertar, isGraphicsFlag, isLyrByLineType, isNoLinks, isXDicObjFlag, reactorsHandlesQuantity, setAddress, setAvanzar, setColor, setExtendedData, setGraphicData, setGraphicsFlag, setHandle, setLayerHandle, setLinetypeFlags, setLineTypeHandle, setLyrByLineType, setMode, setNextHandle, setNoLinks, setNumReactors, setPlotstyleFlags, setPlotStyleHandle, setPreviousHandle, setSizeInBits, setSubEntityHandle, setType, setVersion, setXDicObjFlag, setXDicObjHandleMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gvsig.dwg.lib.IDwg2FMap
getGeometrySubType
-
Constructor Details
-
DwgLine
public DwgLine(int index)
-
-
Method Details
-
getP1
public double[] getP1()- Returns:
- Returns the p1.
-
setP1
public void setP1(double[] p1) - Parameters:
p1- The p1 to set.
-
getP2
public double[] getP2()- Returns:
- Returns the p2.
-
setP2
public void setP2(double[] p2) - Parameters:
p2- The p2 to set.
-
getExtrusion
public double[] getExtrusion()- Returns:
- Returns the extrusion.
-
setExtrusion
public void setExtrusion(double[] extrusion) - Parameters:
extrusion- The extrusion to set.
-
getThickness
public double getThickness()- Returns:
- Returns the thickness.
-
setThickness
public void setThickness(double thickness) - Parameters:
thickness- The thickness to set.
-
isZflag
public boolean isZflag()- Returns:
- Returns the zflag.
-
setZflag
public void setZflag(boolean zflag) - Parameters:
zflag- The zflag to set.
-
applyExtrussion
public void applyExtrussion() -
has3DData
public boolean has3DData()- Specified by:
has3DDatain interfaceIDwg3DTestable
-
getZ
public double getZ()- Specified by:
getZin interfaceIDwg3DTestable
-
toFMapGeometry
public org.gvsig.fmap.geom.Geometry toFMapGeometry(boolean is3DFile) throws org.gvsig.fmap.geom.exception.CreateGeometryException - Specified by:
toFMapGeometryin interfaceIDwg2FMap- Throws:
org.gvsig.fmap.geom.exception.CreateGeometryException
-
toFMapString
- Specified by:
toFMapStringin interfaceIDwg2FMap
-
toString
-
transform2Block
public void transform2Block(double[] bPoint, Point2D insPoint, double[] scale, double rot, List dwgObjectsWithoutBlocks, Map handleObjWithoutBlocks, DwgFile callBack) - Specified by:
transform2Blockin interfaceIDwgBlockMember
-
clone
-
fill
-
getGeometryType
public int getGeometryType()- Specified by:
getGeometryTypein interfaceIDwg2FMap
-