Class ModelInstanceDef
- java.lang.Object
-
- com.google.flatbuffers.Table
-
- com.google.ar.sceneform.lullmodel.ModelInstanceDef
-
public final class ModelInstanceDef extends Table
-
-
Field Summary
-
Fields inherited from class com.google.flatbuffers.Table
UTF8_CHARSET
-
-
Constructor Summary
Constructors Constructor Description ModelInstanceDef()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelInstanceDef__assign(int _i, java.nio.ByteBuffer _bb)void__init(int _i, java.nio.ByteBuffer _bb)SubmeshAabbaabbs(int j)A bounding Aabb for each submesh.SubmeshAabbaabbs(SubmeshAabb obj, int j)intaabbsLength()static voidaddAabbs(FlatBufferBuilder builder, int aabbsOffset)static voidaddBlendAttributes(FlatBufferBuilder builder, int blendAttributesOffset)static voidaddBlendShapes(FlatBufferBuilder builder, int blendShapesOffset)static voidaddIndices16(FlatBufferBuilder builder, int indices16Offset)static voidaddIndices32(FlatBufferBuilder builder, int indices32Offset)static voidaddInterleaved(FlatBufferBuilder builder, boolean interleaved)static voidaddMaterials(FlatBufferBuilder builder, int materialsOffset)static voidaddNumVertices(FlatBufferBuilder builder, long numVertices)static voidaddRanges(FlatBufferBuilder builder, int rangesOffset)static voidaddShaderToMeshBones(FlatBufferBuilder builder, int shaderToMeshBonesOffset)static voidaddVertexAttributes(FlatBufferBuilder builder, int vertexAttributesOffset)static voidaddVertexData(FlatBufferBuilder builder, int vertexDataOffset)VertexAttributeblendAttributes(int j)Describes the structure of the vertex data for the blend shapes.VertexAttributeblendAttributes(VertexAttribute obj, int j)intblendAttributesLength()BlendShapeblendShapes(int j)A collection of blendshapes, if they exist.BlendShapeblendShapes(BlendShape obj, int j)intblendShapesLength()static intcreateAabbsVector(FlatBufferBuilder builder, int[] data)static intcreateBlendShapesVector(FlatBufferBuilder builder, int[] data)static intcreateIndices16Vector(FlatBufferBuilder builder, short[] data)static intcreateIndices32Vector(FlatBufferBuilder builder, int[] data)static intcreateMaterialsVector(FlatBufferBuilder builder, int[] data)static intcreateModelInstanceDef(FlatBufferBuilder builder, int vertex_dataOffset, int indices16Offset, int indices32Offset, int rangesOffset, int materialsOffset, int vertex_attributesOffset, long num_vertices, boolean interleaved, int shader_to_mesh_bonesOffset, int blend_shapesOffset, int blend_attributesOffset, int aabbsOffset)static intcreateShaderToMeshBonesVector(FlatBufferBuilder builder, byte[] data)static intcreateShaderToMeshBonesVector(FlatBufferBuilder builder, java.nio.ByteBuffer data)static intcreateVertexDataVector(FlatBufferBuilder builder, byte[] data)static intcreateVertexDataVector(FlatBufferBuilder builder, java.nio.ByteBuffer data)static intendModelInstanceDef(FlatBufferBuilder builder)static ModelInstanceDefgetRootAsModelInstanceDef(java.nio.ByteBuffer _bb)static ModelInstanceDefgetRootAsModelInstanceDef(java.nio.ByteBuffer _bb, ModelInstanceDef obj)intindices16(int j)Indices into the vertex data.java.nio.ByteBufferindices16AsByteBuffer()java.nio.ByteBufferindices16InByteBuffer(java.nio.ByteBuffer _bb)intindices16Length()longindices32(int j)java.nio.ByteBufferindices32AsByteBuffer()java.nio.ByteBufferindices32InByteBuffer(java.nio.ByteBuffer _bb)intindices32Length()booleaninterleaved()Whether or not the attributes in the vertex data are interleaved.MaterialDefmaterials(int j)The material describing the "look" of each submesh.MaterialDefmaterials(MaterialDef obj, int j)intmaterialsLength()longnumVertices()The total number of vertices stored in the vertex data.ModelIndexRangeranges(int j)The range of indices for each submesh.ModelIndexRangeranges(ModelIndexRange obj, int j)intrangesLength()intshaderToMeshBones(int j)Maps the skeleton bone index to the shader bone index.java.nio.ByteBuffershaderToMeshBonesAsByteBuffer()java.nio.ByteBuffershaderToMeshBonesInByteBuffer(java.nio.ByteBuffer _bb)intshaderToMeshBonesLength()static voidstartAabbsVector(FlatBufferBuilder builder, int numElems)static voidstartBlendAttributesVector(FlatBufferBuilder builder, int numElems)static voidstartBlendShapesVector(FlatBufferBuilder builder, int numElems)static voidstartIndices16Vector(FlatBufferBuilder builder, int numElems)static voidstartIndices32Vector(FlatBufferBuilder builder, int numElems)static voidstartMaterialsVector(FlatBufferBuilder builder, int numElems)static voidstartModelInstanceDef(FlatBufferBuilder builder)static voidstartRangesVector(FlatBufferBuilder builder, int numElems)static voidstartShaderToMeshBonesVector(FlatBufferBuilder builder, int numElems)static voidstartVertexAttributesVector(FlatBufferBuilder builder, int numElems)static voidstartVertexDataVector(FlatBufferBuilder builder, int numElems)VertexAttributevertexAttributes(int j)Describes the structure of the vertex data, effectively the VertexFormat.VertexAttributevertexAttributes(VertexAttribute obj, int j)intvertexAttributesLength()intvertexData(int j)The "raw" vertex data stored as a byte array.java.nio.ByteBuffervertexDataAsByteBuffer()java.nio.ByteBuffervertexDataInByteBuffer(java.nio.ByteBuffer _bb)intvertexDataLength()-
Methods inherited from class com.google.flatbuffers.Table
__reset, getByteBuffer
-
-
-
-
Method Detail
-
getRootAsModelInstanceDef
public static ModelInstanceDef getRootAsModelInstanceDef(java.nio.ByteBuffer _bb)
-
getRootAsModelInstanceDef
public static ModelInstanceDef getRootAsModelInstanceDef(java.nio.ByteBuffer _bb, ModelInstanceDef obj)
-
__init
public void __init(int _i, java.nio.ByteBuffer _bb)
-
__assign
public ModelInstanceDef __assign(int _i, java.nio.ByteBuffer _bb)
-
vertexData
public int vertexData(int j)
The "raw" vertex data stored as a byte array.
-
vertexDataLength
public int vertexDataLength()
-
vertexDataAsByteBuffer
public java.nio.ByteBuffer vertexDataAsByteBuffer()
-
vertexDataInByteBuffer
public java.nio.ByteBuffer vertexDataInByteBuffer(java.nio.ByteBuffer _bb)
-
indices16
public int indices16(int j)
Indices into the vertex data. Will either be an array of 16-bit or 32-bit values.
-
indices16Length
public int indices16Length()
-
indices16AsByteBuffer
public java.nio.ByteBuffer indices16AsByteBuffer()
-
indices16InByteBuffer
public java.nio.ByteBuffer indices16InByteBuffer(java.nio.ByteBuffer _bb)
-
indices32
public long indices32(int j)
-
indices32Length
public int indices32Length()
-
indices32AsByteBuffer
public java.nio.ByteBuffer indices32AsByteBuffer()
-
indices32InByteBuffer
public java.nio.ByteBuffer indices32InByteBuffer(java.nio.ByteBuffer _bb)
-
ranges
public ModelIndexRange ranges(int j)
The range of indices for each submesh.
-
ranges
public ModelIndexRange ranges(ModelIndexRange obj, int j)
-
rangesLength
public int rangesLength()
-
materials
public MaterialDef materials(int j)
The material describing the "look" of each submesh.
-
materials
public MaterialDef materials(MaterialDef obj, int j)
-
materialsLength
public int materialsLength()
-
vertexAttributes
public VertexAttribute vertexAttributes(int j)
Describes the structure of the vertex data, effectively the VertexFormat.
-
vertexAttributes
public VertexAttribute vertexAttributes(VertexAttribute obj, int j)
-
vertexAttributesLength
public int vertexAttributesLength()
-
numVertices
public long numVertices()
The total number of vertices stored in the vertex data.
-
interleaved
public boolean interleaved()
Whether or not the attributes in the vertex data are interleaved.
-
shaderToMeshBones
public int shaderToMeshBones(int j)
Maps the skeleton bone index to the shader bone index. The shader bones are only the bones that have at least one vertex weighted to them and, as such, are a subset of all the bones in the skeleton.
-
shaderToMeshBonesLength
public int shaderToMeshBonesLength()
-
shaderToMeshBonesAsByteBuffer
public java.nio.ByteBuffer shaderToMeshBonesAsByteBuffer()
-
shaderToMeshBonesInByteBuffer
public java.nio.ByteBuffer shaderToMeshBonesInByteBuffer(java.nio.ByteBuffer _bb)
-
blendShapes
public BlendShape blendShapes(int j)
A collection of blendshapes, if they exist.
-
blendShapes
public BlendShape blendShapes(BlendShape obj, int j)
-
blendShapesLength
public int blendShapesLength()
-
blendAttributes
public VertexAttribute blendAttributes(int j)
Describes the structure of the vertex data for the blend shapes.
-
blendAttributes
public VertexAttribute blendAttributes(VertexAttribute obj, int j)
-
blendAttributesLength
public int blendAttributesLength()
-
aabbs
public SubmeshAabb aabbs(int j)
A bounding Aabb for each submesh.
-
aabbs
public SubmeshAabb aabbs(SubmeshAabb obj, int j)
-
aabbsLength
public int aabbsLength()
-
createModelInstanceDef
public static int createModelInstanceDef(FlatBufferBuilder builder, int vertex_dataOffset, int indices16Offset, int indices32Offset, int rangesOffset, int materialsOffset, int vertex_attributesOffset, long num_vertices, boolean interleaved, int shader_to_mesh_bonesOffset, int blend_shapesOffset, int blend_attributesOffset, int aabbsOffset)
-
startModelInstanceDef
public static void startModelInstanceDef(FlatBufferBuilder builder)
-
addVertexData
public static void addVertexData(FlatBufferBuilder builder, int vertexDataOffset)
-
createVertexDataVector
public static int createVertexDataVector(FlatBufferBuilder builder, byte[] data)
-
createVertexDataVector
public static int createVertexDataVector(FlatBufferBuilder builder, java.nio.ByteBuffer data)
-
startVertexDataVector
public static void startVertexDataVector(FlatBufferBuilder builder, int numElems)
-
addIndices16
public static void addIndices16(FlatBufferBuilder builder, int indices16Offset)
-
createIndices16Vector
public static int createIndices16Vector(FlatBufferBuilder builder, short[] data)
-
startIndices16Vector
public static void startIndices16Vector(FlatBufferBuilder builder, int numElems)
-
addIndices32
public static void addIndices32(FlatBufferBuilder builder, int indices32Offset)
-
createIndices32Vector
public static int createIndices32Vector(FlatBufferBuilder builder, int[] data)
-
startIndices32Vector
public static void startIndices32Vector(FlatBufferBuilder builder, int numElems)
-
addRanges
public static void addRanges(FlatBufferBuilder builder, int rangesOffset)
-
startRangesVector
public static void startRangesVector(FlatBufferBuilder builder, int numElems)
-
addMaterials
public static void addMaterials(FlatBufferBuilder builder, int materialsOffset)
-
createMaterialsVector
public static int createMaterialsVector(FlatBufferBuilder builder, int[] data)
-
startMaterialsVector
public static void startMaterialsVector(FlatBufferBuilder builder, int numElems)
-
addVertexAttributes
public static void addVertexAttributes(FlatBufferBuilder builder, int vertexAttributesOffset)
-
startVertexAttributesVector
public static void startVertexAttributesVector(FlatBufferBuilder builder, int numElems)
-
addNumVertices
public static void addNumVertices(FlatBufferBuilder builder, long numVertices)
-
addInterleaved
public static void addInterleaved(FlatBufferBuilder builder, boolean interleaved)
-
addShaderToMeshBones
public static void addShaderToMeshBones(FlatBufferBuilder builder, int shaderToMeshBonesOffset)
-
createShaderToMeshBonesVector
public static int createShaderToMeshBonesVector(FlatBufferBuilder builder, byte[] data)
-
createShaderToMeshBonesVector
public static int createShaderToMeshBonesVector(FlatBufferBuilder builder, java.nio.ByteBuffer data)
-
startShaderToMeshBonesVector
public static void startShaderToMeshBonesVector(FlatBufferBuilder builder, int numElems)
-
addBlendShapes
public static void addBlendShapes(FlatBufferBuilder builder, int blendShapesOffset)
-
createBlendShapesVector
public static int createBlendShapesVector(FlatBufferBuilder builder, int[] data)
-
startBlendShapesVector
public static void startBlendShapesVector(FlatBufferBuilder builder, int numElems)
-
addBlendAttributes
public static void addBlendAttributes(FlatBufferBuilder builder, int blendAttributesOffset)
-
startBlendAttributesVector
public static void startBlendAttributesVector(FlatBufferBuilder builder, int numElems)
-
addAabbs
public static void addAabbs(FlatBufferBuilder builder, int aabbsOffset)
-
createAabbsVector
public static int createAabbsVector(FlatBufferBuilder builder, int[] data)
-
startAabbsVector
public static void startAabbsVector(FlatBufferBuilder builder, int numElems)
-
endModelInstanceDef
public static int endModelInstanceDef(FlatBufferBuilder builder)
-
-