com.supermap.ar.areffect.gltfModel
Class BufferViews
- java.lang.Object
-
- com.supermap.ar.areffect.gltfModel.BufferViews
-
public class BufferViews extends java.lang.Object
Tile set of Gltf bufferview represents tiles (or blocks) of one buffer. bufferview is defined by offset and length.
-
-
Constructor Summary
Constructors Constructor and Description BufferViews()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Integer
getBuffer()
Gets gltf data buffer zonejava.lang.Integer
getByteLength()
Gets the length of bytes to be readjava.lang.Integer
getByteOffset()
Gets the byte offsetjava.lang.Integer
getByteStride()
Gets the step size of bytesjava.lang.String
getName()
Gets the namejava.lang.Integer
getTarget()
Gets Target target can be a constant indicating data is used for the vertex property (34962 means ARRAY_BUFFER).void
setBuffer(java.lang.Integer buffer)
Sets gltf data buffer zonevoid
setByteLength(java.lang.Integer byteLength)
Sets the length of bytes to be readvoid
setByteOffset(java.lang.Integer byteOffset)
Sets the byte offsetvoid
setByteStride(java.lang.Integer byteStride)
Sets the step size of bytesvoid
setName(java.lang.String name)
Sets a namevoid
setTarget(java.lang.Integer target)
Sets Target
-
-
-
Method Detail
-
setBuffer
public void setBuffer(java.lang.Integer buffer)
Sets gltf data buffer zone- Parameters:
buffer
-
-
getBuffer
public java.lang.Integer getBuffer()
Gets gltf data buffer zone- Returns:
-
setByteOffset
public void setByteOffset(java.lang.Integer byteOffset)
Sets the byte offset- Parameters:
byteOffset
-
-
getByteOffset
public java.lang.Integer getByteOffset()
Gets the byte offset- Returns:
-
setByteLength
public void setByteLength(java.lang.Integer byteLength)
Sets the length of bytes to be read- Parameters:
byteLength
-
-
getByteLength
public java.lang.Integer getByteLength()
Gets the length of bytes to be read- Returns:
-
setByteStride
public void setByteStride(java.lang.Integer byteStride)
Sets the step size of bytes- Parameters:
byteStride
-
-
getByteStride
public java.lang.Integer getByteStride()
Gets the step size of bytes- Returns:
-
getTarget
public java.lang.Integer getTarget()
Gets Target target can be a constant indicating data is used for the vertex property (34962 means ARRAY_BUFFER). Or the data is used for the vertex index (34963 means ELEMENT_ARRAY_BUFFER).- Returns:
-
setTarget
public void setTarget(java.lang.Integer target)
Sets Target- Parameters:
target
-
-
setName
public void setName(java.lang.String name)
Sets a name- Parameters:
name
-
-
getName
public java.lang.String getName()
Gets the name- Returns:
-
-