public final class DefaultMeshPrimitiveModel extends AbstractModelElement implements MeshPrimitiveModel
MeshPrimitiveModel| Constructor and Description |
|---|
DefaultMeshPrimitiveModel(int mode)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTarget(java.util.Map<java.lang.String,AccessorModel> target)
Add the given morph target.
|
java.util.Map<java.lang.String,AccessorModel> |
getAttributes()
Returns an unmodifiable view on the mapping from attribute names to
the
AccessorModel instances for the attribute data |
AccessorModel |
getIndices()
Return an
AccessorModel for the indices, or null
if this primitive describes non-indexed geometry |
MaterialModel |
getMaterialModel()
Returns the
MaterialModel that should be used for rendering
this mesh primitive |
int |
getMode()
Returns the rendering mode, as a (GL) constant, standing for
GL_POINTS, GL_TRIANGLES etc. |
java.util.List<java.util.Map<java.lang.String,AccessorModel>> |
getTargets()
Returns an unmodifiable view on the list of morph targets.
|
AccessorModel |
putAttribute(java.lang.String name,
AccessorModel accessorModel)
Put the given
AccessorModel into the attributes, under the
given name |
void |
setIndices(AccessorModel indices)
Set the
AccessorModel for the indices |
void |
setMaterialModel(MaterialModel materialModel)
Set the
MaterialModel |
addExtension, getExtensions, getExtras, removeExtension, setExtensions, setExtrasclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExtensions, getExtraspublic DefaultMeshPrimitiveModel(int mode)
mode - The rendering modepublic AccessorModel putAttribute(java.lang.String name, AccessorModel accessorModel)
AccessorModel into the attributes, under the
given namename - The nameaccessorModel - The AccessorModelpublic void setIndices(AccessorModel indices)
AccessorModel for the indicesindices - The indicespublic void setMaterialModel(MaterialModel materialModel)
MaterialModelmaterialModel - The MaterialModelpublic void addTarget(java.util.Map<java.lang.String,AccessorModel> target)
target - The targetpublic java.util.Map<java.lang.String,AccessorModel> getAttributes()
MeshPrimitiveModelAccessorModel instances for the attribute datagetAttributes in interface MeshPrimitiveModelpublic AccessorModel getIndices()
MeshPrimitiveModelAccessorModel for the indices, or null
if this primitive describes non-indexed geometrygetIndices in interface MeshPrimitiveModelpublic int getMode()
MeshPrimitiveModelGL_POINTS, GL_TRIANGLES etc.getMode in interface MeshPrimitiveModelpublic MaterialModel getMaterialModel()
MeshPrimitiveModelMaterialModel that should be used for rendering
this mesh primitivegetMaterialModel in interface MeshPrimitiveModelMaterialModelpublic java.util.List<java.util.Map<java.lang.String,AccessorModel>> getTargets()
MeshPrimitiveModelAccessorModel that provides the morph target data.getTargets in interface MeshPrimitiveModelCopyright © 2022. All Rights Reserved.