public final class PgByuLoader extends PgAbstractLoader
GEOM_DATA_AUTHOR, GEOM_DATA_COLORS, GEOM_DATA_HEADER, GEOM_DATA_INFO, GEOM_DATA_NORMALS, GEOM_DATA_TEXTURE, GEOM_DATA_VECTORS| Constructor and Description |
|---|
PgByuLoader() |
| Modifier and Type | Method and Description |
|---|---|
PgJvxSrc[] |
read(java.io.BufferedReader in)
Read geometry file in the Brigham Young University's MOVIE.BYU file format.
|
static PgJvxSrc[] |
read(java.lang.String fileName)
Read geometry file in the Brigham Young University's MOVIE.BYU file format.
|
boolean |
write(java.io.Writer writer,
PgJvxSrc[] geomArr)
Write an array of geometries into an output stream writer.
|
getAnimations, getDisplayOption, getGeometries, getSpecializedGeometries, isAnimation, isEnabledOptimization, load, read, setAnimation, setDisplayOption, setGeometryOption, writepublic static PgJvxSrc[] read(java.lang.String fileName)
public PgJvxSrc[] read(java.io.BufferedReader in)
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.
read in interface PgLoaderIfread in class PgAbstractLoaderin - BufferedReader to read textual data from.write(Writer, PgJvxSrc [])public boolean write(java.io.Writer writer,
PgJvxSrc[] geomArr)
throws java.io.IOException
write in interface PgLoaderIfwrite in class PgAbstractLoaderwriter - Write all data to this streamgeomArr - Array with geometries to savetrue on success.java.io.IOExceptionread(BufferedReader)"