|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlyReader
Interface for classes reading PLY file structures.
Method Summary | |
---|---|
void |
close()
Closes the file. |
int |
getElementCount(String elementType)
Gets the number of elements for a given element type. |
List<ElementType> |
getElementTypes()
Gets all element types in this PLY file. |
ElementReader |
nextElementReader()
Returns the reader to read the first group of elements. |
Method Detail |
---|
List<ElementType> getElementTypes()
The order of the list
is the same in which the corresponding readers are returned
by nextElementReader()
.
int getElementCount(String elementType)
elementType
- Name of the element type.
NullPointerException
- if elementType
is null
.
IllegalArgumentException
- if there is no such type in this
file.ElementReader nextElementReader() throws IOException
Each group corresponds to an element type. The groups are
returned in the order given in the file. This is also the
same order as in the list given by getElementTypes()
.
Each returned reader must be closed before the next reader is requested with this method.
null
if
there are no more groups.
IOException
- if an error occurs during reading.void close() throws IOException
IOException
- if closing fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |