Class DwgSolid

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

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

    • DwgSolid

      public DwgSolid(int index)
  • Method Details

    • readDwgSolidV15

      public void readDwgSolidV15(int[] data, int offset) throws Exception
      Read a Solid in the DWG format Version 15
      Parameters:
      data - Array of unsigned bytes obtained from the DWG binary file
      offset - The current bit offset where the value begins
      Throws:
      Exception - If an unexpected bit value is found in the DWG file. Occurs when we are looking for LwPolylines.
    • getCorner1

      public double[] getCorner1()
      Returns:
      Returns the corner1.
    • setCorner1

      public void setCorner1(double[] corner1)
      Parameters:
      corner1 - The corner1 to set.
    • getCorner2

      public double[] getCorner2()
      Returns:
      Returns the corner2.
    • setCorner2

      public void setCorner2(double[] corner2)
      Parameters:
      corner2 - The corner2 to set.
    • getCorner3

      public double[] getCorner3()
      Returns:
      Returns the corner3.
    • setCorner3

      public void setCorner3(double[] corner3)
      Parameters:
      corner3 - The corner3 to set.
    • getCorner4

      public double[] getCorner4()
      Returns:
      Returns the corner4.
    • setCorner4

      public void setCorner4(double[] corner4)
      Parameters:
      corner4 - The corner4 to set.
    • getElevation

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

      public void setElevation(double elevation)
      Parameters:
      elevation - The elevation 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
    • getGeometryType

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