Class DwgLine

java.lang.Object
org.gvsig.dwg.lib.DwgObject
org.gvsig.dwg.lib.objects.DwgLine
All Implemented Interfaces:
Cloneable, IDwg2FMap, IDwg3DTestable, IDwgBlockMember

public class DwgLine extends DwgObject implements IDwg3DTestable, IDwg2FMap, IDwgBlockMember
The DwgLine class represents a DWG Line
Author:
jmorell, azabala
  • 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:
      has3DData in interface IDwg3DTestable
    • getZ

      public double getZ()
      Specified by:
      getZ in interface IDwg3DTestable
    • toFMapGeometry

      public org.gvsig.fmap.geom.Geometry toFMapGeometry(boolean is3DFile) throws org.gvsig.fmap.geom.exception.CreateGeometryException
      Specified by:
      toFMapGeometry in interface IDwg2FMap
      Throws:
      org.gvsig.fmap.geom.exception.CreateGeometryException
    • toFMapString

      public String toFMapString(boolean is3DFile)
      Specified by:
      toFMapString in interface IDwg2FMap
    • toString

      public String toString()
      Specified by:
      toString in interface IDwg2FMap
      Overrides:
      toString in class Object
    • transform2Block

      public void transform2Block(double[] bPoint, Point2D insPoint, double[] scale, double rot, List dwgObjectsWithoutBlocks, Map handleObjWithoutBlocks, DwgFile callBack)
      Specified by:
      transform2Block in interface IDwgBlockMember
    • clone

      public Object clone()
      Overrides:
      clone in class DwgObject
    • fill

      protected void fill(DwgObject obj)
      Overrides:
      fill in class DwgObject
    • getGeometryType

      public int getGeometryType()
      Specified by:
      getGeometryType in interface IDwg2FMap