Class DwgPolyline2D

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

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

    • DwgPolyline2D

      public DwgPolyline2D(int index)
  • Method Details

    • getFirstVertexHandle

      public DwgHandleReference getFirstVertexHandle()
      Returns:
      Returns the firstVertexHandle.
    • setFirstVertexHandle

      public void setFirstVertexHandle(DwgHandleReference firstVertexHandle)
      Parameters:
      firstVertexHandle - The firstVertexHandle to set.
    • getFlags

      public int getFlags()
      Returns:
      Returns the flags.
    • setFlags

      public void setFlags(int flags)
      Parameters:
      flags - The flags to set.
    • getLastVertexHandle

      public DwgHandleReference getLastVertexHandle()
      Returns:
      Returns the lastVertexHandle.
    • setLastVertexHandle

      public void setLastVertexHandle(DwgHandleReference lastVertexHandle)
      Parameters:
      lastVertexHandle - The lastVertexHandle to set.
    • getPts

      public List getPts()
      Returns:
      Returns the pts.
    • setPts

      public void setPts(List pts)
      Parameters:
      pts - The pts to set.
    • getBulges

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

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

      public double getInitWidth()
      Returns:
      Returns the initWidth.
    • setInitWidth

      public void setInitWidth(double initWidth)
      Parameters:
      initWidth - The initWidth to set.
    • getSeqendHandle

      public DwgHandleReference getSeqendHandle()
      Returns:
      Returns the seqendHandle.
    • setSeqendHandle

      public void setSeqendHandle(DwgHandleReference seqendHandle)
      Parameters:
      seqendHandle - The seqendHandle to set.
    • getThickness

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

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

      public int getCurveType()
      Returns:
      Returns the curveType.
    • setCurveType

      public void setCurveType(int curveType)
      Parameters:
      curveType - The curveType to set.
    • getElevation

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

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

      public double getEndWidth()
      Returns:
      Returns the endWidth.
    • setEndWidth

      public void setEndWidth(double endWidth)
      Parameters:
      endWidth - The endWidth to set.
    • getExtrusion

      public double[] getExtrusion()
      Returns:
      Returns the extrusion.
    • setExtrusion

      public void setExtrusion(double[] extrusion)
      Parameters:
      extrusion - The extrusion to set.
    • setVertexHandles

      public void setVertexHandles(ArrayList handles)
      Parameters:
      Handles - The vertexHandles to set.
    • getVertexHandles

      public ArrayList getVertexHandles()
      Returns:
      Returns the vertexHandles.
    • addVertexHandle

      public void addVertexHandle(DwgHandleReference handle)
      Parameters:
      Handle - The vertexHandles to add.
    • calculateGisModel

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

      public void calculateGisModel(List dwgObjects)
    • 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
    • getGeometrySubType

      public int getGeometrySubType(boolean is3DFile)
      Specified by:
      getGeometrySubType in interface IDwg2FMap
      Overrides:
      getGeometrySubType in class DwgObject
    • getGeometryType

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