|
j3d.org Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.j3d.loaders.vterrain.BTParser
public class BTParser
A low-level parser for the VTerrain's Project BT file format.
The output of this parser is the flags and the raw height-field information.
The definition of the file format can be found at: http://www.vterrain.org/Implementation/BT.html
| Constructor Summary | |
|---|---|
BTParser()
Construct a new parser with no stream set. |
|
BTParser(java.io.InputStream is)
Construct a new parser using the given stream. |
|
| Method Summary | |
|---|---|
void |
clear()
Clear the internal data structures used by this parser. |
float[] |
getGridStep()
Fetch information about the real-world stepping sizes that this grid uses. |
BTHeader |
getHeader()
Get the header used to describe the last stream parsed. |
float[][] |
getHeights()
Return the height map created for the last stream parsed. |
float[][] |
parse()
Do all the parsing work. |
void |
reset(java.io.InputStream is)
Reset the parser to use the new stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BTParser()
public BTParser(java.io.InputStream is)
is - The stream to read data from| Method Detail |
|---|
public void reset(java.io.InputStream is)
is - The new stream to usepublic void clear()
public BTHeader getHeader()
public float[][] getHeights()
getHeights in interface HeightMapSourcepublic float[] getGridStep()
getGridStep in interface HeightMapSource
public float[][] parse()
throws java.io.IOException
IncorrectFormatException - The file is not one our loader
understands
ParsingErrorException - An error parsing the file
java.io.IOException
|
j3d.org Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||