|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jv.loader.PgMathLoader
Loader for Mathematica geometries. Reads Graphics, Graphics3d, SurfaceGraphics or lists of these from the Mathematica format "InputForm". If a list of Graphics, Graphics3d or SurfaceGraphics should get animated in JavaView, it must be applied with the keyword "ShowAnimation"; the former keywords "Animation" and "KeyAnimation" will work still.
readGraphics(StreamTokenizer).| Constructor Summary | |
PgMathLoader()
|
|
| Method Summary | |
PvDisplayOption |
getDisplayOption()
Return display options. |
boolean |
isAnimation()
Return, if list of geometries is an animation. |
boolean |
isKeyAnimation()
Return, if list of geometries is a keyframe animation. |
PgJvxSrc[][] |
read(java.io.BufferedReader in)
Parse a Mathematica graphics from a bufferedReader. |
void |
setAnimation(boolean flag)
Set flag, if list of geometries is an animation. |
void |
setKeyAnimation(boolean flag)
Set flag, if list of geometries is a keyframe animation. |
boolean |
write(java.io.Writer writer,
PgJvxSrc[] geomArr)
Write an array of geometries into an output stream writer in Mathematica expression file format, called MGS. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PgMathLoader()
| Method Detail |
public boolean isKeyAnimation()
public void setKeyAnimation(boolean flag)
public boolean isAnimation()
public void setAnimation(boolean flag)
public PgJvxSrc[][] read(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.
writer - Write all data to this streamgeomArr - Array with geometries to savetrue on success.#read(PgGeometry [], BufferedReader)public PvDisplayOption getDisplayOption()
|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||