@ServiceProvider(value=MeshDecoder.class) public class RawDecoder extends Object implements MeshDecoder
| Modifier and Type | Field and Description |
|---|---|
static int |
FORMAT_VERSION |
static int |
RAW_TAG |
| Constructor and Description |
|---|
RawDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkTag(int readTag,
int expectedTag) |
Mesh |
decode(MeshInfo minfo,
CtmInputStream in) |
boolean |
isFormatSupported(int tag,
int version) |
protected float[] |
readFloatArray(CtmInputStream in,
int count,
int size) |
protected int[] |
readIntArray(CtmInputStream in,
int count,
int size,
boolean signed) |
public static final int RAW_TAG
public static final int FORMAT_VERSION
public Mesh decode(MeshInfo minfo, CtmInputStream in) throws IOException, BadFormatException, InvalidDataException
decode in interface MeshDecoderIOExceptionBadFormatExceptionInvalidDataExceptionprotected void checkTag(int readTag,
int expectedTag)
throws BadFormatException
BadFormatExceptionprotected int[] readIntArray(CtmInputStream in, int count, int size, boolean signed) throws IOException
IOExceptionprotected float[] readFloatArray(CtmInputStream in, int count, int size) throws IOException
IOExceptionpublic boolean isFormatSupported(int tag,
int version)
isFormatSupported in interface MeshDecoderCopyright © 2013. All Rights Reserved.