Class DwgSolid
- java.lang.Object
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.objects.DwgSolid
-
public class DwgSolid extends DwgObject
The DwgSolid class represents a DWG Solid- Author:
- jmorell
-
-
Field Summary
-
Fields inherited from class org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
color, extendedData, graphicData, graphicsFlag, handle, layerHandle, layerHandleCode, linetypeFlags, mode, noLinks, numReactors, plotstyleFlags, sizeInBits, subEntityHandle, type, version, xDicObjHandle
-
-
Constructor Summary
Constructors Constructor Description DwgSolid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()double[]getCorner1()double[]getCorner2()double[]getCorner3()double[]getCorner4()doublegetElevation()double[]getExtrusion()doublegetThickness()voidreadDwgSolidV15(int[] data, int offset)Read a Solid in the DWG format Version 15voidsetCorner1(double[] corner1)voidsetCorner2(double[] corner2)voidsetCorner3(double[] corner3)voidsetCorner4(double[] corner4)voidsetElevation(double elevation)voidsetExtrusion(double[] extrusion)voidsetThickness(double thickness)-
Methods inherited from class org.hortonmachine.gears.io.dxfdwg.libs.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
-
-
-
-
Method Detail
-
readDwgSolidV15
public void readDwgSolidV15(int[] data, int offset) throws ExceptionRead 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:
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.
-
-