JavaView® v2.00.008

jv.loader
Class PgMapleLoader

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

public class PgMapleLoader
extends java.lang.Object

Loader for Maple geometries.

Version:
27.02.01, 1.20 revised (ur) Adapted to changes in PgLoader.parseDouble.
24.08.00, 1.10 revised (kp) Animation added.
21.08.00, 1.00 created (kp)
Author:
Konrad Polthier

Field Summary
protected static boolean m_bAnimation
          Flag is true whenever an animation has been parsed.
 
Constructor Summary
PgMapleLoader()
           
 
Method Summary
static boolean isAnimation()
          Determine whether previous read() command loaded an animation.
protected static java.util.Vector parseMaple(java.io.BufferedReader bufReader)
          Parse the Maple graphics given in the input bufferedReader.
static PgJvxSrc[] read(java.io.BufferedReader bufReader)
          Read Maple graphics data.
static PgJvxSrc[] read(java.lang.String fileName)
          Read geometry file in Maple graphic file format.
protected static java.util.Vector readGraphics(java.io.StreamTokenizer st, int dim, java.util.Vector geomVec)
          Parse a Maple graphics object.
static java.lang.String write(PgJvxSrc geom)
          Write a geometry into a string in Maple PLOT/PLOT3D file format, called MPL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_bAnimation

protected static boolean m_bAnimation
Flag is true whenever an animation has been parsed. Each read() method must set it to false initially to initialize from previous settings.
Constructor Detail

PgMapleLoader

public PgMapleLoader()
Method Detail

isAnimation

public static boolean isAnimation()
Determine whether previous read() command loaded an animation.

read

public static PgJvxSrc[] read(java.lang.String fileName)
Read geometry file in Maple graphic file format.

read

public static PgJvxSrc[] read(java.io.BufferedReader bufReader)
Read Maple graphics data.

parseMaple

protected static java.util.Vector parseMaple(java.io.BufferedReader bufReader)
Parse the Maple graphics given in the input bufferedReader.
Parameters:
bufReader - a reader ready with data.
Returns:
Vector with PgJvxSrc geometries, or null if failure.

readGraphics

protected static java.util.Vector readGraphics(java.io.StreamTokenizer st,
                                               int dim,
                                               java.util.Vector geomVec)
                                        throws java.io.IOException
Parse a Maple graphics object.

write

public static java.lang.String write(PgJvxSrc geom)
Write a geometry into a string in Maple PLOT/PLOT3D file format, called MPL.

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.