Class DwgLwPolyline

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

public class DwgLwPolyline extends DwgObject implements IDwgPolyline, IDwgExtrusionable, IDwg3DTestable, IDwg2FMap, IDwgBlockMember
The DwgLwPolyline class represents a DWG LwPolyline
Author:
jmorell
  • Constructor Details

    • DwgLwPolyline

      public DwgLwPolyline(int index)
  • Method Details

    • getBulges

      public double[] getBulges()
      Returns:
      Returns the bulges.
    • setBulges

      public void setBulges(double[] bulges)
      Parameters:
      bulges - The bulges to set.
    • getFlag

      public int getFlag()
      Returns:
      Returns the flag.
    • setFlag

      public void setFlag(int flag)
      Parameters:
      flag - The flag to set.
    • getVertices

      public List getVertices()
      Returns:
      Returns the vertices.
    • setVertices

      public void setVertices(List vertices)
      Parameters:
      vertices - The vertices to set.
    • getElevation

      public double getElevation()
      Returns:
      Returns the elevation.
    • setElevation

      public void setElevation(double elevation)
      Parameters:
      elevation - The elevation to set.
    • getNormal

      public double[] getNormal()
      Returns:
      Returns the normal.
    • getConstWidth

      public double getConstWidth()
      Returns:
      Returns the constWidth.
    • setConstWidth

      public void setConstWidth(double constWidth)
      Parameters:
      constWidth - The constWidth to set.
    • getThickness

      public double getThickness()
      Returns:
      Returns the thickness.
    • setThickness

      public void setThickness(double thickness)
      Parameters:
      thickness - The thickness to set.
    • getWidths

      public double[][] getWidths()
      Returns:
      Returns the widths.
    • setWidths

      public void setWidths(double[][] widths)
      Parameters:
      widths - The widths to set.
    • setNormal

      public void setNormal(double[] normal)
      Parameters:
      normal - The normal to set.
    • calculateGisModel

      public void calculateGisModel(DwgFile dwgFile)
      Specified by:
      calculateGisModel in interface IDwgPolyline
    • applyExtrussion

      public void applyExtrussion()
      Specified by:
      applyExtrussion in interface IDwgExtrusionable
    • 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
    • addVertex

      public void addVertex(IDwgVertex vertex)
      Specified by:
      addVertex in interface IDwgPolyline
    • getGeometryType

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