com.iver.cit.jdwglib.dwg.objects
Class DwgSolid

java.lang.Object
  extended bycom.iver.cit.jdwglib.dwg.DwgObject
      extended bycom.iver.cit.jdwglib.dwg.objects.DwgSolid

public class DwgSolid
extends DwgObject

The DwgSolid class represents a DWG Solid

Author:
jmorell

Constructor Summary
DwgSolid()
           
 
Method Summary
 java.lang.Object clone()
           
 double[] getCorner1()
           
 double[] getCorner2()
           
 double[] getCorner3()
           
 double[] getCorner4()
           
 double getElevation()
           
 double[] getExtrusion()
           
 double getThickness()
           
 void readDwgSolidV15(int[] data, int offset)
          Read a Solid in the DWG format Version 15
 void setCorner1(double[] corner1)
           
 void setCorner2(double[] corner2)
           
 void setCorner3(double[] corner3)
           
 void setCorner4(double[] corner4)
           
 void setElevation(double elevation)
           
 void setExtrusion(double[] extrusion)
           
 void setThickness(double thickness)
           
 
Methods inherited from class com.iver.cit.jdwglib.dwg.DwgObject
getColor, getExtendedData, getGraphicData, getHandle, getLayerHandle, getLayerHandleCode, getLinetypeFlags, getMode, getNumReactors, getPlotstyleFlags, getSizeInBits, getSubEntityHandle, getType, getVersion, getXDicObjHandle, isGraphicsFlag, isNoLinks, readObjectHeaderV15, readObjectTailV15, setColor, setExtendedData, setGraphicData, setGraphicsFlag, setHandle, setLayerHandle, setLayerHandleCode, setLinetypeFlags, setMode, setNoLinks, setNumReactors, setPlotstyleFlags, setSizeInBits, setSubEntityHandle, setType, setVersion, setXDicObjHandle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DwgSolid

public DwgSolid()
Method Detail

readDwgSolidV15

public void readDwgSolidV15(int[] data,
                            int offset)
                     throws java.lang.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:
java.lang.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.

clone

public java.lang.Object clone()

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.