JavaView® v2.00.008

jv.loader
Class PgDxfLoader

java.lang.Object
  |
  +--jv.loader.PgDxfLoader

public class PgDxfLoader
extends java.lang.Object

Loader for geometry files given in AutoCAD's DXF file format. This reader supports a subset of the commands. For details see the webpage on supported file formats.

Version:
06.08.00, 1.00 revised (kp)
06.08.00, 1.00 created (kp)
Author:
Konrad Polthier

Field Summary
protected static int ENTITY_3DFACE
           
protected static int ENTITY_ANGULAR
           
protected static int ENTITY_ARC
           
protected static int ENTITY_ATTDEF
           
protected static int ENTITY_ATTRIB
           
protected static int ENTITY_BLOCK
           
protected static int ENTITY_CIRCLE
           
protected static int ENTITY_DIAMETER
           
protected static int ENTITY_DIMENSION
           
protected static int ENTITY_ENDBLK
           
protected static int ENTITY_INSERT
           
protected static int ENTITY_LINE
           
protected static int ENTITY_LINEAR
           
protected static int ENTITY_ORDINATE
           
protected static int ENTITY_POINT
           
protected static int ENTITY_POLYLINE
           
protected static int ENTITY_RADIUS
           
protected static int ENTITY_SEQEND
           
protected static int ENTITY_SHAPE
           
protected static int ENTITY_SOLID
           
protected static int ENTITY_TEXT
           
protected static int ENTITY_TRACE
           
protected static int ENTITY_VERTEX
           
protected static int ENTITY_VIEWPORT
           
protected static boolean m_bElements
           
protected static boolean m_bPolygonColors
           
protected static boolean m_bPolygonNormals
           
protected static boolean m_bPolygons
           
protected static boolean m_bVertexNormals
           
protected static boolean m_bVertexTextures
           
protected static boolean m_bVertexVector
           
protected  int m_dimOfElements
           
protected  int m_dimOfPolygons
           
protected  int m_numElements
           
protected  int m_numPolygons
           
protected  int m_numVertices
           
protected  java.util.Vector m_vElement
           
protected  java.util.Vector m_vPolygon
           
protected  java.util.Vector m_vVertex
           
 
Constructor Summary
PgDxfLoader()
           
 
Method Summary
protected  PgJvxSrc[] parse(java.io.BufferedReader bufReader)
           
 PgJvxSrc[] read(java.io.BufferedReader in)
          Read geometry file in Autodesk DXF file format.
 PgJvxSrc[] read(java.lang.String fileName)
          Read geometry file in Autodesk DXF file format.
static java.lang.String write(PgJvxSrc geom)
           
protected static java.lang.String writeElements(int num, PiVector[] element)
          Write list of elements and element normals into string.
protected static java.lang.String writePdVectors(java.lang.String type, java.lang.String id, int num, PdVector[] vector)
          Write list of double vectors into string.
protected static java.lang.String writePolygons(int num, PiVector[] polygon)
          Write list of polygons and polygon normals into string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENTITY_LINE

protected static final int ENTITY_LINE

ENTITY_POINT

protected static final int ENTITY_POINT

ENTITY_CIRCLE

protected static final int ENTITY_CIRCLE

ENTITY_ARC

protected static final int ENTITY_ARC

ENTITY_TRACE

protected static final int ENTITY_TRACE

ENTITY_SOLID

protected static final int ENTITY_SOLID

ENTITY_TEXT

protected static final int ENTITY_TEXT

ENTITY_SHAPE

protected static final int ENTITY_SHAPE

ENTITY_BLOCK

protected static final int ENTITY_BLOCK

ENTITY_ENDBLK

protected static final int ENTITY_ENDBLK

ENTITY_INSERT

protected static final int ENTITY_INSERT

ENTITY_ATTDEF

protected static final int ENTITY_ATTDEF

ENTITY_ATTRIB

protected static final int ENTITY_ATTRIB

ENTITY_POLYLINE

protected static final int ENTITY_POLYLINE

ENTITY_VERTEX

protected static final int ENTITY_VERTEX

ENTITY_SEQEND

protected static final int ENTITY_SEQEND

ENTITY_3DFACE

protected static final int ENTITY_3DFACE

ENTITY_VIEWPORT

protected static final int ENTITY_VIEWPORT

ENTITY_DIMENSION

protected static final int ENTITY_DIMENSION

ENTITY_LINEAR

protected static final int ENTITY_LINEAR

ENTITY_ANGULAR

protected static final int ENTITY_ANGULAR

ENTITY_DIAMETER

protected static final int ENTITY_DIAMETER

ENTITY_RADIUS

protected static final int ENTITY_RADIUS

ENTITY_ORDINATE

protected static final int ENTITY_ORDINATE

m_numVertices

protected int m_numVertices

m_numPolygons

protected int m_numPolygons

m_numElements

protected int m_numElements

m_vVertex

protected java.util.Vector m_vVertex

m_dimOfElements

protected int m_dimOfElements

m_vElement

protected java.util.Vector m_vElement

m_dimOfPolygons

protected int m_dimOfPolygons

m_vPolygon

protected java.util.Vector m_vPolygon

m_bVertexNormals

protected static boolean m_bVertexNormals

m_bVertexTextures

protected static boolean m_bVertexTextures

m_bVertexVector

protected static boolean m_bVertexVector

m_bElements

protected static boolean m_bElements

m_bPolygons

protected static boolean m_bPolygons

m_bPolygonColors

protected static boolean m_bPolygonColors

m_bPolygonNormals

protected static boolean m_bPolygonNormals
Constructor Detail

PgDxfLoader

public PgDxfLoader()
Method Detail

read

public PgJvxSrc[] read(java.lang.String fileName)
Read geometry file in Autodesk DXF file format.

read

public PgJvxSrc[] read(java.io.BufferedReader in)
Read geometry file in Autodesk DXF file format.

parse

protected PgJvxSrc[] parse(java.io.BufferedReader bufReader)

write

public static java.lang.String write(PgJvxSrc geom)

writePdVectors

protected static java.lang.String writePdVectors(java.lang.String type,
                                                 java.lang.String id,
                                                 int num,
                                                 PdVector[] vector)
Write list of double vectors into string. Numbers with absolute value less than EPS are shown as zero. This avoids the annoying fact that double precision numbers fill the whole text area hiding the exponent, which hides their small value.

writeElements

protected static java.lang.String writeElements(int num,
                                                PiVector[] element)
Write list of elements and element normals into string. Numbers with absolute value less than EPS are shown as zero. This avoids the anoying fact that double precision numbers fill the whole text area hiding the exponent, which hides their small value.

writePolygons

protected static java.lang.String writePolygons(int num,
                                                PiVector[] polygon)
Write list of polygons and polygon normals into string. Numbers with absolute value less than EPS are shown as zero. This avoids the anoying fact that double precision numbers fill the whole text area hiding the exponent, which hides their small value.

JavaView® v2.00.008

The software JavaView® is copyright protected. All Rights Reserved.