|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.iver.cit.jdwglib.dwg.DwgFile
The DwgFile class provides a revision-neutral interface for reading and handling DWG files Reading methods are useful for reading DWG files, and handling methods like calculateDwgPolylines() are useful for handling more complex objects in the DWG file
Constructor Summary | |
DwgFile(java.lang.String fileName)
Creates a new DwgFile object given the absolute path to a DWG file |
Method Summary | |
void |
addDwgClass(DwgClass dwgClass)
Add a DWG class to the dwgClasses vector |
void |
addDwgObject(DwgObject dwgObject)
Add a DWG object to the dwgObject vector |
void |
addDwgObjectOffset(int handle,
int offset)
Add a DWG object offset to the dwgObjectOffsets vector |
void |
addDwgSectionOffset(java.lang.String key,
int seek,
int size)
Add a DWG section offset to the dwgSectionOffsets vector |
void |
applyExtrusions()
Modify the geometry of the objects applying the Extrusion vector where it is necessary |
void |
blockManagement()
Modify the geometry of the objects contained in the blocks of a DWG file and add these objects to the DWG object list. |
void |
calculateCadModelDwgPolylines()
Configure the geometry of the polylines in a DWG file from the vertex list in this DWG file. |
void |
calculateGisModelDwgPolylines()
Configure the geometry of the polylines in a DWG file from the vertex list in this DWG file. |
int |
getColorByLayer(DwgObject entity)
Returns the color of the layer of a DWG object |
java.util.Vector |
getDwgObjectOffsets()
|
java.util.Vector |
getDwgObjects()
|
int |
getDwgSectionOffset(java.lang.String key)
Returns the offset of DWG section given by its key |
java.lang.String |
getFileName()
|
java.lang.String |
getLayerName(DwgObject entity)
Returns the name of the layer of a DWG object |
void |
initializeLayerTable()
Initialize a new Vector that contains the DWG file layers. |
boolean |
isDwg3DFile()
|
void |
read()
Reads a DWG file and put its objects in the dwgObjects Vector This method is version independent |
void |
setDwg3DFile(boolean dwg3DFile)
|
void |
testDwg3D()
Test if the DWG file is 2D or 3D. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DwgFile(java.lang.String fileName)
fileName
- an absolute path to the DWG fileMethod Detail |
public void read() throws java.io.IOException
java.io.IOException
- If the file location is wrongpublic void applyExtrusions()
public void calculateGisModelDwgPolylines()
public void calculateCadModelDwgPolylines()
public void blockManagement()
public void initializeLayerTable()
public java.lang.String getLayerName(DwgObject entity)
entity
- DWG object which we want to know its layer name
public int getColorByLayer(DwgObject entity)
entity
- DWG object which we want to know its layer color
public void testDwg3D()
public void addDwgSectionOffset(java.lang.String key, int seek, int size)
key
- Define the DWG sectionseek
- Offset of the sectionsize
- Size of the sectionpublic int getDwgSectionOffset(java.lang.String key)
key
- Define the DWG section
public void addDwgObjectOffset(int handle, int offset)
handle
- Object handleoffset
- Offset of the object data in the DWG filepublic void addDwgObject(DwgObject dwgObject)
dwgObject
- DWG objectpublic void addDwgClass(DwgClass dwgClass)
dwgClass
- DWG classpublic java.util.Vector getDwgObjectOffsets()
public java.util.Vector getDwgObjects()
public java.lang.String getFileName()
public boolean isDwg3DFile()
public void setDwg3DFile(boolean dwg3DFile)
dwg3DFile
- The dwg3DFile to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |