Class DwgBlockHeader


  • public class DwgBlockHeader
    extends DwgObject
    The DwgBlockHeader class represents a DWG Block header
    Author:
    jmorell
    • Constructor Detail

      • DwgBlockHeader

        public DwgBlockHeader()
        Create new DwgBlockHeader object
    • Method Detail

      • readDwgBlockHeaderV15

        public void readDwgBlockHeaderV15​(int[] data,
                                          int offset)
                                   throws Exception
        Read a Block header 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.
      • getBasePoint

        public double[] getBasePoint()
        Returns:
        Returns the basePoint.
      • setBasePoint

        public void setBasePoint​(double[] basePoint)
        Parameters:
        basePoint - The basePoint to set.
      • getFirstEntityHandle

        public int getFirstEntityHandle()
        Returns:
        Returns the firstEntityHandle.
      • setFirstEntityHandle

        public void setFirstEntityHandle​(int firstEntityHandle)
        Parameters:
        firstEntityHandle - The firstEntityHandle to set.
      • getLastEntityHandle

        public int getLastEntityHandle()
        Returns:
        Returns the lastEntityHandle.
      • setLastEntityHandle

        public void setLastEntityHandle​(int lastEntityHandle)
        Parameters:
        lastEntityHandle - The lastEntityHandle to set.
      • getName

        public String getName()
        Returns:
        Returns the name.
      • setName

        public void setName​(String name)
        Parameters:
        name - The name to set.
      • getBlockEntityHandle

        public int getBlockEntityHandle()
        Returns:
        Returns the blockEntityHandle.
      • setBlockEntityHandle

        public void setBlockEntityHandle​(int blockEntityHandle)
        Parameters:
        blockEntityHandle - The blockEntityHandle to set.
      • isAnonymous

        public boolean isAnonymous()
        Returns:
        Returns the anonymous.
      • setAnonymous

        public void setAnonymous​(boolean anonymous)
        Parameters:
        anonymous - The anonymous to set.
      • isBlkIsXRef

        public boolean isBlkIsXRef()
        Returns:
        Returns the blkIsXRef.
      • setBlkIsXRef

        public void setBlkIsXRef​(boolean blkIsXRef)
        Parameters:
        blkIsXRef - The blkIsXRef to set.
      • getBlockControlHandle

        public int getBlockControlHandle()
        Returns:
        Returns the blockControlHandle.
      • setBlockControlHandle

        public void setBlockControlHandle​(int blockControlHandle)
        Parameters:
        blockControlHandle - The blockControlHandle to set.
      • getBlockDescription

        public String getBlockDescription()
        Returns:
        Returns the blockDescription.
      • setBlockDescription

        public void setBlockDescription​(String blockDescription)
        Parameters:
        blockDescription - The blockDescription to set.
      • getEndBlkEntityHandle

        public int getEndBlkEntityHandle()
        Returns:
        Returns the endBlkEntityHandle.
      • setEndBlkEntityHandle

        public void setEndBlkEntityHandle​(int endBlkEntityHandle)
        Parameters:
        endBlkEntityHandle - The endBlkEntityHandle to set.
      • isFlag64

        public boolean isFlag64()
        Returns:
        Returns the flag64.
      • setFlag64

        public void setFlag64​(boolean flag64)
        Parameters:
        flag64 - The flag64 to set.
      • isHasAttrs

        public boolean isHasAttrs()
        Returns:
        Returns the hasAttrs.
      • setHasAttrs

        public void setHasAttrs​(boolean hasAttrs)
        Parameters:
        hasAttrs - The hasAttrs to set.
      • getInsertHandles

        public Vector getInsertHandles()
        Returns:
        Returns the insertHandles.
      • setInsertHandles

        public void setInsertHandles​(Vector insertHandles)
        Parameters:
        insertHandles - The insertHandles to set.
      • getLayoutHandle

        public int getLayoutHandle()
        Returns:
        Returns the layoutHandle.
      • setLayoutHandle

        public void setLayoutHandle​(int layoutHandle)
        Parameters:
        layoutHandle - The layoutHandle to set.
      • isLoaded

        public boolean isLoaded()
        Returns:
        Returns the loaded.
      • setLoaded

        public void setLoaded​(boolean loaded)
        Parameters:
        loaded - The loaded to set.
      • getNullHandle

        public int getNullHandle()
        Returns:
        Returns the nullHandle.
      • setNullHandle

        public void setNullHandle​(int nullHandle)
        Parameters:
        nullHandle - The nullHandle to set.
      • getPreviewData

        public int getPreviewData()
        Returns:
        Returns the previewData.
      • setPreviewData

        public void setPreviewData​(int previewData)
        Parameters:
        previewData - The previewData to set.
      • isXdep

        public boolean isXdep()
        Returns:
        Returns the xdep.
      • setXdep

        public void setXdep​(boolean xdep)
        Parameters:
        xdep - The xdep to set.
      • isXRefOverLaid

        public boolean isXRefOverLaid()
        Returns:
        Returns the xRefOverLaid.
      • setXRefOverLaid

        public void setXRefOverLaid​(boolean refOverLaid)
        Parameters:
        refOverLaid - The xRefOverLaid to set.
      • getXRefPlus

        public int getXRefPlus()
        Returns:
        Returns the xRefPlus.
      • setXRefPlus

        public void setXRefPlus​(int refPlus)
        Parameters:
        refPlus - The xRefPlus to set.
      • getXRefPName

        public String getXRefPName()
        Returns:
        Returns the xRefPName.
      • setXRefPName

        public void setXRefPName​(String refPName)
        Parameters:
        refPName - The xRefPName to set.
      • getObjects

        public Vector getObjects()
        Returns:
        Returns the objects.
      • setObjects

        public void setObjects​(Vector objects)
        Parameters:
        objects - The objects to set.
      • addObject

        public void addObject​(DwgObject object)
        Add a DWG object to the blockObjects vector
        Parameters:
        object - DWG object