public class MeshPrimitive extends GlTFProperty
| Constructor and Description |
|---|
MeshPrimitive() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributes(java.lang.String key,
java.lang.String value)
Add the given attributes.
|
java.util.Map<java.lang.String,java.lang.String> |
defaultAttributes()
Returns the default value of the attributes
|
java.lang.Integer |
defaultMode()
Returns the default value of the mode
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
A dictionary object of strings, where each string is the ID of the
accessor containing an attribute.
|
java.lang.String |
getIndices()
The ID of the accessor that contains the indices.
|
java.lang.String |
getMaterial()
The ID of the material to apply to this primitive when rendering.
|
java.lang.Integer |
getMode()
The type of primitives to render.
|
void |
removeAttributes(java.lang.String key)
Remove the given attributes.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
A dictionary object of strings, where each string is the ID of the
accessor containing an attribute.
|
void |
setIndices(java.lang.String indices)
The ID of the accessor that contains the indices.
|
void |
setMaterial(java.lang.String material)
The ID of the material to apply to this primitive when rendering.
|
void |
setMode(java.lang.Integer mode)
The type of primitives to render.
|
addExtensions, getExtensions, getExtras, removeExtensions, setExtensions, setExtraspublic void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes - The attributes to setpublic java.util.Map<java.lang.String,java.lang.String> getAttributes()
public void addAttributes(java.lang.String key,
java.lang.String value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeAttributes(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,java.lang.String> defaultAttributes()
getAttributes()public void setIndices(java.lang.String indices)
indices - The indices to setpublic java.lang.String getIndices()
public void setMaterial(java.lang.String material)
material - The material to setjava.lang.NullPointerException - If the given value is nullpublic java.lang.String getMaterial()
public void setMode(java.lang.Integer mode)
mode - The mode to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.lang.Integer getMode()
public java.lang.Integer defaultMode()
getMode()Copyright © 2024. All Rights Reserved.