public class JMEThreeDeeContent extends JMEItem implements IThreeDeeContent, IInitable
com.jme3.scene.Spatial.CullHint
INestable.IChildrenChangedListener
KEY_JMEITEMDATA
Constructor and Description |
---|
JMEThreeDeeContent(java.lang.String name,
java.util.UUID uuid)
Instantiates a new JME three dee content.
|
Modifier and Type | Method and Description |
---|---|
com.jme3.scene.Spatial |
getManipulableSpatial()
Gets the manipulable spatial.
|
java.lang.String |
getModel()
Gets the model.
|
com.jme3.math.Vector3f |
getSize()
Gets the size.
|
java.lang.String |
getTexture()
Gets the texture.
|
void |
initializeGeometry(com.jme3.asset.AssetManager assetManager)
Initialize geometry.
|
void |
setModel(java.io.File modelFile)
Sets the model.
|
void |
setModel(java.lang.String modelResource)
Sets the model.
|
void |
setSize(float width,
float height,
float depth)
Sets the size.
|
void |
setTexture(java.io.File textureFile)
Sets the texture.
|
void |
setTexture(java.lang.String textureResource)
Sets the texture.
|
addItem, addItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, deRegisterChildrenChangedListener, getBehaviours, getBehaviours, getChildItems, getChildrenCount, getItemChildren, getItemListeners, getItemName, getMultiTouchDispatcher, getName, getParentItem, getRelativeLocation, getRelativeLocationOfWorldLocation, getRelativeRotation, getRelativeScale, getUUID, getWorldLocation, getWorldLocation, getWorldRotationDegrees, getZOrder, getZOrderManager, hasChildren, isVisible, registerChildrenChangedListener, removeAllItems, removeItem, removeItemListener, setInteractionEnabled, setItemListeners, setItemName, setParentItem, setRelativeLocation, setRelativeRotation, setRelativeScale, setVisible, setWorldLocation, setZOrder, toString
attachChild, attachChildAt, childChange, clone, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, read, setLodLevel, setMaterial, setModelBound, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, write
addControl, addLight, breadthFirstTraversal, center, checkCulling, clone, getControl, getControl, getCullHint, getLastFrustumIntersection, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setCullHint, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setShadowMode, setUserData, worldToLocal
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMultiTouchDispatcher, getUUID
addItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, getBehaviours, getBehaviours, getItemListeners, getName, getParentItem, getRelativeLocation, getRelativeLocationOfWorldLocation, getRelativeRotation, getRelativeScale, getWorldLocation, getWorldLocation, getWorldRotationDegrees, getZOrder, getZOrderManager, isVisible, removeItemListener, setInteractionEnabled, setItemListeners, setParentItem, setRelativeLocation, setRelativeRotation, setRelativeScale, setVisible, setWorldLocation, setZOrder
addItem, deRegisterChildrenChangedListener, getChildItems, getChildrenCount, hasChildren, registerChildrenChangedListener, removeAllItems, removeItem
public JMEThreeDeeContent(java.lang.String name, java.util.UUID uuid)
name
- the nameuuid
- the uuidpublic com.jme3.scene.Spatial getManipulableSpatial()
IItem
getManipulableSpatial
in interface IItem
public java.lang.String getModel()
IThreeDeeContent
getModel
in interface IThreeDeeContent
public com.jme3.math.Vector3f getSize()
IThreeDeeContent
getSize
in interface IThreeDeeContent
public java.lang.String getTexture()
IThreeDeeContent
getTexture
in interface IThreeDeeContent
public void initializeGeometry(com.jme3.asset.AssetManager assetManager)
IInitable
initializeGeometry
in interface IInitable
assetManager
- the asset managerpublic void setModel(java.io.File modelFile)
IThreeDeeContent
setModel
in interface IThreeDeeContent
modelFile
- the new modelpublic void setModel(java.lang.String modelResource)
IThreeDeeContent
setModel
in interface IThreeDeeContent
modelResource
- the new modelpublic void setSize(float width, float height, float depth)
IThreeDeeContent
setSize
in interface IThreeDeeContent
width
- the widthheight
- the heightdepth
- the depthpublic void setTexture(java.io.File textureFile)
IThreeDeeContent
setTexture
in interface IThreeDeeContent
textureFile
- the new texturepublic void setTexture(java.lang.String textureResource)
IThreeDeeContent
setTexture
in interface IThreeDeeContent
textureResource
- the new texture