Package com.jme3.scene
Class AssetLinkNode
java.lang.Object
com.jme3.scene.Spatial
com.jme3.scene.Node
com.jme3.scene.AssetLinkNode
- All Implemented Interfaces:
- HasLocalTransform,- CloneableSmartAsset,- Collidable,- Savable,- JmeCloneable,- Cloneable
The AssetLinkNode does not store its children when exported to file.
 Instead, you can add a list of AssetKeys that will be loaded and attached
 when the AssetLinkNode is restored.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.jme3.scene.SpatialSpatial.BatchHint, Spatial.CullHint, Spatial.DFSMode
- 
Field SummaryFieldsModifier and TypeFieldDescriptionFields inherited from class com.jme3.scene.SpatialbatchHint, controls, cullHint, frustrumIntersects, key, localLights, localOverrides, localTransform, name, parent, queueBucket, queueDistance, refreshFlags, RF_BOUND, RF_CHILD_LIGHTLIST, RF_LIGHTLIST, RF_MATPARAM_OVERRIDE, RF_TRANSFORM, shadowMode, userData, worldBound, worldLights, worldOverrides, worldTransform
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddLinkedChild(ModelKey key) Add a "linked" child.voidattachLinkedChild(AssetManager manager, ModelKey key) voidattachLinkedChild(Spatial spat, ModelKey key) voidattachLinkedChildren(AssetManager manager) Loads the linked children AssetKeys from the AssetManager and attaches them to the Node
 If they are already attached, they will be reloaded.voidcloneFields(Cloner cloner, Object original) Called internally by com.jme3.util.clone.Cloner.voidvoiddetachLinkedChild(Spatial child, ModelKey key) voidvoidread(JmeImporter importer) voidvoidwrite(JmeExporter e) Methods inherited from class com.jme3.scene.NodeattachChild, attachChildAt, breadthFirstTraversal, clone, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, oldDeepClone, setLightListRefresh, setLodLevel, setMaterial, setMatParamOverrideRefresh, setModelBound, setParent, setTransformRefresh, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, updateWorldBoundMethods inherited from class com.jme3.scene.SpatialaddControl, addControlAt, addLight, addMatParamOverride, breadthFirstTraversal, center, checkCulling, clearMatParamOverrides, clone, depthFirstTraversal, forceRefresh, getBatchHint, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalBatchHint, getLocalCullHint, getLocalLightList, getLocalMatParamOverrides, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldMatParamOverrides, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, jmeClone, localToWorld, lookAt, matches, move, move, oldClone, removeControl, removeControl, removeFromParent, removeLight, removeMatParamOverride, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setBatchHint, setBoundRefresh, setCullHint, setKey, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setRequiresUpdates, setShadowMode, setUserData, toString, updateMatParamOverrides, updateWorldLightList, updateWorldTransforms, worldToLocal
- 
Field Details- 
assetLoaderKeys
- 
assetChildren
 
- 
- 
Constructor Details- 
AssetLinkNodepublic AssetLinkNode()
- 
AssetLinkNode
- 
AssetLinkNode
 
- 
- 
Method Details- 
cloneFieldsCalled internally by com.jme3.util.clone.Cloner. Do not call directly.- Specified by:
- cloneFieldsin interface- JmeCloneable
- Overrides:
- cloneFieldsin class- Node
- Parameters:
- cloner- The cloner that is performing the cloning operation. The cloneFields method can call back into the cloner to make clones of its subordinate fields.
- original- The original object from which this object was cloned. This is provided for the very rare case that this object needs to refer to its original for some reason. In general, all of the relevant values should have been transferred during the shallow clone, and this object need only clone what it wants.
 
- 
addLinkedChildAdd a "linked" child. These are loaded from the assetManager when the AssetLinkNode is loaded from a binary file.- Parameters:
- key- the ModelKey to add
 
- 
removeLinkedChild
- 
getAssetLoaderKeys
- 
attachLinkedChild
- 
attachLinkedChild
- 
detachLinkedChild
- 
detachLinkedChild
- 
attachLinkedChildrenLoads the linked children AssetKeys from the AssetManager and attaches them to the Node
 If they are already attached, they will be reloaded.- Parameters:
- manager- for loading assets
 
- 
detachLinkedChildrenpublic void detachLinkedChildren()
- 
read- Specified by:
- readin interface- Savable
- Overrides:
- readin class- Node
- Throws:
- IOException
 
- 
write- Specified by:
- writein interface- Savable
- Overrides:
- writein class- Node
- Throws:
- IOException
 
 
-