Class DwgObject

java.lang.Object
org.gvsig.dwg.lib.DwgObject
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
DwgArc, DwgAttdef, DwgAttrib, DwgBlock, DwgBlockControl, DwgBlockHeader, DwgCircle, DwgDictionary, DwgDictionaryVar, DwgDimOrd, DwgEllipse, DwgEndblk, DwgFace3D, DwgHatch, DwgIdBuffer, DwgImage, DwgImageDef, DwgImageDefReactor, DwgInsert, DwgLayer, DwgLayerControl, DwgLayerIndex, DwgLine, DwgLinearDimension, DwgLwPolyline, DwgMesh, DwgMeshPolyline, DwgMinsert, DwgMText, DwgOle2Frame, DwgPFace, DwgPFacePolyline, DwgPoint, DwgPolyline2D, DwgPolyline3D, DwgRasterVariables, DwgSeqend, DwgSolid, DwgSortEntStable, DwgSpatialFilter, DwgSpatialIndex, DwgSpline, DwgText, DwgVertex2D, DwgVertex3D, DwgVertexMesh, DwgVertexPFace, DwgVertexPFaceFace, DwgXRecord

public class DwgObject extends Object implements Cloneable
The DwgObject class represents a DWG object
Author:
jmorell
  • Field Details

    • type

      protected int type
    • handle

      protected DwgHandleReference handle
    • version

      protected String version
    • mode

      protected int mode
    • layerHandle

      protected DwgHandleReference layerHandle
      layer handle as an integer
    • color

      protected int color
    • numReactors

      protected int numReactors
    • linetypeFlags

      protected int linetypeFlags
    • plotstyleFlags

      protected int plotstyleFlags
    • sizeInBits

      protected int sizeInBits
    • extendedData

      protected List extendedData
    • graphicData

      protected int graphicData
    • address

      protected int address
    • plotStyleHandle

      protected DwgHandleReference plotStyleHandle
    • subEntityHandle

      protected DwgHandleReference subEntityHandle
    • xDicObjHandle

      protected DwgHandleReference xDicObjHandle
    • graphicsFlag

      protected boolean graphicsFlag
    • xDicObjFlag

      protected boolean xDicObjFlag
    • avanzarFlag

      protected boolean avanzarFlag
    • index

      protected int index
      Index of the dwg object in the object's map section
  • Constructor Details

    • DwgObject

      public DwgObject(int index)
  • Method Details

    • inserta

      public void inserta()
    • insertar

      public boolean insertar()
    • setAddress

      public void setAddress(int address)
    • getAddress

      public int getAddress()
    • setNextHandle

      public void setNextHandle(DwgHandleReference hr)
    • setPreviousHandle

      public void setPreviousHandle(DwgHandleReference hr)
    • setAvanzar

      public void setAvanzar(boolean avanza)
    • getAvanzar

      public boolean getAvanzar()
    • addReactorHandle

      public void addReactorHandle(DwgHandleReference hr)
    • getNextHandle

      public DwgHandleReference getNextHandle()
    • getPreviousHandle

      public DwgHandleReference getPreviousHandle()
    • getReactorsHandles

      public ArrayList getReactorsHandles()
    • hasLayerHandle

      public boolean hasLayerHandle()
    • hasNextHandle

      public boolean hasNextHandle()
    • hasPreviousHandle

      public boolean hasPreviousHandle()
    • hasSubEntityHandle

      public boolean hasSubEntityHandle()
    • hasXDicObjHandle

      public boolean hasXDicObjHandle()
    • hasReactorsHandles

      public boolean hasReactorsHandles()
    • reactorsHandlesQuantity

      public int reactorsHandlesQuantity()
    • getIndex

      public int getIndex()
    • getSizeInBits

      public int getSizeInBits()
      Returns:
      Returns the sizeInBits.
    • setSizeInBits

      public void setSizeInBits(int sizeInBits)
      Parameters:
      sizeInBits - The sizeInBits to set.
    • getExtendedData

      public List getExtendedData()
      Returns:
      Returns the extendedData.
    • setExtendedData

      public void setExtendedData(List extData)
      Parameters:
      extData - The extendedData to set.
    • getGraphicData

      public int getGraphicData()
      Returns:
      Returns the graphicData.
    • setGraphicData

      public void setGraphicData(int graphicData)
      Parameters:
      graphicData - The graphicData to set.
    • getVersion

      public String getVersion()
      Returns:
      Returns the version.
    • setLinetypeFlags

      public void setLinetypeFlags(int linetypeFlags)
      Parameters:
      linetypeFlags - The linetypeFlags to set.
    • setPlotstyleFlags

      public void setPlotstyleFlags(int plotstyleFlags)
      Parameters:
      plotstyleFlags - The plotstyleFlags to set.
    • getSubEntityHandle

      public DwgHandleReference getSubEntityHandle()
      Returns:
      Returns the subEntityHandle.
    • setSubEntityHandle

      public void setSubEntityHandle(DwgHandleReference subEntityHandle)
      Parameters:
      subEntityHandle - The subEntityHandle to set.
    • getXDicObjHandle

      public DwgHandleReference getXDicObjHandle()
      Returns:
      Returns the xDicObjHandle.
    • setXDicObjHandle

      public void setXDicObjHandle(DwgHandleReference dicObjHandle)
      Parameters:
      dicObjHandle - The xDicObjHandle to set.
    • getColor

      public int getColor()
      Returns:
      Returns the color.
    • setColor

      public void setColor(int color)
      Parameters:
      color - The color to set.
    • getHandle

      public DwgHandleReference getHandle()
      Returns:
      Returns the handle.
    • setHandle

      public void setHandle(DwgHandleReference handle)
      Parameters:
      handle - The handle to set.
    • getLayerHandle

      public DwgHandleReference getLayerHandle()
      Returns:
      Returns the layerHandle.
    • setLayerHandle

      public void setLayerHandle(DwgHandleReference layerHandle)
      Parameters:
      layerHandle - The layerHandle to set.
    • getMode

      public int getMode()
      Returns:
      Returns the mode.
    • setMode

      public void setMode(int mode)
      Parameters:
      mode - The mode to set.
    • isNoLinks

      public boolean isNoLinks()
      Returns:
      Returns the noLinks.
    • setNoLinks

      public void setNoLinks(boolean noLinks)
      Parameters:
      noLinks - The noLinks to set.
    • getNumReactors

      public int getNumReactors()
      Returns:
      Returns the numReactors.
    • setNumReactors

      public void setNumReactors(int numReactors)
      Parameters:
      numReactors - The numReactors to set.
    • getType

      public int getType()
      Returns:
      Returns the type.
    • setType

      public void setType(int type)
      Parameters:
      type - The type to set.
    • getLinetypeFlags

      public int getLinetypeFlags()
      Returns:
      Returns the linetypeFlags.
    • getPlotstyleFlags

      public int getPlotstyleFlags()
      Returns:
      Returns the plotstyleFlags.
    • setVersion

      public void setVersion(String version)
      Parameters:
      version - The version to set.
    • isGraphicsFlag

      public boolean isGraphicsFlag()
      Returns:
      Returns the graphicsFlag.
    • setGraphicsFlag

      public void setGraphicsFlag(boolean graphicsFlag)
      Parameters:
      graphicsFlag - The graphicsFlag to set.
    • isXDicObjFlag

      public boolean isXDicObjFlag()
      Returns:
      Returns the xDicObjFlag.
    • setXDicObjFlag

      public void setXDicObjFlag(boolean xDicObjFlag)
      Parameters:
      xDicObjFlag - The xDicObjFlag to set.
    • setLyrByLineType

      public void setLyrByLineType(boolean lyrByLineType)
    • isLyrByLineType

      public boolean isLyrByLineType()
    • setPlotStyleHandle

      public void setPlotStyleHandle(DwgHandleReference hr)
    • hasPlotStyleHandle

      public boolean hasPlotStyleHandle()
    • setLineTypeHandle

      public void setLineTypeHandle(DwgHandleReference hr)
      Sets the handle of the line type of this drawing entity. TODO Ver si conviene guardar tambien el handleCode de este handle
      Parameters:
      handle2 -
    • getLineTypeHandle

      public DwgHandleReference getLineTypeHandle()
    • hasLineTypeHandle

      public boolean hasLineTypeHandle()
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • fill

      protected void fill(DwgObject obj)
    • getGeometrySubType

      public int getGeometrySubType(boolean is3DFile)