public class MrModel extends MrObject
Modifier and Type | Class and Description |
---|---|
static class |
MrModel.Builder
Builder used to construct a
MrModel instance |
MrObject.MrObjectBuilder
Constructor and Description |
---|
MrModel(java.lang.String name,
MrTransform transform,
java.util.Map<java.lang.String,MrUniformKey> uniformKeys,
MrShaderProgram shaderProgram,
MrMesh mesh,
MrMaterial[] materials,
MrSkeleton skeleton) |
Modifier and Type | Method and Description |
---|---|
MrModelController |
getController()
Gets the object controller of this object
|
MrMaterial[] |
getMaterials()
Gets the materials used by this model
|
MrMesh |
getMesh()
Gets the mesh attached to this model
|
java.util.Map<java.lang.String,MrSkeletalAction> |
getSkeletalActions()
Gets the skeletal actions of this model
|
MrSkeleton |
getSkeleton()
Gets the skeleton of this model
|
MrTexture[] |
getTextures()
Gets the textures used by this model
|
boolean |
hasSkeleton()
Checks if this model has a skeleton
|
boolean |
hasTextures()
Checks if this model has textures
|
boolean |
isVisible()
Checks if this model is visible
|
void |
playAction(java.lang.String actionName)
Plays an action if it exists
|
void |
playActionContinuosly(java.lang.String actionName)
Plays an action infinitely
|
void |
setVisibility(boolean isVisible)
Sets the visibility of this model
|
addChild, breadthTraversal, depthTraversal, findChild, getByType, getChildren, getEventsListener, getForward, getLocation, getName, getParent, getRegisteredEvents, getRight, getRobottoEngine, getRoot, getRotation, getScale, getSceneObjectType, getShaderProgram, getTransform, getTree, getUniformGenerators, getUniformKeys, getUp, initializeUniforms, isChild, isChild, isEventRegistered, isInitialized, parentKeyChildValueTraversal, parentTraversal, queueEvent, registerEvent, removeChild, rotate, rotate, rotate, rotateAround, rotateAround, scale, scale, scale, setEventsListener, setLocation, setLocation, setLookAt, setLookAt, setRobottoEngine, setRotation, setRotation, setRotation, setScale, setScale, setTransform, setTree, toString, translate, translate, unregisterEvent
public MrModel(java.lang.String name, MrTransform transform, java.util.Map<java.lang.String,MrUniformKey> uniformKeys, MrShaderProgram shaderProgram, MrMesh mesh, MrMaterial[] materials, MrSkeleton skeleton)
public MrModelController getController()
MrObject
getController
in class MrObject
public MrMaterial[] getMaterials()
public MrMesh getMesh()
public boolean hasSkeleton()
public MrSkeleton getSkeleton()
public MrTexture[] getTextures()
public java.util.Map<java.lang.String,MrSkeletalAction> getSkeletalActions()
public void playAction(java.lang.String actionName)
actionName
- public void playActionContinuosly(java.lang.String actionName)
actionName
- public boolean isVisible()
public void setVisibility(boolean isVisible)
isVisible
- public boolean hasTextures()