|
IsoSurface Rendering of an AR Representation | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--rlaramee.ASCIIfloatReader
Description: The ASCIIfloatReader reads the input file. The input
file stores uniform or adaptive resolution data representing
3D volume data.
Handy numbers:
64 x 64 x 64 = 262,144
start date Tue 27 April 1999
MarchingCubesReader.java| Field Summary | |
private float[][] |
data
|
private boolean |
debug
|
private java.io.FileInputStream |
input
|
private java.io.StreamTokenizer |
stream
|
private int |
xrows
|
private int |
ycolumns
|
private int |
zlayers
|
| Constructor Summary | |
ASCIIfloatReader(int rows,
int columns,
int layers)
constructor |
|
| Method Summary | |
private int |
closeFile()
This closes the input file. |
boolean |
openFile(java.lang.String filename)
This function opens the file specified by filename |
private double |
parseDouble(java.io.StreamTokenizer stream)
This method parses an ASCII text floating point number. |
void |
parseFile()
This method parses the data file. |
private float |
parseFloat(java.io.StreamTokenizer stream)
This method parses an ASCII text floating point number |
float[][] |
run(java.lang.String filename)
The run() function starts the ASCIIFloatReader. |
private boolean |
validRange(double value,
double min,
double max)
|
private boolean |
validRange(double value,
int min,
int max)
|
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private java.io.FileInputStream input
private java.io.StreamTokenizer stream
private float[][] data
private int xrows
private int ycolumns
private int zlayers
private boolean debug
| Constructor Detail |
public ASCIIfloatReader(int rows,
int columns,
int layers)
rows - the number of rows in the volume datacolumns - the number of columns in the volume datalayers - the number of layers in the volume data| Method Detail |
public float[][] run(java.lang.String filename)
1 open the file
2 parse the file
3 FOR each float in the ASCII file
add it to the data set
filename - the name of the file to openpublic boolean openFile(java.lang.String filename)
filename - the name of file to open
public void parseFile()
throws java.io.IOException
java.io.IOException - private int closeFile()
private float parseFloat(java.io.StreamTokenizer stream)
throws java.io.IOException
stream - a handle to the input streamjava.io.IOException -
private double parseDouble(java.io.StreamTokenizer stream)
throws java.io.IOException
stream - a handle to the input streamjava.io.IOException -
private boolean validRange(double value,
int min,
int max)
value - the value to validatemin - the minimum allowable valuemax - the maximum allowable value
private boolean validRange(double value,
double min,
double max)
value - the value to validatemin - the minimum allowable valuemax - maximum allowable value
|
IsoSurface Rendering of an AR Representation | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||