|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cresques.io.GeoFile org.cresques.io.DxfFile
Clase que representa un fichero en formato DXF. Contiene los interfaces y métodos necesarios para acceder a la información almacenada en su interior.
Nested Class Summary | |
static interface |
DxfFile.EntityFactory
Crea los objetos en el Modelo correspondiente. |
static interface |
DxfFile.VarSettings
Establece el estado de las variables propias de un DXF que están definidas en la sección HEADER. |
Field Summary |
Fields inherited from class org.cresques.io.GeoFile |
bytesReaded, extent, lineCnt |
Constructor Summary | |
DxfFile(IProjection proj,
java.lang.String name,
DxfFile.EntityFactory maker)
Constructor de la clase |
|
DxfFile(IProjection proj,
java.lang.String name,
DxfFile.EntityFactory maker,
DxfFile.VarSettings dxfVars)
Constructor de la clase que además incorpora la capacidad de leer una porción del HEADER |
Method Summary | |
void |
close()
|
IObjList |
getObjects()
Devuelve los objetos geométricos obtenidos de un DXF |
boolean |
isCadFlag()
Informa sobre si estamos trabajando con el modelo de datos GIS o con el de CAD |
GeoFile |
load()
Carga un fichero en formato DXF |
GeoFile |
load(java.io.Reader fr)
Carga un fichero en formato DXF tomando un Reader como parámetro |
void |
reProject(ICoordTrans rp)
Habilita la reproyección cartográfica |
void |
save(java.lang.String fName)
jmorell: Método que permite salvar capas al formato DXF2000. |
void |
setCadFlag(boolean cadFlag)
Establece si trabajamos con el modelo de datos GIS o con el de CAD |
void |
writeAppidTable(java.io.FileWriter fw)
Escritor de la tabla APPID. |
void |
writeBlockRecordTable(java.io.FileWriter fw)
Escritor de la tabla BLOCK_RECORD. |
void |
writeBlocks(java.io.FileWriter fw)
Escritor de la sección de bloques por defecto de un DXF2000. |
void |
writeDimStyleTable(java.io.FileWriter fw)
Escritor de la tabla DIMSTYLE. |
void |
writeEntities(java.io.FileWriter fw)
Escritor de la sección ENTITIES de entidades. |
void |
writeHeader(java.io.FileWriter fw)
Escritor de la cabecera de un DXF. |
void |
writeLayerTable(java.io.FileWriter fw)
Escritor de la tabla LAYER. |
void |
writeLTypeTable(java.io.FileWriter fw)
Escritor de la tabla LTYPE. |
void |
writeObjects(java.io.FileWriter fw)
050224, jmorell: Escritura de la sección OBJECTS según QCAD. |
void |
writeStyleTable(java.io.FileWriter fw)
Escritor de la tabla STYLE. |
void |
writeTables(java.io.FileWriter fw)
Escritor de la sección TABLES de un DXF. |
void |
writeUCSTable(java.io.FileWriter fw)
Escritor de la tabla UCS. |
void |
writeViewTable(java.io.FileWriter fw)
Escritor de la tabla VIEW. |
void |
writeVPortTable(java.io.FileWriter fw)
Escritor de la tabla VPORT. |
Methods inherited from class org.cresques.io.GeoFile |
filterWS, getExtent, getFileSize, getName, getProjection, getTime, setFileSize, setName, setProjection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DxfFile(IProjection proj, java.lang.String name, DxfFile.EntityFactory maker)
public DxfFile(IProjection proj, java.lang.String name, DxfFile.EntityFactory maker, DxfFile.VarSettings dxfVars)
Method Detail |
public GeoFile load()
load
in class GeoFile
public GeoFile load(java.io.Reader fr) throws java.lang.NumberFormatException, java.lang.Exception
java.lang.NumberFormatException
java.lang.Exception
public IObjList getObjects()
getObjects
in class GeoFile
public void save(java.lang.String fName) throws java.io.IOException
fName
-
java.io.IOException
public void writeHeader(java.io.FileWriter fw) throws java.io.IOException
java.io.IOException
public void writeTables(java.io.FileWriter fw) throws java.io.IOException
java.io.IOException
public void writeVPortTable(java.io.FileWriter fw) throws java.io.IOException
fw
-
java.io.IOException
public void writeLTypeTable(java.io.FileWriter fw) throws java.io.IOException
fw
-
java.io.IOException
public void writeLayerTable(java.io.FileWriter fw) throws java.io.IOException
fw
-
java.io.IOException
public void writeStyleTable(java.io.FileWriter fw) throws java.io.IOException
fw
-
java.io.IOException
public void writeViewTable(java.io.FileWriter fw) throws java.io.IOException
fw
-
java.io.IOException
public void writeUCSTable(java.io.FileWriter fw) throws java.io.IOException
fw
-
java.io.IOException
public void writeAppidTable(java.io.FileWriter fw) throws java.io.IOException
fw
-
java.io.IOException
public void writeDimStyleTable(java.io.FileWriter fw) throws java.io.IOException
fw
-
java.io.IOException
public void writeBlockRecordTable(java.io.FileWriter fw) throws java.io.IOException
fw
-
java.io.IOException
public void writeBlocks(java.io.FileWriter fw) throws java.io.IOException
fw
-
java.io.IOException
public void writeEntities(java.io.FileWriter fw) throws java.io.IOException
fw
-
java.io.IOException
public void writeObjects(java.io.FileWriter fw) throws java.io.IOException
java.io.IOException
public void reProject(ICoordTrans rp)
reProject
in interface Projected
reProject
in class GeoFile
public void close()
close
in class GeoFile
public boolean isCadFlag()
public void setCadFlag(boolean cadFlag)
cadFlag
- The cadFlag to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |