jvx.loader
Class PgDxfLoader
- java.lang.Object
-
- jv.loader.PgAbstractLoader
-
- jvx.loader.PgDxfLoader
-
- All Implemented Interfaces:
- PgLoaderIf
public final class PgDxfLoader extends PgAbstractLoader
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.- Author:
- Konrad Polthier
- Version:
- 22.03.10, 3.00 revised (kp) Superclass changed to PgAbstractLoader.
20.10.05, 2.00 revised (kp) Serious increase of supported entities, including new AutoCAD 2002 items.
01.10.05, 1.90 revised (kp) Unknown groups no longer throw an exception but continue parsing.
06.10.03, 1.85 revised (kp) Interface extended by isEnabledOptimization().
19.04.03, 1.80 revised (kp) Interface extended by setGeometryOption().
21.08.02, 1.70 revised (kp) New methods getGeometries/getAnimations of PgLoaderIf implemented.
23.09.01, 1.60 revised (kp) Implement PgLoaderIf extended with methods for display options.
11.06.01, 1.50 revised (kp) Implement PgLoaderIf.
06.08.00, 1.00 created (kp)
-
-
Field Summary
-
Fields inherited from interface jv.loader.PgLoaderIf
GEOM_DATA_AUTHOR, GEOM_DATA_COLORS, GEOM_DATA_HEADER, GEOM_DATA_INFO, GEOM_DATA_NORMALS, GEOM_DATA_TEXTURE, GEOM_DATA_VECTORS
-
-
Constructor Summary
Constructors Constructor and Description PgDxfLoader()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description PgJvxSrc[]read(java.io.BufferedReader in)Read a DXF geometry file and return an array of new geometries.booleanwrite(java.io.Writer writer, PgJvxSrc[] geomArr)Write an array of geometries into an output stream writer.-
Methods inherited from class jv.loader.PgAbstractLoader
getAnimations, getDisplayOption, getGeometries, getSpecializedGeometries, isAnimation, isEnabledOptimization, load, read, setAnimation, setDisplayOption, setGeometryOption, write
-
-
-
-
Method Detail
-
read
public PgJvxSrc[] read(java.io.BufferedReader in)
Read a DXF geometry file and return an array of new geometries.The returned array of geometry may contain keyframes of an animation. This is checked with the method
isAnimation().Alternatively, one may call load(BuffereredReader) followed by getGeometries() resp. getAnimations() to have a finer control about which information one wants to use from a source. For example, optional display information must be retrieve by a subsequent call getDisplayOption() if available.
- Specified by:
readin interfacePgLoaderIf- Overrides:
readin classPgAbstractLoader- Parameters:
in- BufferedReader to read textual data from.- Returns:
- Array of JVX geometries.
- See Also:
write(Writer, PgJvxSrc [])- Author:
- Konrad Polthier
- Version:
- 10.06.01, 1.10 revised (kp) Return an array instead a single geometry.
06.08.00, 1.00 created (kp)
-
write
public boolean write(java.io.Writer writer, PgJvxSrc[] geomArr) throws java.io.IOExceptionWrite an array of geometries into an output stream writer.- Specified by:
writein interfacePgLoaderIf- Overrides:
writein classPgAbstractLoader- Parameters:
writer- Write all data to this streamgeomArr- Array with geometries to save- Returns:
trueon success.- Throws:
java.io.IOException- See Also:
read(BufferedReader)- Version:
- 19.06.07, 2.00 revised (ur) Implemented writing of data.
10.06.01, 1.10 revised (kp) Save array of geometries instead of single geometry.
06.08.00, 1.00 created (kp)
-
-
"