Class DwgCircle

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

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

    • DwgCircle

      public DwgCircle(int index)
  • Method Details

    • getCenter

      public double[] getCenter()
      Returns:
      Returns the center.
    • setCenter

      public void setCenter(double[] center)
      Parameters:
      center - The center to set.
    • getRadius

      public double getRadius()
      Returns:
      Returns the radius.
    • setRadius

      public void setRadius(double radius)
      Parameters:
      radius - The radius to set.
    • getExtrusion

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

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

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

      public void setExtrusion(double[] extrusion)
      Parameters:
      extrusion - The extrusion to set.
    • 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
    • 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