|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cresques.px.dxf.DxfFeatureMaker
La clase DxfFeatureMaker facilita la creación de entidades en un modelo de datos GIS. La creación se realiza partiendo de las entidades obtenidas de un fichero DXF.
Constructor Summary | |
DxfFeatureMaker(IProjection proj)
Constructor de DxfFeatureMaker. |
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 |
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 v)
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()
|
boolean |
isDxf3DFile()
Permite saber si se trata de un fichero DXF en 2D o en 3D |
void |
reProject(ICoordTrans rp)
|
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DxfFeatureMaker(IProjection proj)
Method Detail |
public void setAddingToBlock(boolean a)
DxfFile.EntityFactory
setAddingToBlock
in interface DxfFile.EntityFactory
public void createLayer(DxfGroupVector v) 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 grp) 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 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
DxfFile.EntityFactory
createSpline
in interface DxfFile.EntityFactory
java.lang.Exception
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 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 depureAttributes()
DxfFile.EntityFactory
depureAttributes
in interface DxfFile.EntityFactory
public java.util.Vector getAttributes()
DxfFile.EntityFactory
getAttributes
in interface DxfFile.EntityFactory
public Extent getExtent()
DxfFile.EntityFactory
getExtent
in interface DxfFile.EntityFactory
public void setProjection(IProjection p)
public void reProject(ICoordTrans rp)
reProject
in interface Projected
public IProjection getProjection()
getProjection
in interface Projected
public IObjList getObjects()
getObjects
in interface DxfFile.EntityFactory
public 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)
public java.util.Vector getBlkList()
DxfFile.EntityFactory
getBlkList
in interface DxfFile.EntityFactory
public DxfEntityList getDxfEntityList()
public DxfBlock getBlk()
public void createEllipse(DxfGroupVector v) throws java.lang.Exception
DxfFile.EntityFactory
createEllipse
in interface DxfFile.EntityFactory
java.lang.Exception
public boolean isDxf3DFile()
DxfFile.EntityFactory
isDxf3DFile
in interface DxfFile.EntityFactory
public void setDxf3DFile(boolean dxf3DFile)
dxf3DFile
- The dxf3DFile to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |