public class DxfFeatureMaker extends java.lang.Object implements DxfFile.EntityFactory, Projected
| Constructor and Description |
|---|
DxfFeatureMaker(IProjection proj)
Constructor de DxfFeatureMaker.
|
| 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
|
static java.util.Vector |
createArc(java.awt.geom.Point2D coord1,
java.awt.geom.Point2D coord2,
double bulge)
Invoca el m�todo de creaci�n de arcos para polil�neas con par�metros de
curvatura.
|
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 v)
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 grp)
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)
Crea un nuevo Spline partiendo de la informaci�n almacenada en el
DXF
|
void |
createText(DxfGroupVector grp)
Crea un nuevo texto partiendo de la informaci�n almacenada en el
DXF
|
void |
depureAttributes()
Borra los atributos repetidos
|
void |
draw(java.awt.Graphics2D g,
ViewPortData vp)
Permite dibujar las features creadas.
|
void |
endBlk(DxfGroupVector grp)
Fin de la definici�n de un bloqe
|
void |
endSeq()
Fin de secuencia
|
java.util.Vector |
getAttributes()
Permite la gesti�n de los atributos almacenados en unn DXF
|
DxfBlock |
getBlk() |
java.util.Vector |
getBlkList()
Devuelve la lista de bloques
|
DxfEntityList |
getDxfEntityList() |
Extent |
getExtent()
Devuelve el extent
|
IObjList |
getObjects()
Devuelve las features creadas.
|
IProjection |
getProjection()
Returns the current projection.
|
boolean |
isDxf3DFile()
Permite saber si se trata de un fichero DXF en 2D o en 3D
|
void |
reProject(ICoordTrans rp)
Changes projection of the graphical information of this object.
|
void |
setAddingToBlock(boolean a)
Permite saber si se est�n a�adiendo elementos a un bloque
|
void |
setDxf3DFile(boolean dxf3DFile) |
void |
setProjection(IProjection p)
Establece la proyecci�n cartogr�fica en la que se van a crear las features.
|
void |
testBlocks()
Gestiona los bloques que no se han tratado en la primera vuelta
|
public DxfFeatureMaker(IProjection proj)
proj, - proyecci�n cartogr�fica en la que se encontrar�n las entidades
que creemos.public void setAddingToBlock(boolean a)
DxfFile.EntityFactorysetAddingToBlock in interface DxfFile.EntityFactorypublic void createLayer(DxfGroupVector v) 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 grp) 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 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
DxfFile.EntityFactorycreateSpline in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic 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 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 depureAttributes()
DxfFile.EntityFactorydepureAttributes in interface DxfFile.EntityFactorypublic java.util.Vector getAttributes()
DxfFile.EntityFactorygetAttributes in interface DxfFile.EntityFactorypublic Extent getExtent()
DxfFile.EntityFactorygetExtent in interface DxfFile.EntityFactorypublic void setProjection(IProjection p)
p, - Proyecci�n cartogr�fica.public void reProject(ICoordTrans rp)
ProjectedChanges projection of the graphical information of this object.
reProject in interface Projectedrp - transformation coordinates for obtaining the new projectionProjected.getProjection()public IProjection getProjection()
ProjectedReturns the current projection.
getProjection in interface ProjectedProjected.reProject(ICoordTrans)public IObjList getObjects()
getObjects in interface DxfFile.EntityFactorypublic void draw(java.awt.Graphics2D g,
ViewPortData vp)
public static java.util.Vector createArc(java.awt.geom.Point2D coord1,
java.awt.geom.Point2D coord2,
double bulge)
coord1, - punto inicial del arco.coord2, - punto final del arco.bulge, - par�metro de curvatura.public java.util.Vector getBlkList()
DxfFile.EntityFactorygetBlkList in interface DxfFile.EntityFactorypublic DxfEntityList getDxfEntityList()
public DxfBlock getBlk()
public void createEllipse(DxfGroupVector grp) throws java.lang.Exception
DxfFile.EntityFactorycreateEllipse in interface DxfFile.EntityFactoryjava.lang.Exceptionpublic boolean isDxf3DFile()
DxfFile.EntityFactoryisDxf3DFile in interface DxfFile.EntityFactorypublic void setDxf3DFile(boolean dxf3DFile)
dxf3DFile - The dxf3DFile to set.