Classes | |
class | Element |
enum | FileFormat |
class | Property |
class | ValueLine |
Protected Member Functions | |
boolean | loadModel (String filename) |
Private Member Functions | |
void | dump () |
Number | parseType (String type) |
boolean | processDataBuffer () |
boolean | processDataLine (String parts[]) |
boolean | processLine (String parts[]) |
Private Attributes | |
ByteBuffer | byteBuffer |
int | currentElement = 0 |
ArrayList< Element > | elements = new ArrayList<Element>() |
FileFormat | fileFormat |
Parser for .ply (Polygon File Format) files. Supports binary and ASCII files.
Definition at line 32 of file PlyParser.java.
void edu.tum.cs.vis.model.parser.PlyParser.dump | ( | ) | [inline, private] |
Dump ply file. Used for debugging purposes.
Definition at line 162 of file PlyParser.java.
boolean edu.tum.cs.vis.model.parser.PlyParser.loadModel | ( | String | filename | ) | [inline, protected, virtual] |
This function will be called from parseModel if the model isn't in the Buffer
filename | Physical file of model to parse |
Implements edu.tum.cs.vis.model.parser.ModelParser.
Definition at line 179 of file PlyParser.java.
Number edu.tum.cs.vis.model.parser.PlyParser.parseType | ( | String | type | ) | [inline, private] |
Get next bytes of byteBuffer where type
indicates which number type is expected (char, short, long, ...) and therefore how much bytes to read.
type | Type of expected value. |
Definition at line 462 of file PlyParser.java.
boolean edu.tum.cs.vis.model.parser.PlyParser.processDataBuffer | ( | ) | [inline, private] |
Parse current binary buffer by converting bytes into numbers and storing them in internal structure.
Definition at line 497 of file PlyParser.java.
boolean edu.tum.cs.vis.model.parser.PlyParser.processDataLine | ( | String | parts[] | ) | [inline, private] |
Process ASCII line of data.
parts | Parts of line separated by spaces |
Definition at line 431 of file PlyParser.java.
boolean edu.tum.cs.vis.model.parser.PlyParser.processLine | ( | String | parts[] | ) | [inline, private] |
Process header line.
parts | Parts of line separated by spaces |
Definition at line 392 of file PlyParser.java.
ByteBuffer edu.tum.cs.vis.model.parser.PlyParser.byteBuffer [private] |
Byte buffer used for binary parsing.
Definition at line 53 of file PlyParser.java.
int edu.tum.cs.vis.model.parser.PlyParser.currentElement = 0 [private] |
Index of current element which is getting parsed.
Definition at line 156 of file PlyParser.java.
ArrayList<Element> edu.tum.cs.vis.model.parser.PlyParser.elements = new ArrayList<Element>() [private] |
List of all elements of ply file
Definition at line 151 of file PlyParser.java.
File format of current file
Definition at line 63 of file PlyParser.java.