public class DGNReader extends Object
Constructor and Description |
---|
DGNReader(String pathFich) |
DGNReader(String pathFich,
boolean logErrors) |
Modifier and Type | Method and Description |
---|---|
String |
DGNDumpElement(DGNInfo psInfo,
DGNElemCore psElement)
Muestra por consola los elementos que contiene el DGN.
|
DGNLink |
DGNGetLinkage(DGNElemCore psElement,
Integer index,
Integer type,
Integer entityCode,
Integer mslink,
Pattern data) |
int |
DGNGetLinkageCount(DGNElemCore psElement) |
double[] |
DGNGetRawExtents(DGNInfo info,
byte[] pabyRawData,
DGNElemCore elemento)
Devuelve los extent de una fila.
|
int |
DGNGetShapeFillInfo(DGNElemCore psElem)
Fetch fill color for a shape.
|
int |
DGNGotoElement(int element_id)
Seek to indicated element.
|
Color |
DGNLookupColor(int color_index)
Translate color index into RGB values.
|
DGNElemCore |
DGNReadElement() |
Rectangle2D |
getBoundingBox()
Devuelve el rectángulo del extent.
|
DGNInfo |
getInfo()
Devuelve la información del DGN.
|
int |
getNumEntities()
Devuelve el número de elementos.
|
boolean |
is3D() |
Iterator |
linksiterator(DGNElemCore psElement) |
public DGNReader(String pathFich) throws DataException
DataException
public DGNReader(String pathFich, boolean logErrors) throws DataException
DataException
public boolean is3D()
public DGNInfo getInfo()
public int getNumEntities()
public Rectangle2D getBoundingBox()
public int DGNGotoElement(int element_id)
element_id
- the element to seek to. These values are sequentially
ordered starting at zero for the first element.public DGNElemCore DGNReadElement()
public double[] DGNGetRawExtents(DGNInfo info, byte[] pabyRawData, DGNElemCore elemento)
info
- Información del DGN.pabyRawData
- Vector de byte.elemento
- Elemento.public String DGNDumpElement(DGNInfo psInfo, DGNElemCore psElement)
psInfo
- Información del DGN.psElement
- elementopublic DGNLink DGNGetLinkage(DGNElemCore psElement, Integer index, Integer type, Integer entityCode, Integer mslink, Pattern data)
public Iterator linksiterator(DGNElemCore psElement)
public int DGNGetLinkageCount(DGNElemCore psElement)
public Color DGNLookupColor(int color_index)
color_index
- the color index to lookup.public int DGNGetShapeFillInfo(DGNElemCore psElem)
psElem
- the element.