|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cresques.px.dxf.DxfEntityMaker
La clase DxfEntityMaker facilita la creación de entidades en un modelo de datos CAD. La creación se realiza partiendo de las entidades obtenidas de un fichero DXF.
Constructor Summary | |
DxfEntityMaker(IProjection proj)
Constructor de DxfEntityMaker. |
Method Summary | |
void |
addVertex(DxfGroupVector grp)
Añade un vértice a la polilínea que se está creando |
void |
createArc(DxfGroupVector grp)
Crea un nuevo arco partiendo de la información almacenada en el DXF |
void |
createAttdef(DxfGroupVector grp)
Construye la definición de un nuevo atributo partiendo de la información almacenada en el DXF |
void |
createAttrib(DxfGroupVector grp)
Crea un nuevo atributo partiendo de la información almacenada en el DXF |
void |
createBlock(DxfGroupVector grp)
Crea un bloque |
void |
createCircle(DxfGroupVector grp)
Crea un nuevo círculo partiendo de la información almacenada en el DXF |
void |
createEllipse(DxfGroupVector grp)
Crea una nueva elipse partiendo de la información almacenada en el DXF |
void |
createInsert(DxfGroupVector grp)
Crea un nuevo punto de inserción partiendo de la información almacenada en el DXF |
void |
createLayer(DxfGroupVector grp)
Crea una nueva capa partiendo de la información almacenada en el DXF |
void |
createLine(DxfGroupVector grp)
Crea una nueva línea partiendo de la información almacenada en el DXF |
void |
createLwPolyline(DxfGroupVector grp)
Crea una nueva LwPolyline partiendo de la información almacenada en el DXF |
void |
createMText(DxfGroupVector v)
Crea un nuevo MText partiendo de la información almacenada en el DXF |
void |
createPoint(DxfGroupVector grp)
Crea un nuevo punto partiendo de la información almacenada en el DXF |
void |
createPolyline(DxfGroupVector grp)
Crea una nueva polilínea partiendo de la información almacenada en el DXF |
void |
createSolid(DxfGroupVector grp)
Crea un nuevo sólido 2D partiendo de la información almacenada en el DXF |
void |
createSpline(DxfGroupVector grp)
Los Splines estan implementados como LwPolylines. |
void |
createText(DxfGroupVector grp)
Crea un nuevo texto partiendo de la información almacenada en el DXF |
void |
depureAttributes()
Borra los atributos repetidos |
void |
endBlk(DxfGroupVector grp)
Fin de la definición de un bloqe |
void |
endSeq()
Fin de secuencia |
void |
gestionaInsert(DxfInsert entity,
DxfLayer layer)
Método que permite incluir en la lista general de objetos los objetos que se encuentran dentro del bloque referenciado por cada DxfInsert. |
java.util.Vector |
getAttributes()
Permite la gestión de los atributos almacenados en unn DXF |
DxfBlock |
getBlk()
Devuelve el bloque activo. |
java.util.Vector |
getBlkList()
Devuelve la lista de bloques |
DxfEntityList |
getEntities()
Devuelve las entidades creadas. |
Extent |
getExtent()
Devuelve el extent |
DxfTable |
getLayers()
Devuelve las capas del DXF en forma de DxfTable. |
IObjList |
getObjects()
Devuelve los objetos almacenados en el DXF |
IProjection |
getProjection()
Devuelve la proyección cartográfica en la que se encuentran las entidades. |
boolean |
isDxf3DFile()
Permite saber si se trata de un fichero DXF en 2D o en 3D |
void |
reProject(ICoordTrans rp)
Permite reproyectar las entidades creadas dado un conjunto de coordenadas de transformación. |
void |
setAddingToBlock(boolean a)
Permite saber si se están añadiendo elementos a un bloque |
void |
setProjection(IProjection proj)
Establece la proyección cartográfica en la que se van a crear las entidades. |
void |
testBlocks()
Gestiona los bloques que no se han tratado en la primera vuelta |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DxfEntityMaker(IProjection proj)
Method Detail |
public java.util.Vector getBlkList()
DxfFile.EntityFactory
getBlkList
in interface DxfFile.EntityFactory
public IObjList getObjects()
DxfFile.EntityFactory
getObjects
in interface DxfFile.EntityFactory
public Extent getExtent()
DxfFile.EntityFactory
getExtent
in interface DxfFile.EntityFactory
public void setAddingToBlock(boolean a)
DxfFile.EntityFactory
setAddingToBlock
in interface DxfFile.EntityFactory
public void createLayer(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactory
createLayer
in interface DxfFile.EntityFactory
java.lang.Exception
public void createPolyline(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactory
createPolyline
in interface DxfFile.EntityFactory
java.lang.Exception
public void endSeq() throws java.lang.Exception
DxfFile.EntityFactory
endSeq
in interface DxfFile.EntityFactory
java.lang.Exception
public void addVertex(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactory
addVertex
in interface DxfFile.EntityFactory
java.lang.Exception
public void createLwPolyline(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactory
createLwPolyline
in interface DxfFile.EntityFactory
java.lang.Exception
public void createLine(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactory
createLine
in interface DxfFile.EntityFactory
java.lang.Exception
public void createText(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactory
createText
in interface DxfFile.EntityFactory
java.lang.Exception
public void createMText(DxfGroupVector v) throws java.lang.Exception
DxfFile.EntityFactory
createMText
in interface DxfFile.EntityFactory
java.lang.Exception
public void createPoint(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactory
createPoint
in interface DxfFile.EntityFactory
java.lang.Exception
public void createCircle(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactory
createCircle
in interface DxfFile.EntityFactory
java.lang.Exception
public void createEllipse(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactory
createEllipse
in interface DxfFile.EntityFactory
java.lang.Exception
public void createArc(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactory
createArc
in interface DxfFile.EntityFactory
java.lang.Exception
public void createInsert(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactory
createInsert
in interface DxfFile.EntityFactory
java.lang.Exception
public void createSolid(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactory
createSolid
in interface DxfFile.EntityFactory
java.lang.Exception
public void createSpline(DxfGroupVector grp) throws java.lang.Exception
createSpline
in interface DxfFile.EntityFactory
java.lang.Exception
public void createBlock(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactory
createBlock
in interface DxfFile.EntityFactory
java.lang.Exception
public void endBlk(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactory
endBlk
in interface DxfFile.EntityFactory
java.lang.Exception
public void testBlocks()
DxfFile.EntityFactory
testBlocks
in interface DxfFile.EntityFactory
public void setProjection(IProjection proj)
public IProjection getProjection()
getProjection
in interface Projected
public void reProject(ICoordTrans rp)
reProject
in interface Projected
public DxfEntityList getEntities()
public DxfTable getLayers()
public DxfBlock getBlk()
public void gestionaInsert(DxfInsert entity, DxfLayer layer)
public void createAttdef(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactory
createAttdef
in interface DxfFile.EntityFactory
java.lang.Exception
public void createAttrib(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactory
createAttrib
in interface DxfFile.EntityFactory
java.lang.Exception
public java.util.Vector getAttributes()
DxfFile.EntityFactory
getAttributes
in interface DxfFile.EntityFactory
public void depureAttributes()
DxfFile.EntityFactory
depureAttributes
in interface DxfFile.EntityFactory
public boolean isDxf3DFile()
DxfFile.EntityFactory
isDxf3DFile
in interface DxfFile.EntityFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |