JavaView® v2.00.008

jv.loader
Class PgBdLoader

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

public class PgBdLoader
extends java.lang.Object

Reads a build file '*.bd' and fills information in PgMacroPatch. Class is later queried by an application for macro patches. An application is responsible to generate actual geometries, like triangulations, out of a macro patch.

Each macro patch may be bounded by simple straight lines or by curves with sophisticated boundary constraints to be used in calculus of variations. See description of the file format '*.bd' for more details.

Version:
28.08.99 revised (kp) Name changed from PgBuildFile to PgBdLoader.
00.00.98 created (kp)
Author:
Konrad Polthier

Field Summary
protected  int m_endFrame
           
protected  int m_numDoubleParms
           
protected  int m_numIntegerParms
           
protected  int m_numPatches
           
protected  int m_numVertices
           
protected  PgMacroPatch[] m_patch
          m_patch is already the set of patches, here we should store also the other file information just to be complete.
protected  int m_startFrame
           
protected  java.lang.String m_task
          Information in the build file.
protected  PdVector[] m_vertex
           
protected  PiVector[] m_vertexType
           
 
Constructor Summary
PgBdLoader()
           
 
Method Summary
 int getNumPatches()
          Get number of macro patches found in the build file.
 PgMacroPatch getPatch(int anInd)
          Return the macro patch with given index.
protected  boolean parseBuild(java.io.BufferedReader bufReader)
          Parse build file and fill information in current class.
 boolean read(java.io.BufferedReader inBuild)
          Read build file and fill information in current class.
 boolean read(java.lang.String fileName)
          Deprecated. use #read(BufferedReader)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_task

protected java.lang.String m_task
Information in the build file.

m_startFrame

protected int m_startFrame

m_endFrame

protected int m_endFrame

m_numIntegerParms

protected int m_numIntegerParms

m_numDoubleParms

protected int m_numDoubleParms

m_numPatches

protected int m_numPatches

m_numVertices

protected int m_numVertices

m_vertex

protected PdVector[] m_vertex

m_vertexType

protected PiVector[] m_vertexType

m_patch

protected PgMacroPatch[] m_patch
m_patch is already the set of patches, here we should store also the other file information just to be complete.
Constructor Detail

PgBdLoader

public PgBdLoader()
Method Detail

getNumPatches

public int getNumPatches()
Get number of macro patches found in the build file.

getPatch

public PgMacroPatch getPatch(int anInd)
Return the macro patch with given index.

read

public boolean read(java.lang.String fileName)
Deprecated. use #read(BufferedReader)

Read build file and fill information in current class.

read

public boolean read(java.io.BufferedReader inBuild)
Read build file and fill information in current class.

parseBuild

protected boolean parseBuild(java.io.BufferedReader bufReader)
                      throws java.io.IOException
Parse build file and fill information in current class.

JavaView® v2.00.008

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