org.cresques.px.dxf
Class DxfEntityMaker
java.lang.Object
org.cresques.px.dxf.DxfEntityMaker
- All Implemented Interfaces:
- DxfFile.EntityFactory, Projected
- public class DxfEntityMaker
- extends java.lang.Object
- implements DxfFile.EntityFactory, Projected
- Author:
- nacho
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DxfEntityMaker
public DxfEntityMaker(IProjection proj)
getBlkList
public java.util.Vector getBlkList()
- Specified by:
getBlkList
in interface DxfFile.EntityFactory
getObjects
public IObjList getObjects()
- Specified by:
getObjects
in interface DxfFile.EntityFactory
getExtent
public Extent getExtent()
- Specified by:
getExtent
in interface DxfFile.EntityFactory
setAddingToBlock
public void setAddingToBlock(boolean a)
- Specified by:
setAddingToBlock
in interface DxfFile.EntityFactory
createLayer
public void createLayer(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createLayer
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createPolyline
public void createPolyline(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createPolyline
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
endSeq
public void endSeq()
throws java.lang.Exception
- Specified by:
endSeq
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
addVertex
public void addVertex(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
addVertex
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createLwPolyline
public void createLwPolyline(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createLwPolyline
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createLine
public void createLine(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createLine
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createText
public void createText(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createText
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createMText
public void createMText(DxfGroupVector v)
throws java.lang.Exception
- Specified by:
createMText
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createPoint
public void createPoint(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createPoint
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createCircle
public void createCircle(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createCircle
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createEllipse
public void createEllipse(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createEllipse
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createArc
public void createArc(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createArc
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createInsert
public void createInsert(DxfGroupVector grp)
throws java.lang.Exception
- TODO Detectados fallos en las rotaciones de bloques. Hoja 72231.
Detectado en los bloques correspondientes a campos de futbol,
de tipo solid.
- Specified by:
createInsert
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createSolid
public void createSolid(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createSolid
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createSpline
public void createSpline(DxfGroupVector grp)
throws java.lang.Exception
- Los Splines estan implementados como LwPolylines. Se pintan las lineas
entre los vertices pero no se aplica la curvatura Spline.
TODO Contemplar la curvatura spline para Splines.
- Specified by:
createSpline
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createBlock
public void createBlock(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createBlock
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
endBlk
public void endBlk(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
endBlk
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
testBlocks
public void testBlocks()
- Specified by:
testBlocks
in interface DxfFile.EntityFactory
setProjection
public void setProjection(IProjection proj)
getProjection
public IProjection getProjection()
- Specified by:
getProjection
in interface Projected
reProject
public void reProject(ICoordTrans rp)
- Specified by:
reProject
in interface Projected
getEntities
public DxfEntityList getEntities()
getLayers
public DxfTable getLayers()
getBlk
public DxfBlock getBlk()
gestionaInsert
public void gestionaInsert(DxfInsert entity,
DxfLayer layer)
createAttdef
public void createAttdef(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createAttdef
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createAttrib
public void createAttrib(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createAttrib
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
getAttributes
public java.util.Vector getAttributes()
- Specified by:
getAttributes
in interface DxfFile.EntityFactory
depureAttributes
public void depureAttributes()
- Specified by:
depureAttributes
in interface DxfFile.EntityFactory
isDxf3DFile
public boolean isDxf3DFile()
- Specified by:
isDxf3DFile
in interface DxfFile.EntityFactory