|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jv.loader.PgBdLoader
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.
| Constructor Summary | |
PgBdLoader()
|
|
| Method Summary | |
PvDisplayOption |
getDisplayOption()
Get display options which some parsers and geometry file formats supply. |
int |
getNumPatches()
Get number of macro patches found in the build file. |
PgMacroPatch |
getPatch(int anInd)
Return the macro patch with given index. |
boolean |
isAnimation()
Determine if currently loaded data is an animation. |
PgJvxSrc[] |
read(java.io.BufferedReader in)
Read an inhouse BD geometry file and return an array with a single surface. |
PgElementSet[] |
readElementSet(java.io.BufferedReader in)
|
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 |
public PgBdLoader()
| Method Detail |
public PvDisplayOption getDisplayOption()
getDisplayOption in interface PgLoaderIfpublic void setDisplayOption(PvDisplayOption option)
setDisplayOption in interface PgLoaderIfpublic boolean isAnimation()
isAnimation in interface PgLoaderIfpublic void setAnimation(boolean flag)
setAnimation in interface PgLoaderIfpublic int getNumPatches()
public PgMacroPatch getPatch(int anInd)
public PgJvxSrc[] read(java.io.BufferedReader in)
The returned array of geometry may contain keyframes of
an animation. This is checked with the method isAnimation().
read in interface PgLoaderIfin - BufferedReader to read textual data from.#write(Writer)public PgElementSet[] readElementSet(java.io.BufferedReader in)
public boolean write(java.io.Writer writer,
PgJvxSrc[] geomArr)
throws java.io.IOException
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.
write in interface PgLoaderIfwriter - Write all data to this streamgeomArr - Array with geometries to savetrue on success.#read(PgGeometry [], BufferedReader)
|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||