JavaView® v2.12

jvx.loader
Class PgAnsLoader

java.lang.Object
  |
  +--jvx.loader.PgAnsLoader
All Implemented Interfaces:
PgLoaderIf

public class PgAnsLoader
extends java.lang.Object
implements PgLoaderIf

Loader for finite element geometries in Ansys file format. This reader supports a subset of the commands.

Version:
23.09.01, 1.60 revised (kp) Implement PgLoaderIf extended with methods for display options.
11.06.01, 1.50 revised (kp) Implement PgLoaderIf.
14.11.00, 1.01 revised (sk) data loader added in parse.
17.09.00, 1.00 created (kp)
Author:
Konrad Polthier

Constructor Summary
PgAnsLoader()
           
 
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 Ansys 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

PgAnsLoader

public PgAnsLoader()
Method Detail

getDisplayOption

public PvDisplayOption getDisplayOption()
Get display options which some parsers and geometry file formats supply. Currently, this loader 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. Currently, this loader 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 PgJvxSrc[] read(java.io.BufferedReader in)
Read geometry file in Ansys file format.
Specified by:
read in interface PgLoaderIf
Following copied from interface: jv.loader.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.

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.

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.