com.iver.cit.jdwglib.dwg.objects
Class DwgSolid
java.lang.Object
com.iver.cit.jdwglib.dwg.DwgObject
com.iver.cit.jdwglib.dwg.objects.DwgSolid
- public class DwgSolid
- extends DwgObject
The DwgSolid class represents a DWG Solid
- Author:
- jmorell
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 |
DwgSolid
public DwgSolid()
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 fileoffset
- 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.