JavaView® v2.12

jv.loader
Class PgByuLoader

java.lang.Object
  |
  +--jv.loader.PgByuLoader
All Implemented Interfaces:
PgLoaderIf

public class PgByuLoader
extends java.lang.Object
implements PgLoaderIf

Loader for geometry files in the Brigham Young University's MOVIE.BYU file format.

Version:
23.09.01, 1.60 revised (kp) Implement PgLoaderIf extended with methods for display options.
08.11.00, 1.50 revised (kp) Number formatting methods moved to jv.number.PuString.
06.08.99, 1.10 revised (kp) InputStream replaced with BufferedReader.
00.00.98, 1.00 created (kp)
Author:
Konrad Polthier

Constructor Summary
PgByuLoader()
           
 
Method Summary
 PvDisplayOption getDisplayOption()
          Get display options which some parsers and geometry file formats supply.
 boolean isAnimation()
          Determine if currently loaded data is an animation.
 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.
 void setAnimation(boolean flag)
          Set flag whether current geometry data is an animation.
 void setDisplayOption(PvDisplayOption option)
          Set the display options to be saved within the geometry file.
 boolean write(java.io.Writer writer, PgJvxSrc[] geomArr)
          Write an array of geometries into an output stream writer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PgByuLoader

public PgByuLoader()
Method Detail

getDisplayOption

public PvDisplayOption getDisplayOption()
Get display options which some parsers and geometry file formats supply. This geometry file format does not support loading/saving of display options.
Specified by:
getDisplayOption in interface PgLoaderIf

setDisplayOption

public void setDisplayOption(PvDisplayOption option)
Set the display options to be saved within the geometry file. This method must be called before writing the geometry. This geometry file format does not support loading/saving of display options.
Specified by:
setDisplayOption in interface PgLoaderIf

isAnimation

public boolean isAnimation()
Determine if currently loaded data is an animation.
Specified by:
isAnimation in interface PgLoaderIf

setAnimation

public void setAnimation(boolean flag)
Set flag whether current geometry data is an animation.
Specified by:
setAnimation in interface PgLoaderIf

read

public static PgJvxSrc[] read(java.lang.String fileName)
Read geometry file in the Brigham Young University's MOVIE.BYU file format.

read

public PgJvxSrc[] read(java.io.BufferedReader in)
Read geometry file in the Brigham Young University's MOVIE.BYU file format.

The returned array of geometry may contain keyframes of an animation. This is checked with the method isAnimation().

Specified by:
read in interface PgLoaderIf
Parameters:
in - BufferedReader to read textual data from.
Returns:
Array of JVX geometries.
See Also:
#write(Writer)

write

public boolean write(java.io.Writer writer,
                     PgJvxSrc[] geomArr)
              throws java.io.IOException
Write an array of geometries into an output stream writer.
Specified by:
write in interface PgLoaderIf
Parameters:
writer - Write all data to this stream
geomArr - Array with geometries to save
Returns:
true on success.
See Also:
#read(PgGeometry [], BufferedReader)

JavaView® v2.12

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