public final class SMFOBJImporter extends Object implements SMFOBJImporterType
SMFOBJImporterType interface.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static SMFOBJImporterType |
create(Optional<Path> in_path,
InputStream in_stream,
SMFParserEventsType in_events)
Create a new OBJ importer.
|
void |
onCommandFFinished(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index) |
void |
onCommandFStarted(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index) |
void |
onCommandFVertexV_VN(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index,
int v,
int vn) |
void |
onCommandFVertexV_VT_VN(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index,
int v,
int vt,
int vn) |
void |
onCommandFVertexV_VT(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index,
int v,
int vt) |
void |
onCommandFVertexV(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index,
int v) |
void |
onCommandMtllib(com.io7m.jlexing.core.LexicalPositionType<Path> p,
String name) |
void |
onCommandO(com.io7m.jlexing.core.LexicalPositionType<Path> p,
String name) |
void |
onCommandS(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int group_number) |
void |
onCommandUsemtl(com.io7m.jlexing.core.LexicalPositionType<Path> p,
String name) |
void |
onCommandV(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index,
double x,
double y,
double z,
double w) |
void |
onCommandVN(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index,
double x,
double y,
double z) |
void |
onCommandVT(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index,
double x,
double y,
double z) |
void |
onComment(com.io7m.jlexing.core.LexicalPositionType<Path> p,
String text) |
void |
onEOF(com.io7m.jlexing.core.LexicalPositionType<Path> p) |
void |
onError(com.io7m.jlexing.core.LexicalPositionType<Path> p,
com.io7m.jobj.core.JOParserErrorCode e,
String message) |
void |
onFatalError(com.io7m.jlexing.core.LexicalPositionType<Path> p,
Optional<Throwable> e,
String message) |
void |
onLine(com.io7m.jlexing.core.LexicalPositionType<Path> p,
String line) |
void |
parse()
Begin parsing.
|
public static SMFOBJImporterType create(Optional<Path> in_path, InputStream in_stream, SMFParserEventsType in_events)
in_path - The path, if anyin_stream - The input streamin_events - An event receiverpublic void onFatalError(com.io7m.jlexing.core.LexicalPositionType<Path> p, Optional<Throwable> e, String message)
onFatalError in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onError(com.io7m.jlexing.core.LexicalPositionType<Path> p, com.io7m.jobj.core.JOParserErrorCode e, String message)
onError in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onLine(com.io7m.jlexing.core.LexicalPositionType<Path> p, String line)
onLine in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onEOF(com.io7m.jlexing.core.LexicalPositionType<Path> p)
onEOF in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onComment(com.io7m.jlexing.core.LexicalPositionType<Path> p, String text)
onComment in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onCommandUsemtl(com.io7m.jlexing.core.LexicalPositionType<Path> p, String name)
onCommandUsemtl in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onCommandMtllib(com.io7m.jlexing.core.LexicalPositionType<Path> p, String name)
onCommandMtllib in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onCommandO(com.io7m.jlexing.core.LexicalPositionType<Path> p, String name)
onCommandO in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onCommandS(com.io7m.jlexing.core.LexicalPositionType<Path> p, int group_number)
onCommandS in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onCommandV(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index, double x, double y, double z, double w)
onCommandV in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onCommandVN(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index, double x, double y, double z)
onCommandVN in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onCommandVT(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index, double x, double y, double z)
onCommandVT in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onCommandFVertexV_VT_VN(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index, int v, int vt, int vn)
onCommandFVertexV_VT_VN in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onCommandFVertexV_VT(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index, int v, int vt)
onCommandFVertexV_VT in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onCommandFVertexV_VN(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index, int v, int vn)
onCommandFVertexV_VN in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onCommandFVertexV(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index, int v)
onCommandFVertexV in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onCommandFStarted(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index)
onCommandFStarted in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void onCommandFFinished(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index)
onCommandFFinished in interface com.io7m.jobj.core.JOParserEventListenerTypepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void parse()
SMFParserSequentialTypeparse in interface SMFParserSequentialTypeCopyright © 2017 <code@io7m.com> http://io7m.com