public class DxfEntityMaker extends java.lang.Object implements DxfFile.EntityFactory, Projected
| Constructor and Description |
|---|
DxfEntityMaker(IProjection proj)
Constructor de DxfEntityMaker.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public DxfEntityMaker(IProjection proj)
proj, - proyecci�n cartogr�fica en la que se encontrar�n las entidades
que creemos.public java.util.Vector getBlkList()
DxfFile.EntityFactorygetBlkList in interface DxfFile.EntityFactorypublic IObjList getObjects()
DxfFile.EntityFactorygetObjects in interface DxfFile.EntityFactorypublic Extent getExtent()
DxfFile.EntityFactorygetExtent in interface DxfFile.EntityFactorypublic void setAddingToBlock(boolean a)
DxfFile.EntityFactorysetAddingToBlock in interface DxfFile.EntityFactorypublic void createLayer(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactorycreateLayer in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void createPolyline(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactorycreatePolyline in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void endSeq()
throws java.lang.Exception
DxfFile.EntityFactoryendSeq in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void addVertex(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactoryaddVertex in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void createLwPolyline(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactorycreateLwPolyline in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void createLine(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactorycreateLine in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void createText(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactorycreateText in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void createMText(DxfGroupVector v) throws java.lang.Exception
DxfFile.EntityFactorycreateMText in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void createPoint(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactorycreatePoint in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void createCircle(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactorycreateCircle in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void createEllipse(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactorycreateEllipse in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void createArc(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactorycreateArc in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void createInsert(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactorycreateInsert in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void createSolid(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactorycreateSolid in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void createSpline(DxfGroupVector grp) throws java.lang.Exception
createSpline in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void createBlock(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactorycreateBlock in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void endBlk(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactoryendBlk in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void testBlocks()
DxfFile.EntityFactorytestBlocks in interface DxfFile.EntityFactorypublic void setProjection(IProjection proj)
p, - Proyecci�n cartogr�fica.public IProjection getProjection()
getProjection in interface ProjectedProjected.reProject(ICoordTrans)public void reProject(ICoordTrans rp)
reProject in interface Projectedrp, - coordenadas de transformaci�n.Projected.getProjection()public DxfEntityList getEntities()
public DxfTable getLayers()
public DxfBlock getBlk()
public void gestionaInsert(DxfInsert entity, DxfLayer layer)
entity, - el punto de inserci�n.layer, - la capa en la que se encuentra.public void createAttdef(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactorycreateAttdef in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic void createAttrib(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactorycreateAttrib in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic java.util.Vector getAttributes()
DxfFile.EntityFactorygetAttributes in interface DxfFile.EntityFactorypublic void depureAttributes()
DxfFile.EntityFactorydepureAttributes in interface DxfFile.EntityFactorypublic boolean isDxf3DFile()
DxfFile.EntityFactoryisDxf3DFile in interface DxfFile.EntityFactory