public static class B3DModel.Parser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Deque<com.google.common.collect.Table<java.lang.Integer,java.util.Optional<B3DModel.Node<?>>,B3DModel.Key>> |
animations |
private java.util.List<B3DModel.Brush> |
brushes |
private java.nio.ByteBuffer |
buf |
private java.lang.String |
dump |
private int |
length |
private java.util.Deque<java.lang.Integer> |
limitStack |
private com.google.common.collect.ImmutableMap.Builder<java.lang.String,B3DModel.Node<B3DModel.Mesh>> |
meshes |
private B3DModel |
res |
private byte[] |
tag |
private java.util.List<B3DModel.Texture> |
textures |
private static int |
version |
private java.util.List<B3DModel.Vertex> |
vertices |
Constructor and Description |
---|
Parser(java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
private org.apache.commons.lang3.tuple.Triple<java.lang.Integer,java.lang.Integer,java.lang.Float> |
anim() |
private B3DModel |
bb3d() |
private java.util.List<org.apache.commons.lang3.tuple.Pair<B3DModel.Vertex,java.lang.Float>> |
bone() |
private java.util.List<B3DModel.Brush> |
brus() |
private void |
chunk(java.lang.String tag) |
private void |
dump(java.lang.String str) |
private B3DModel.Brush |
getBrush(int brush) |
private B3DModel.Texture |
getTexture(int texture) |
private B3DModel.Vertex |
getVertex(int vertex) |
private boolean |
isChunk(java.lang.String tag) |
private java.util.Map<java.lang.Integer,B3DModel.Key> |
keys() |
private org.apache.commons.lang3.tuple.Pair<B3DModel.Brush,java.util.List<B3DModel.Face>> |
mesh() |
private B3DModel.Node<?> |
node() |
B3DModel |
parse() |
private void |
popLimit() |
private void |
pushLimit() |
private void |
readHeader() |
private javax.vecmath.Quat4f |
readQuat() |
private java.lang.String |
readString() |
private void |
skip() |
private java.util.List<B3DModel.Texture> |
texs() |
private java.util.List<B3DModel.Face> |
tris() |
private java.util.List<B3DModel.Vertex> |
vrts() |
private static final int version
private final java.nio.ByteBuffer buf
private byte[] tag
private int length
private java.lang.String dump
private B3DModel res
private final java.util.List<B3DModel.Texture> textures
private final java.util.List<B3DModel.Brush> brushes
private final java.util.List<B3DModel.Vertex> vertices
private final com.google.common.collect.ImmutableMap.Builder<java.lang.String,B3DModel.Node<B3DModel.Mesh>> meshes
private java.util.Deque<java.lang.Integer> limitStack
private final java.util.Deque<com.google.common.collect.Table<java.lang.Integer,java.util.Optional<B3DModel.Node<?>>,B3DModel.Key>> animations
public Parser(java.io.InputStream in) throws java.io.IOException
java.io.IOException
private void dump(java.lang.String str)
public B3DModel parse() throws java.io.IOException
java.io.IOException
private B3DModel.Texture getTexture(int texture)
@Nullable private B3DModel.Brush getBrush(int brush) throws java.io.IOException
java.io.IOException
private B3DModel.Vertex getVertex(int vertex) throws java.io.IOException
java.io.IOException
private void readHeader() throws java.io.IOException
java.io.IOException
private boolean isChunk(java.lang.String tag) throws java.io.IOException
java.io.IOException
private void chunk(java.lang.String tag) throws java.io.IOException
java.io.IOException
private java.lang.String readString() throws java.io.IOException
java.io.IOException
private void pushLimit()
private void popLimit()
private B3DModel bb3d() throws java.io.IOException
java.io.IOException
private java.util.List<B3DModel.Texture> texs() throws java.io.IOException
java.io.IOException
private java.util.List<B3DModel.Brush> brus() throws java.io.IOException
java.io.IOException
private java.util.List<B3DModel.Vertex> vrts() throws java.io.IOException
java.io.IOException
private java.util.List<B3DModel.Face> tris() throws java.io.IOException
java.io.IOException
private org.apache.commons.lang3.tuple.Pair<B3DModel.Brush,java.util.List<B3DModel.Face>> mesh() throws java.io.IOException
java.io.IOException
private java.util.List<org.apache.commons.lang3.tuple.Pair<B3DModel.Vertex,java.lang.Float>> bone() throws java.io.IOException
java.io.IOException
private java.util.Map<java.lang.Integer,B3DModel.Key> keys() throws java.io.IOException
java.io.IOException
private org.apache.commons.lang3.tuple.Triple<java.lang.Integer,java.lang.Integer,java.lang.Float> anim() throws java.io.IOException
java.io.IOException
private B3DModel.Node<?> node() throws java.io.IOException
java.io.IOException
private javax.vecmath.Quat4f readQuat()
private void skip()