public interface JOParserEventListenerType
| Modifier and Type | Method and Description |
|---|---|
void |
onCommandFFinished(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index)
An
f command was completed successfully. |
void |
onCommandFStarted(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index)
An
f command was encountered. |
void |
onCommandFVertexV_VN(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index,
int v,
int vn)
A
v//vn vertex was specified for an f command. |
void |
onCommandFVertexV_VT_VN(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index,
int v,
int vt,
int vn)
A
v/vt/vn vertex was specified for an f command. |
void |
onCommandFVertexV_VT(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index,
int v,
int vt)
A
v/vt/ vertex was specified for an f command. |
void |
onCommandFVertexV(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index,
int v)
A
v// vertex was specified for an f command. |
void |
onCommandMtllib(com.io7m.jlexing.core.LexicalPositionType<Path> p,
String name)
An
mtllib command was encountered. |
void |
onCommandO(com.io7m.jlexing.core.LexicalPositionType<Path> p,
String name)
An
o command was encountered. |
void |
onCommandS(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int group_number)
An
s command was encountered. |
void |
onCommandUsemtl(com.io7m.jlexing.core.LexicalPositionType<Path> p,
String name)
A
usemtl command was encountered. |
void |
onCommandV(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index,
double x,
double y,
double z,
double w)
A
v command was encountered. |
void |
onCommandVN(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index,
double x,
double y,
double z)
A
vn command was encountered. |
void |
onCommandVT(com.io7m.jlexing.core.LexicalPositionType<Path> p,
int index,
double x,
double y,
double z)
A
vt command was encountered. |
void |
onComment(com.io7m.jlexing.core.LexicalPositionType<Path> p,
String text)
A comment was encountered.
|
void |
onEOF(com.io7m.jlexing.core.LexicalPositionType<Path> p)
EOF has been reached.
|
void |
onError(com.io7m.jlexing.core.LexicalPositionType<Path> p,
JOParserErrorCode e,
String message)
A non-fatal error has occurred.
|
void |
onFatalError(com.io7m.jlexing.core.LexicalPositionType<Path> p,
Optional<Throwable> e,
String message)
A fatal error has occurred.
|
void |
onLine(com.io7m.jlexing.core.LexicalPositionType<Path> p,
String line)
The given line is about to be parsed.
|
void onFatalError(com.io7m.jlexing.core.LexicalPositionType<Path> p, Optional<Throwable> e, String message)
p - The lexical positione - The exception, if anymessage - The error messagevoid onError(com.io7m.jlexing.core.LexicalPositionType<Path> p, JOParserErrorCode e, String message)
p - The lexical positione - The error codemessage - The error messagevoid onLine(com.io7m.jlexing.core.LexicalPositionType<Path> p, String line)
p - The lexical positionline - The linevoid onEOF(com.io7m.jlexing.core.LexicalPositionType<Path> p)
p - The lexical positionvoid onComment(com.io7m.jlexing.core.LexicalPositionType<Path> p, String text)
p - The lexical positiontext - The comment text (including '#')void onCommandUsemtl(com.io7m.jlexing.core.LexicalPositionType<Path> p, String name)
usemtl command was encountered.p - The lexical positionname - The material namevoid onCommandMtllib(com.io7m.jlexing.core.LexicalPositionType<Path> p, String name)
mtllib command was encountered.p - The lexical positionname - The material file namevoid onCommandO(com.io7m.jlexing.core.LexicalPositionType<Path> p, String name)
o command was encountered.p - The lexical positionname - The object namevoid onCommandS(com.io7m.jlexing.core.LexicalPositionType<Path> p, int group_number)
s command was encountered.p - The lexical positiongroup_number - The group numbervoid onCommandV(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index, double x, double y, double z, double w)
v command was encountered.p - The lexical positionindex - The indexx - The X valuey - The Y valuez - The Z valuew - The W valuevoid onCommandVN(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index, double x, double y, double z)
vn command was encountered.p - The lexical positionindex - The indexx - The X valuey - The Y valuez - The Z valuevoid onCommandVT(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index, double x, double y, double z)
vt command was encountered.p - The lexical positionindex - The indexx - The X valuey - The Y valuez - The Z valuevoid onCommandFVertexV_VT_VN(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index, int v, int vt, int vn)
v/vt/vn vertex was specified for an f command.p - The lexical positionindex - The indexv - The v valuevt - The vt valuevn - The vn valuevoid onCommandFVertexV_VT(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index, int v, int vt)
v/vt/ vertex was specified for an f command.p - The lexical positionindex - The indexv - The v valuevt - The vt valuevoid onCommandFVertexV_VN(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index, int v, int vn)
v//vn vertex was specified for an f command.p - The lexical positionindex - The indexv - The v valuevn - The vn valuevoid onCommandFVertexV(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index, int v)
v// vertex was specified for an f command.p - The lexical positionindex - The indexv - The v valuevoid onCommandFStarted(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index)
f command was encountered. Vertices will be delivered via the
FVertex* methods, with (LexicalPositionType, int) signalling the end of the face. If any errors
are encountered during parsing of vertices, (LexicalPositionType, JOParserErrorCode, String) will be called instead of
onCommandFFinished(LexicalPositionType, int).p - The lexical positionindex - The indexonCommandFVertexV(LexicalPositionType, int, int),
onCommandFVertexV_VN(LexicalPositionType, int, int, int),
onCommandFVertexV_VT(LexicalPositionType, int, int, int),
onCommandFVertexV_VT_VN(LexicalPositionType, int, int, int, int),
onCommandFFinished(LexicalPositionType, int)void onCommandFFinished(com.io7m.jlexing.core.LexicalPositionType<Path> p, int index)
f command was completed successfully.p - The lexical positionindex - The indexCopyright © 2016 <code@io7m.com> http://io7m.com