JavaView® v2.00.008

jv.loader
Class PgFeLoader

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

public class PgFeLoader
extends java.lang.Object

Loader for geometry files given in Ken Brakke's Surface Evolver FE file format. This reader supports a subset of the commands.

Version:
22.06.00, 1.00 created (kp)
Author:
Konrad Polthier

Field Summary
protected  boolean m_bLinear
          Linear model.
protected  int m_dimOfElements
           
protected  int m_dimOfVertices
           
protected  int m_meshRepresentation
           
protected  int m_meshType
           
protected  int m_numEdges
           
protected  int m_numElements
           
protected  int m_numTetras
           
protected  int m_numVertices
           
protected  double m_scale
          Scale factor of geometry.
protected  double m_totalTime
          Total time of computation of geometry.
protected  java.util.Vector m_vEdge
           
protected  java.util.Vector m_vElement
           
protected  PdMatrix m_viewMat
          Viewing matrix.
protected  java.util.Vector m_vTetra
           
protected  java.util.Vector m_vVertex
           
 
Constructor Summary
PgFeLoader()
           
 
Method Summary
protected  boolean parse(java.io.BufferedReader bufReader, PgJvxSrc geom)
          Parse a Surface Evolver's .fe file and fill instance variables of this class.
 PgJvxSrc read(java.io.BufferedReader in)
          Read geometry file in Ken Brakke's Surface Evolver FE file format.
 PgJvxSrc read(java.lang.String fileName)
          Read geometry file in Ken Brakke's Surface Evolver FE file format.
static java.lang.String write(PgJvxSrc geom)
          Write a geometry into a string in FE file format.
protected static java.lang.String writeElements(int num, PiVector[] element)
          Write list of elements and element normals into string.
protected static java.lang.String writeVertices(int num, PdVector[] vertex)
          Write list of vertices into string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_meshType

protected int m_meshType

m_meshRepresentation

protected int m_meshRepresentation

m_dimOfVertices

protected int m_dimOfVertices

m_numVertices

protected int m_numVertices

m_vVertex

protected java.util.Vector m_vVertex

m_numEdges

protected int m_numEdges

m_vEdge

protected java.util.Vector m_vEdge

m_dimOfElements

protected int m_dimOfElements

m_numElements

protected int m_numElements

m_vElement

protected java.util.Vector m_vElement

m_numTetras

protected int m_numTetras

m_vTetra

protected java.util.Vector m_vTetra

m_bLinear

protected boolean m_bLinear
Linear model.

m_scale

protected double m_scale
Scale factor of geometry.

m_totalTime

protected double m_totalTime
Total time of computation of geometry.

m_viewMat

protected PdMatrix m_viewMat
Viewing matrix.
Constructor Detail

PgFeLoader

public PgFeLoader()
Method Detail

read

public PgJvxSrc read(java.lang.String fileName)
Read geometry file in Ken Brakke's Surface Evolver FE file format.

read

public PgJvxSrc read(java.io.BufferedReader in)
Read geometry file in Ken Brakke's Surface Evolver FE file format.

parse

protected boolean parse(java.io.BufferedReader bufReader,
                        PgJvxSrc geom)
Parse a Surface Evolver's .fe file and fill instance variables of this class. This is a helper routine of read.
See Also:
PgFeLoader#read(PgGeometry, String)

write

public static java.lang.String write(PgJvxSrc geom)
Write a geometry into a string in FE file format.

writeVertices

protected static java.lang.String writeVertices(int num,
                                                PdVector[] vertex)
Write list of vertices into string. 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.

writeElements

protected static java.lang.String writeElements(int num,
                                                PiVector[] element)
Write list of elements and element normals into string. 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.